mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 15:54:31 +00:00
36 lines
1020 B
Plaintext
36 lines
1020 B
Plaintext
package {{invokerPackage}};
|
|
|
|
import io.swagger.inflector.models.RequestContext;
|
|
import io.swagger.inflector.models.ResponseContext;
|
|
import javax.ws.rs.core.Response.Status;
|
|
|
|
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
|
|
import java.io.File;
|
|
import java.util.List;
|
|
|
|
import {{modelPackage}}.*;
|
|
|
|
{{#imports}}import {{import}};
|
|
{{/imports}}
|
|
|
|
{{>generatedAnnotation}}
|
|
{{#operations}}
|
|
public class {{classname}} {
|
|
/**
|
|
* Uncomment and implement as you see fit. These operations will map
|
|
* Direclty to operation calls from the routing logic. Because the inflector
|
|
* Code allows you to implement logic incrementally, they are disabled.
|
|
**/
|
|
|
|
{{#operation}}
|
|
/*
|
|
public ResponseContext {{nickname}}(RequestContext request {{#allParams}}, {{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{/allParams}}) {
|
|
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
|
}
|
|
*/
|
|
|
|
{{/operation}}
|
|
}
|
|
{{/operations}}
|
|
|