File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/JavaJaxRS/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ import {{javaxPackage}}.validation.Valid;{{/useBeanValidation}}
2929/**
3030* Represents a collection of functions to interact with the API endpoints.
3131*/
32- { {^interfaceOnly} }
33- @Path("{ {commonPath} }")
34- { {/interfaceOnly} }
35- { {#useSwaggerAnnotations} }
32+ @Path("{ {commonPath} }"){ {#useSwaggerAnnotations} }
3633@Api(description = "the { {{baseName} }} API"){ {/useSwaggerAnnotations} }{ {#useSwaggerV3Annotations} }
3734@Tag(name = "{ {{baseName} }}"){ {/useSwaggerV3Annotations} }{ {#hasConsumes} }
3835@Consumes({ {{#consumes} }"{ {{mediaType} }}"{ {^-last} }, { {/-last} }{ {/consumes} } }){ {/hasConsumes} }{ {#hasProduces} }
Original file line number Diff line number Diff line change 88 * @return { {{message} }}
99 { {/responses} }
1010 */
11- @{ {httpMethod} }
12- @Path("{ {commonPath } } { {{ path} }}"){ {#hasConsumes} }
11+ @{ {httpMethod} }{ {#subresourceOperation } }
12+ @Path("{ {{ path} }}"){ {/subresourceOperation } } { {#hasConsumes} }
1313 @Consumes({ {{#consumes} }"{ {{mediaType} }}"{ {^-last} }, { {/-last} }{ {/consumes} } }){ {/hasConsumes} }{ {#hasProduces} }
1414 @Produces({ {{#produces} }"{ {{mediaType} }}"{ {^-last} }, { {/-last} }{ {/produces} } }){ {/hasProduces} }{ {#useSwaggerAnnotations} }
1515 @ApiOperation(value = "{ {{summary} }}", notes = "{ {{notes} }}"{ {#hasAuthMethods} }, authorizations = {
You can’t perform that action at this time.
0 commit comments