SpringInterfacesSplitResponseEntityNoSwaggerAnnotations.api-impl.mustache Maven / Gradle / Ivy
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}}