Skip to content

Commit a245fdf

Browse files
committed
Partial revert changing path generation if interface
This reverts commit 65703ff.
1 parent 69da1ea commit a245fdf

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

modules/openapi-generator/src/main/resources/JavaJaxRS/spec/api.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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}}

modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
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 = {

0 commit comments

Comments
 (0)