All Downloads are FREE. Search and download functionalities are using the official Maven repository.

SpringInterfacesSplitResponseEntityNoSwaggerAnnotations.api-impl.mustache Maven / Gradle / Ivy

There is a newer version: 0.5.0-beta-1
Show newest version
package {{package}};

import {{modelPackage}}.*;

{{#imports}}import {{import}};
{{/imports}}

import java.util.List;

import java.io.InputStream;

import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

//
// GENERATED CLASS, DO NOT EDIT
//
// RestController implementation. No need to modify or extend. Just use it.
//

{{#operations}}@RestController
public final class {{classname}}Impl implements {{classname}} {
  private {{classname}} impl;

  @Autowired
  public {{classname}}Impl({{classname}} impl) {
    this.impl = impl;
  }

{{#operation}}
  @Override
  @RequestMapping(value="/{{baseName}}{{path}}",method=RequestMethod.{{httpMethod}}{{#vendorExtensions.consumesExpected}}{{#hasConsumes}},consumes={ {{#consumes}}"{{mediaType}}"{{#hasMore}},{{/hasMore}}{{/consumes}} }{{/hasConsumes}}{{/vendorExtensions.consumesExpected}} {{#hasProduces}}, produces={ {{#produces}}"{{mediaType}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }{{/hasProduces}})
  public ResponseEntity<{{>returnTypes}}> {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},
    {{/hasMore}}{{/allParams}}) {
    return this.impl.{{nickname}}({{#allParams}}{{>queryParamsImpl}}{{>pathParamsImpl}}{{>headerParamsImpl}}{{>bodyParamsImpl}}{{>formParamsImpl}}{{#hasMore}},
  {{/hasMore}}{{/allParams}});
  }

{{/operation}}
}
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy