diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/api.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/api.mustache index 4370b0d337c3..fc0ad8ae5aa9 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/api.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/api.mustache @@ -29,10 +29,7 @@ import {{javaxPackage}}.validation.Valid;{{/useBeanValidation}} /** * Represents a collection of functions to interact with the API endpoints. */ -{{^interfaceOnly}} -@Path("{{commonPath}}") -{{/interfaceOnly}} -{{#useSwaggerAnnotations}} +@Path("{{commonPath}}"){{#useSwaggerAnnotations}} @Api(description = "the {{{baseName}}} API"){{/useSwaggerAnnotations}}{{#useSwaggerV3Annotations}} @Tag(name = "{{{baseName}}}"){{/useSwaggerV3Annotations}}{{#hasConsumes}} @Consumes({ {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}} diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache index a35022d650cd..388f9664ac84 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache @@ -8,8 +8,8 @@ * @return {{{message}}} {{/responses}} */ - @{{httpMethod}} - @Path("{{commonPath}}{{{path}}}"){{#hasConsumes}} + @{{httpMethod}}{{#subresourceOperation}} + @Path("{{{path}}}"){{/subresourceOperation}}{{#hasConsumes}} @Consumes({ {{#consumes}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/consumes}} }){{/hasConsumes}}{{#hasProduces}} @Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }){{/hasProduces}}{{#useSwaggerAnnotations}} @ApiOperation(value = "{{{summary}}}", notes = "{{{notes}}}"{{#hasAuthMethods}}, authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 8a0cda70a7f7..3dfc10997569 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/another-fake/dummy") @Api(description = "the another-fake API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface AnotherFakeApi { @@ -29,7 +30,6 @@ public interface AnotherFakeApi { * @return successful operation */ @PATCH - @Path("/another-fake/dummy") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" }) diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java index c94292de9b55..a31cf286baf0 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java @@ -26,6 +26,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/fake") @Api(description = "the fake API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface FakeApi { @@ -37,7 +38,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/create_xml_item") + @Path("/create_xml_item") @Consumes({ "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }) @ApiOperation(value = "creates an XmlItem", notes = "this route creates an XmlItem", tags={ "fake" }) @ApiResponses(value = { @@ -52,7 +53,7 @@ public interface FakeApi { * @return Output boolean */ @POST - @Path("/fake/outer/boolean") + @Path("/outer/boolean") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer boolean types", tags={ "fake" }) @ApiResponses(value = { @@ -67,7 +68,7 @@ public interface FakeApi { * @return Output composite */ @POST - @Path("/fake/outer/composite") + @Path("/outer/composite") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake" }) @ApiResponses(value = { @@ -82,7 +83,7 @@ public interface FakeApi { * @return Output number */ @POST - @Path("/fake/outer/number") + @Path("/outer/number") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer number types", tags={ "fake" }) @ApiResponses(value = { @@ -97,7 +98,7 @@ public interface FakeApi { * @return Output string */ @POST - @Path("/fake/outer/string") + @Path("/outer/string") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake" }) @ApiResponses(value = { @@ -112,7 +113,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/body-with-file-schema") + @Path("/body-with-file-schema") @Consumes({ "application/json" }) @ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake" }) @ApiResponses(value = { @@ -128,7 +129,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/body-with-query-params") + @Path("/body-with-query-params") @Consumes({ "application/json" }) @ApiOperation(value = "", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -143,7 +144,6 @@ public interface FakeApi { * @return successful operation */ @PATCH - @Path("/fake") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake" }) @@ -173,7 +173,6 @@ public interface FakeApi { * @return User not found */ @POST - @Path("/fake") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @@ -200,7 +199,6 @@ public interface FakeApi { * @return Not found */ @GET - @Path("/fake") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" }) @ApiResponses(value = { @@ -221,7 +219,6 @@ public interface FakeApi { * @return Something wrong */ @DELETE - @Path("/fake") @ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) @@ -235,7 +232,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/inline-additionalProperties") + @Path("/inline-additionalProperties") @Consumes({ "application/json" }) @ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -251,7 +248,7 @@ public interface FakeApi { * @return successful operation */ @GET - @Path("/fake/jsonFormData") + @Path("/jsonFormData") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "test json serialization of form data", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -270,7 +267,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/test-query-parameters") + @Path("/test-query-parameters") @ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) @@ -286,7 +283,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/{petId}/uploadImageWithRequiredFile") + @Path("/{petId}/uploadImageWithRequiredFile") @Consumes({ "multipart/form-data" }) @Produces({ "application/json" }) @ApiOperation(value = "uploads an image (required)", notes = "", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index a96139d7cb9d..48c1cc53e653 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -16,6 +16,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/fake_classname_test") @Api(description = "the fake_classname_test API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface FakeClassnameTestApi { @@ -27,7 +28,6 @@ public interface FakeClassnameTestApi { * @return successful operation */ @PATCH - @Path("/fake_classname_test") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/PetApi.java index 45dca118059a..8fe94bfca97c 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/PetApi.java @@ -19,6 +19,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/pet") @Api(description = "the pet API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface PetApi { @@ -31,7 +32,6 @@ public interface PetApi { * @return Invalid input */ @POST - @Path("/pet") @Consumes({ "application/json", "application/xml" }) @ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -53,7 +53,7 @@ public interface PetApi { * @return Invalid pet value */ @DELETE - @Path("/pet/{petId}") + @Path("/{petId}") @ApiOperation(value = "Deletes a pet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -73,7 +73,7 @@ public interface PetApi { * @return Invalid status value */ @GET - @Path("/pet/findByStatus") + @Path("/findByStatus") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -94,7 +94,7 @@ public interface PetApi { * @return Invalid tag value */ @GET - @Path("/pet/findByTags") + @Path("/findByTags") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -116,7 +116,7 @@ public interface PetApi { * @return Pet not found */ @GET - @Path("/pet/{petId}") + @Path("/{petId}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = { @@ -139,7 +139,6 @@ public interface PetApi { * @return Validation exception */ @PUT - @Path("/pet") @Consumes({ "application/json", "application/xml" }) @ApiOperation(value = "Update an existing pet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -163,7 +162,7 @@ public interface PetApi { * @return Invalid input */ @POST - @Path("/pet/{petId}") + @Path("/{petId}") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -184,7 +183,7 @@ public interface PetApi { * @return successful operation */ @POST - @Path("/pet/{petId}/uploadImage") + @Path("/{petId}/uploadImage") @Consumes({ "multipart/form-data" }) @Produces({ "application/json" }) @ApiOperation(value = "uploads an image", notes = "", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/StoreApi.java index cde52cd6ce62..3890e2821d1c 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/StoreApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/store") @Api(description = "the store API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface StoreApi { @@ -29,7 +30,7 @@ public interface StoreApi { * @return Order not found */ @DELETE - @Path("/store/order/{order_id}") + @Path("/order/{order_id}") @ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @@ -43,7 +44,7 @@ public interface StoreApi { * @return successful operation */ @GET - @Path("/store/inventory") + @Path("/inventory") @Produces({ "application/json" }) @ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = { @@ -63,7 +64,7 @@ public interface StoreApi { * @return Order not found */ @GET - @Path("/store/order/{order_id}") + @Path("/order/{order_id}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions", tags={ "store" }) @ApiResponses(value = { @@ -81,7 +82,7 @@ public interface StoreApi { * @return Invalid Order */ @POST - @Path("/store/order") + @Path("/order") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Place an order for a pet", notes = "", tags={ "store" }) @ApiResponses(value = { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/UserApi.java index 3d516ff58ec8..defb9058ac65 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/UserApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/user") @Api(description = "the user API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface UserApi { @@ -28,7 +29,6 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user") @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -42,7 +42,7 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user/createWithArray") + @Path("/createWithArray") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -56,7 +56,7 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user/createWithList") + @Path("/createWithList") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -71,7 +71,7 @@ public interface UserApi { * @return User not found */ @DELETE - @Path("/user/{username}") + @Path("/{username}") @ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @@ -88,7 +88,7 @@ public interface UserApi { * @return User not found */ @GET - @Path("/user/{username}") + @Path("/{username}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Get user by user name", notes = "", tags={ "user" }) @ApiResponses(value = { @@ -107,7 +107,7 @@ public interface UserApi { * @return Invalid username/password supplied */ @GET - @Path("/user/login") + @Path("/login") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Logs user into the system", notes = "", tags={ "user" }) @ApiResponses(value = { @@ -122,7 +122,7 @@ public interface UserApi { * @return successful operation */ @GET - @Path("/user/logout") + @Path("/logout") @ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -138,7 +138,7 @@ public interface UserApi { * @return User not found */ @PUT - @Path("/user/{username}") + @Path("/{username}") @ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 351a81d8d836..b847528d345d 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/another-fake/dummy") @Api(description = "the another-fake API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface AnotherFakeApi { @@ -29,7 +30,6 @@ public interface AnotherFakeApi { * @return successful operation */ @PATCH - @Path("/another-fake/dummy") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" }) diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java index c3822cdc4a06..011cf971fa54 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java @@ -26,6 +26,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/fake") @Api(description = "the fake API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface FakeApi { @@ -37,7 +38,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/create_xml_item") + @Path("/create_xml_item") @Consumes({ "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }) @ApiOperation(value = "creates an XmlItem", notes = "this route creates an XmlItem", tags={ "fake" }) @ApiResponses(value = { @@ -52,7 +53,7 @@ public interface FakeApi { * @return Output boolean */ @POST - @Path("/fake/outer/boolean") + @Path("/outer/boolean") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer boolean types", tags={ "fake" }) @ApiResponses(value = { @@ -67,7 +68,7 @@ public interface FakeApi { * @return Output composite */ @POST - @Path("/fake/outer/composite") + @Path("/outer/composite") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake" }) @ApiResponses(value = { @@ -82,7 +83,7 @@ public interface FakeApi { * @return Output number */ @POST - @Path("/fake/outer/number") + @Path("/outer/number") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer number types", tags={ "fake" }) @ApiResponses(value = { @@ -97,7 +98,7 @@ public interface FakeApi { * @return Output string */ @POST - @Path("/fake/outer/string") + @Path("/outer/string") @Produces({ "*/*" }) @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake" }) @ApiResponses(value = { @@ -112,7 +113,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/body-with-file-schema") + @Path("/body-with-file-schema") @Consumes({ "application/json" }) @ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake" }) @ApiResponses(value = { @@ -128,7 +129,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/body-with-query-params") + @Path("/body-with-query-params") @Consumes({ "application/json" }) @ApiOperation(value = "", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -143,7 +144,6 @@ public interface FakeApi { * @return successful operation */ @PATCH - @Path("/fake") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake" }) @@ -173,7 +173,6 @@ public interface FakeApi { * @return User not found */ @POST - @Path("/fake") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = { @@ -199,7 +198,6 @@ public interface FakeApi { * @return Not found */ @GET - @Path("/fake") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" }) @io.swagger.annotations.ApiImplicitParams({ @@ -223,7 +221,6 @@ public interface FakeApi { * @return Something wrong */ @DELETE - @Path("/fake") @ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Something wrong", response = Void.class) }) @@ -237,7 +234,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/inline-additionalProperties") + @Path("/inline-additionalProperties") @Consumes({ "application/json" }) @ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -253,7 +250,7 @@ public interface FakeApi { * @return successful operation */ @GET - @Path("/fake/jsonFormData") + @Path("/jsonFormData") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "test json serialization of form data", notes = "", tags={ "fake" }) @ApiResponses(value = { @@ -272,7 +269,7 @@ public interface FakeApi { * @return Success */ @PUT - @Path("/fake/test-query-parameters") + @Path("/test-query-parameters") @ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Success", response = Void.class) }) @@ -288,7 +285,7 @@ public interface FakeApi { * @return successful operation */ @POST - @Path("/fake/{petId}/uploadImageWithRequiredFile") + @Path("/{petId}/uploadImageWithRequiredFile") @Consumes({ "multipart/form-data" }) @Produces({ "application/json" }) @ApiOperation(value = "uploads an image (required)", notes = "", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index 8194aafcdfa6..7ff5e39168ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -16,6 +16,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/fake_classname_test") @Api(description = "the fake_classname_test API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface FakeClassnameTestApi { @@ -27,7 +28,6 @@ public interface FakeClassnameTestApi { * @return successful operation */ @PATCH - @Path("/fake_classname_test") @Consumes({ "application/json" }) @Produces({ "application/json" }) @ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java index 50fbd746018e..0c2989e6f376 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/PetApi.java @@ -19,6 +19,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/pet") @Api(description = "the pet API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface PetApi { @@ -31,7 +32,6 @@ public interface PetApi { * @return Invalid input */ @POST - @Path("/pet") @Consumes({ "application/json", "application/xml" }) @ApiOperation(value = "Add a new pet to the store", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -52,7 +52,7 @@ public interface PetApi { * @return Invalid pet value */ @DELETE - @Path("/pet/{petId}") + @Path("/{petId}") @ApiOperation(value = "Deletes a pet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @@ -75,7 +75,7 @@ public interface PetApi { * @return Invalid status value */ @GET - @Path("/pet/findByStatus") + @Path("/findByStatus") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -96,7 +96,7 @@ public interface PetApi { * @return Invalid tag value */ @GET - @Path("/pet/findByTags") + @Path("/findByTags") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -118,7 +118,7 @@ public interface PetApi { * @return Pet not found */ @GET - @Path("/pet/{petId}") + @Path("/{petId}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = { @@ -141,7 +141,6 @@ public interface PetApi { * @return Validation exception */ @PUT - @Path("/pet") @Consumes({ "application/json", "application/xml" }) @ApiOperation(value = "Update an existing pet", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -165,7 +164,7 @@ public interface PetApi { * @return Invalid input */ @POST - @Path("/pet/{petId}") + @Path("/{petId}") @Consumes({ "application/x-www-form-urlencoded" }) @ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = { @Authorization(value = "petstore_auth", scopes = { @@ -186,7 +185,7 @@ public interface PetApi { * @return successful operation */ @POST - @Path("/pet/{petId}/uploadImage") + @Path("/{petId}/uploadImage") @Consumes({ "multipart/form-data" }) @Produces({ "application/json" }) @ApiOperation(value = "uploads an image", notes = "", authorizations = { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java index 8cc72c0bfe49..726761344cb6 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/StoreApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/store") @Api(description = "the store API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface StoreApi { @@ -29,7 +30,7 @@ public interface StoreApi { * @return Order not found */ @DELETE - @Path("/store/order/{order_id}") + @Path("/order/{order_id}") @ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @@ -43,7 +44,7 @@ public interface StoreApi { * @return successful operation */ @GET - @Path("/store/inventory") + @Path("/inventory") @Produces({ "application/json" }) @ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = { @@ -63,7 +64,7 @@ public interface StoreApi { * @return Order not found */ @GET - @Path("/store/order/{order_id}") + @Path("/order/{order_id}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions", tags={ "store" }) @ApiResponses(value = { @@ -81,7 +82,7 @@ public interface StoreApi { * @return Invalid Order */ @POST - @Path("/store/order") + @Path("/order") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Place an order for a pet", notes = "", tags={ "store" }) @ApiResponses(value = { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java index 4c7e05435665..72282e87031e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/UserApi.java @@ -17,6 +17,7 @@ /** * Represents a collection of functions to interact with the API endpoints. */ +@Path("/user") @Api(description = "the user API") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public interface UserApi { @@ -28,7 +29,6 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user") @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -42,7 +42,7 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user/createWithArray") + @Path("/createWithArray") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -56,7 +56,7 @@ public interface UserApi { * @return successful operation */ @POST - @Path("/user/createWithList") + @Path("/createWithList") @ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -71,7 +71,7 @@ public interface UserApi { * @return User not found */ @DELETE - @Path("/user/{username}") + @Path("/{username}") @ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @@ -88,7 +88,7 @@ public interface UserApi { * @return User not found */ @GET - @Path("/user/{username}") + @Path("/{username}") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Get user by user name", notes = "", tags={ "user" }) @ApiResponses(value = { @@ -107,7 +107,7 @@ public interface UserApi { * @return Invalid username/password supplied */ @GET - @Path("/user/login") + @Path("/login") @Produces({ "application/xml", "application/json" }) @ApiOperation(value = "Logs user into the system", notes = "", tags={ "user" }) @ApiResponses(value = { @@ -122,7 +122,7 @@ public interface UserApi { * @return successful operation */ @GET - @Path("/user/logout") + @Path("/logout") @ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @@ -138,7 +138,7 @@ public interface UserApi { * @return User not found */ @PUT - @Path("/user/{username}") + @Path("/{username}") @ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ "user" }) @ApiResponses(value = { @ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class), diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/AnotherFakeApi.java index 79e37157bdad..3e2193d8a0d6 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/another-fake/dummy") - @Tag(name = "another-fake") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class AnotherFakeApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java index 9f696c6d47a3..dbc121f4fbec 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java @@ -37,7 +37,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/fake") - @Tag(name = "fake") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FakeApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index a6b36d870ed3..20831afb6bc5 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/fake_classname_test") - @Tag(name = "fake_classname_test") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FakeClassnameTestApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FooApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FooApi.java index 88d1776b5824..bf9b7977931c 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FooApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FooApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/foo") - @Tag(name = "foo") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FooApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/PetApi.java index d66fdac1c7f4..b07bfbed4b41 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/PetApi.java @@ -23,7 +23,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/pet") - @Tag(name = "pet") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class PetApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/StoreApi.java index a9b3fe629ad9..9bdd7e83c580 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/StoreApi.java @@ -21,7 +21,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/store") - @Tag(name = "store") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class StoreApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/UserApi.java index 9df9a0c4de1b..80fec44e6d4f 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/UserApi.java @@ -21,7 +21,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/user") - @Tag(name = "user") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class UserApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/AnotherFakeApi.java index a5724bf54889..ee0fc23ec292 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/AnotherFakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/AnotherFakeApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/another-fake/dummy") - @Tag(name = "another-fake") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class AnotherFakeApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java index 40495138b78e..1859eee64c03 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java @@ -37,7 +37,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/fake") - @Tag(name = "fake") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FakeApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java index a9ffa10ebad0..6a476f5f40dc 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeClassnameTestApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/fake_classname_test") - @Tag(name = "fake_classname_test") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FakeClassnameTestApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FooApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FooApi.java index c10bd0a8f323..7a594b4a26a4 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FooApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FooApi.java @@ -20,7 +20,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/foo") - @Tag(name = "foo") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class FooApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/PetApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/PetApi.java index e31b085d570c..d21d38c0b624 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/PetApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/PetApi.java @@ -23,7 +23,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/pet") - @Tag(name = "pet") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class PetApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/StoreApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/StoreApi.java index 468162a73898..fd6b095a212a 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/StoreApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/StoreApi.java @@ -21,7 +21,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/store") - @Tag(name = "store") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class StoreApi { diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/UserApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/UserApi.java index 3d9640cf996e..4717e56539d9 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/UserApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/UserApi.java @@ -21,7 +21,6 @@ * Represents a collection of functions to interact with the API endpoints. */ @Path("/user") - @Tag(name = "user") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT") public class UserApi {