diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache index 9b19457b04..1007a857ca 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache @@ -808,6 +808,8 @@ public class ApiClient { * Update query and header parameters based on authentication settings. * * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters */ protected void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache index a275689bba..9c218e35bf 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/api.mustache @@ -75,9 +75,7 @@ public class {{classname}} { {{#allParams}} * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} {{/allParams}} - {{#returnType}} * @return ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}> - {{/returnType}} * @throws ApiException if fails to make API call {{#isDeprecated}} * @deprecated diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/ApiClient.java index 89c2a8f51d..2c65b8884f 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/ApiClient.java @@ -784,6 +784,8 @@ public class ApiClient { * Update query and header parameters based on authentication settings. * * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters */ protected void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java index 7ee000303b..f6d6a10a15 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/FakeApi.java @@ -58,6 +58,7 @@ public class FakeApi { * creates an XmlItem * this route creates an XmlItem * @param xmlItem XmlItem Body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -297,6 +298,7 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -350,6 +352,7 @@ public class FakeApi { * * @param query (required) * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -485,6 +488,7 @@ public class FakeApi { * @param dateTime None (optional) * @param password None (optional) * @param paramCallback None (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { @@ -593,6 +597,7 @@ if (paramCallback != null) * @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -661,6 +666,7 @@ if (enumFormString != null) * @param stringGroup String in group parameters (optional) * @param booleanGroup Boolean in group parameters (optional) * @param int64Group Integer in group parameters (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { @@ -730,6 +736,7 @@ if (booleanGroup != null) * test inline additionalProperties * * @param param request body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -783,6 +790,7 @@ if (booleanGroup != null) * * @param param field1 (required) * @param param2 field2 (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java index dad8fa3433..a78d6e3919 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/PetApi.java @@ -52,6 +52,7 @@ public class PetApi { * Add a new pet to the store * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -105,6 +106,7 @@ public class PetApi { * * @param petId Pet id to delete (required) * @param apiKey (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -322,6 +324,7 @@ public class PetApi { * Update an existing pet * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -377,6 +380,7 @@ public class PetApi { * @param petId ID of pet that needs to be updated (required) * @param name Updated name of the pet (optional) * @param status Updated status of the pet (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java index 91aaa01157..97d237b70c 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/StoreApi.java @@ -50,6 +50,7 @@ public class StoreApi { * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * @param orderId ID of the order that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java index a91765dfdb..079174b7c5 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/UserApi.java @@ -50,6 +50,7 @@ public class UserApi { * Create user * This can only be done by the logged in user. * @param body Created user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -101,6 +102,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -152,6 +154,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -203,6 +206,7 @@ public class UserApi { * Delete user * This can only be done by the logged in user. * @param username The name that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -367,6 +371,7 @@ public class UserApi { /** * Logs out current logged in user session * + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -415,6 +420,7 @@ public class UserApi { * This can only be done by the logged in user. * @param username name that need to be deleted (required) * @param body Updated user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 81c14285e6..4a03feb3b8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -787,6 +787,8 @@ public class ApiClient { * Update query and header parameters based on authentication settings. * * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters */ protected void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 7ed375ab18..d8c1e0e73f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -58,6 +58,7 @@ public class FakeApi { * creates an XmlItem * this route creates an XmlItem * @param xmlItem XmlItem Body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -297,6 +298,7 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -350,6 +352,7 @@ public class FakeApi { * * @param query (required) * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -485,6 +488,7 @@ public class FakeApi { * @param dateTime None (optional) * @param password None (optional) * @param paramCallback None (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { @@ -593,6 +597,7 @@ if (paramCallback != null) * @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -661,6 +666,7 @@ if (enumFormString != null) * @param stringGroup String in group parameters (optional) * @param booleanGroup Boolean in group parameters (optional) * @param int64Group Integer in group parameters (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { @@ -730,6 +736,7 @@ if (booleanGroup != null) * test inline additionalProperties * * @param param request body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -783,6 +790,7 @@ if (booleanGroup != null) * * @param param field1 (required) * @param param2 field2 (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java index dad8fa3433..a78d6e3919 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/PetApi.java @@ -52,6 +52,7 @@ public class PetApi { * Add a new pet to the store * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -105,6 +106,7 @@ public class PetApi { * * @param petId Pet id to delete (required) * @param apiKey (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -322,6 +324,7 @@ public class PetApi { * Update an existing pet * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -377,6 +380,7 @@ public class PetApi { * @param petId ID of pet that needs to be updated (required) * @param name Updated name of the pet (optional) * @param status Updated status of the pet (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java index 91aaa01157..97d237b70c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/StoreApi.java @@ -50,6 +50,7 @@ public class StoreApi { * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * @param orderId ID of the order that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java index a91765dfdb..079174b7c5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/UserApi.java @@ -50,6 +50,7 @@ public class UserApi { * Create user * This can only be done by the logged in user. * @param body Created user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -101,6 +102,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -152,6 +154,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -203,6 +206,7 @@ public class UserApi { * Delete user * This can only be done by the logged in user. * @param username The name that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -367,6 +371,7 @@ public class UserApi { /** * Logs out current logged in user session * + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -415,6 +420,7 @@ public class UserApi { * This can only be done by the logged in user. * @param username name that need to be deleted (required) * @param body Updated user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/ApiClient.java index 81c14285e6..4a03feb3b8 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/ApiClient.java @@ -787,6 +787,8 @@ public class ApiClient { * Update query and header parameters based on authentication settings. * * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters */ protected void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java index 7ee000303b..f6d6a10a15 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -58,6 +58,7 @@ public class FakeApi { * creates an XmlItem * this route creates an XmlItem * @param xmlItem XmlItem Body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException { @@ -297,6 +298,7 @@ public class FakeApi { * * For this test, the body for this request much reference a schema named `File`. * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException { @@ -350,6 +352,7 @@ public class FakeApi { * * @param query (required) * @param body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException { @@ -485,6 +488,7 @@ public class FakeApi { * @param dateTime None (optional) * @param password None (optional) * @param paramCallback None (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException { @@ -593,6 +597,7 @@ if (paramCallback != null) * @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumFormStringArray Form parameter enum test (string array) (optional, default to $) * @param enumFormString Form parameter enum test (string) (optional, default to -efg) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException { @@ -661,6 +666,7 @@ if (enumFormString != null) * @param stringGroup String in group parameters (optional) * @param booleanGroup Boolean in group parameters (optional) * @param int64Group Integer in group parameters (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException { @@ -730,6 +736,7 @@ if (booleanGroup != null) * test inline additionalProperties * * @param param request body (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException { @@ -783,6 +790,7 @@ if (booleanGroup != null) * * @param param field1 (required) * @param param2 field2 (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java index dad8fa3433..a78d6e3919 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/PetApi.java @@ -52,6 +52,7 @@ public class PetApi { * Add a new pet to the store * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException { @@ -105,6 +106,7 @@ public class PetApi { * * @param petId Pet id to delete (required) * @param apiKey (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException { @@ -322,6 +324,7 @@ public class PetApi { * Update an existing pet * * @param body Pet object that needs to be added to the store (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException { @@ -377,6 +380,7 @@ public class PetApi { * @param petId ID of pet that needs to be updated (required) * @param name Updated name of the pet (optional) * @param status Updated status of the pet (optional) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java index 91aaa01157..97d237b70c 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -50,6 +50,7 @@ public class StoreApi { * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors * @param orderId ID of the order that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException { diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java index a91765dfdb..079174b7c5 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/UserApi.java @@ -50,6 +50,7 @@ public class UserApi { * Create user * This can only be done by the logged in user. * @param body Created user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUserWithHttpInfo(User body) throws ApiException { @@ -101,6 +102,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithArrayInputWithHttpInfo(List body) throws ApiException { @@ -152,6 +154,7 @@ public class UserApi { * Creates list of users with given input array * * @param body List of user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse createUsersWithListInputWithHttpInfo(List body) throws ApiException { @@ -203,6 +206,7 @@ public class UserApi { * Delete user * This can only be done by the logged in user. * @param username The name that needs to be deleted (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { @@ -367,6 +371,7 @@ public class UserApi { /** * Logs out current logged in user session * + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse logoutUserWithHttpInfo() throws ApiException { @@ -415,6 +420,7 @@ public class UserApi { * This can only be done by the logged in user. * @param username name that need to be deleted (required) * @param body Updated user object (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ public ApiResponse updateUserWithHttpInfo(String username, User body) throws ApiException {