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 0fc1a57032f1..62edfeb8ee14 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
@@ -67,7 +67,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -101,7 +102,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -232,7 +234,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -252,7 +255,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache
index 3beebe5cb9cb..be8861553ddb 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey3/api.mustache
@@ -67,7 +67,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -101,7 +102,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -232,7 +234,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -252,7 +255,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache
index ab2f93c77d3b..3fe8452a2420 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api.mustache
@@ -98,7 +98,8 @@ public class {{classname}} {
* @throws ApiException If fail to serialize the request body object
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -287,7 +288,8 @@ public class {{classname}} {
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -327,7 +329,8 @@ public class {{classname}} {
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -395,7 +398,8 @@ public class {{classname}} {
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -455,7 +459,8 @@ public class {{classname}} {
* @throws ApiException If fail to serialize the request body object
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -479,7 +484,8 @@ public class {{classname}} {
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -511,7 +517,8 @@ public class {{classname}} {
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -543,7 +550,8 @@ public class {{classname}} {
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -569,7 +577,8 @@ public class {{classname}} {
* @return API{{operationId}}Request
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
diff --git a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache
index 8554cff7627f..329206d99daa 100644
--- a/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache
+++ b/modules/openapi-generator/src/test/resources/2_0/templates/Java/libraries/jersey2/api.mustache
@@ -61,7 +61,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -95,7 +96,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -200,7 +202,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
@@ -220,7 +223,8 @@ public class {{classname}} {
* @throws ApiException if fails to make API call
{{#responses.0}}
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
{{#responses}}
{{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java
index 2c57d0c17dcd..e45514969fd8 100644
--- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/PetApi.java
@@ -81,7 +81,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
405 | Invalid input | - |
@@ -152,7 +153,8 @@ private okhttp3.Call addPetValidateBeforeCall(Pet pet, final ApiCallback _callba
* @return Pet
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
405 | Invalid input | - |
@@ -170,7 +172,8 @@ public Pet addPet(Pet pet) throws ApiException {
* @return ApiResponse<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
405 | Invalid input | - |
@@ -190,7 +193,8 @@ public ApiResponse addPetWithHttpInfo(Pet pet) throws ApiException {
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
405 | Invalid input | - |
@@ -211,7 +215,8 @@ public okhttp3.Call addPetAsync(Pet pet, final ApiCallback _callback) throw
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid pet value | - |
@@ -282,7 +287,8 @@ private okhttp3.Call deletePetValidateBeforeCall(Long petId, String apiKey, fina
* @param apiKey (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid pet value | - |
@@ -299,7 +305,8 @@ public void deletePet(Long petId, String apiKey) throws ApiException {
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid pet value | - |
@@ -318,7 +325,8 @@ public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid pet value | - |
@@ -336,7 +344,8 @@ public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback<
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid status value | - |
@@ -409,7 +418,8 @@ private okhttp3.Call findPetsByStatusValidateBeforeCall(List status, fin
* @return List<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid status value | - |
@@ -427,7 +437,8 @@ public List findPetsByStatus(List status) throws ApiException {
* @return ApiResponse<List<Pet>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid status value | - |
@@ -447,7 +458,8 @@ public ApiResponse> findPetsByStatusWithHttpInfo(List status)
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid status value | - |
@@ -467,7 +479,8 @@ public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid tag value | - |
@@ -543,7 +556,8 @@ private okhttp3.Call findPetsByTagsValidateBeforeCall(List tags, final A
* @return List<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid tag value | - |
@@ -563,7 +577,8 @@ public List findPetsByTags(List tags) throws ApiException {
* @return ApiResponse<List<Pet>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid tag value | - |
@@ -585,7 +600,8 @@ public ApiResponse> findPetsByTagsWithHttpInfo(List tags) thro
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid tag value | - |
@@ -607,7 +623,8 @@ public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -678,7 +695,8 @@ private okhttp3.Call getPetByIdValidateBeforeCall(Long petId, final ApiCallback
* @return Pet
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -697,7 +715,8 @@ public Pet getPetById(Long petId) throws ApiException {
* @return ApiResponse<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -718,7 +737,8 @@ public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException {
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -739,7 +759,8 @@ public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -814,7 +835,8 @@ private okhttp3.Call updatePetValidateBeforeCall(Pet pet, final ApiCallback _cal
* @return Pet
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -836,7 +858,8 @@ public Pet updatePet(Pet pet) throws ApiException {
* @return ApiResponse<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -860,7 +883,8 @@ public ApiResponse updatePetWithHttpInfo(Pet pet) throws ApiException {
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -886,7 +910,8 @@ public okhttp3.Call updatePetAsync(Pet pet, final ApiCallback _callback) th
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
405 | Invalid input | - |
@@ -963,7 +988,8 @@ private okhttp3.Call updatePetWithFormValidateBeforeCall(Long petId, String name
* @param status Updated status of the pet (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
405 | Invalid input | - |
@@ -981,7 +1007,8 @@ public void updatePetWithForm(Long petId, String name, String status) throws Api
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
405 | Invalid input | - |
@@ -1001,7 +1028,8 @@ public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name,
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
405 | Invalid input | - |
@@ -1021,7 +1049,8 @@ public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String statu
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -1100,7 +1129,8 @@ private okhttp3.Call uploadFileValidateBeforeCall(Long petId, String additionalM
* @return ModelApiResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -1119,7 +1149,8 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _
* @return ApiResponse<ModelApiResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -1140,7 +1171,8 @@ public ApiResponse uploadFileWithHttpInfo(Long petId, String a
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
diff --git a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java
index df8db739366f..1572d13a7485 100644
--- a/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/echo_api/java/okhttp-gson-user-defined-templates/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -79,7 +79,8 @@ public void setCustomBaseUrl(String customBaseUrl) {
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid ID supplied | - |
404 | Order not found | - |
@@ -146,7 +147,8 @@ private okhttp3.Call deleteOrderValidateBeforeCall(String orderId, final ApiCall
* @param orderId ID of the order that needs to be deleted (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid ID supplied | - |
404 | Order not found | - |
@@ -163,7 +165,8 @@ public void deleteOrder(String orderId) throws ApiException {
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid ID supplied | - |
404 | Order not found | - |
@@ -182,7 +185,8 @@ public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiExcep
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
400 | Invalid ID supplied | - |
404 | Order not found | - |
@@ -200,7 +204,8 @@ public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _ca
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -261,7 +266,8 @@ private okhttp3.Call getInventoryValidateBeforeCall(final ApiCallback _callback)
* @return Map<String, Integer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -277,7 +283,8 @@ public Map getInventory() throws ApiException {
* @return ApiResponse<Map<String, Integer>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
-
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
@@ -295,7 +302,8 @@ public ApiResponse