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 48392afa4071..2dd79633eede 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}} |
@@ -290,7 +291,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}} |
@@ -330,7 +332,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}} |
@@ -398,7 +401,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}} |
@@ -458,7 +462,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}} |
@@ -482,7 +487,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}} |
@@ -514,7 +520,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}} |
@@ -546,7 +553,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}} |
@@ -572,7 +580,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 cb11874cf81c..5766da3819b2 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 | - |
@@ -283,7 +288,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 | - |
@@ -300,7 +306,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 | - |
@@ -319,7 +326,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 | - |
@@ -337,7 +345,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 | - |
@@ -410,7 +419,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 | - |
@@ -428,7 +438,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 | - |
@@ -448,7 +459,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 | - |
@@ -468,7 +480,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 | - |
@@ -544,7 +557,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 | - |
@@ -564,7 +578,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 | - |
@@ -586,7 +601,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 | - |
@@ -608,7 +624,8 @@ public okhttp3.Call findPetsByTagsAsync(List tags, final ApiCallback
+
+ Response Details
Status Code | Description | Response Headers |
200 | successful operation | - |
400 | Invalid ID supplied | - |
@@ -679,7 +696,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 | - |
@@ -698,7 +716,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 | - |
@@ -719,7 +738,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 | - |
@@ -740,7 +760,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 | - |
@@ -815,7 +836,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 | - |
@@ -837,7 +859,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 | - |
@@ -861,7 +884,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 | - |
@@ -887,7 +911,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 | - |
@@ -964,7 +989,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 | - |
@@ -982,7 +1008,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 | - |
@@ -1002,7 +1029,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 | - |
@@ -1022,7 +1050,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 | - |
@@ -1101,7 +1130,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 | - |
@@ -1120,7 +1150,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 | - |
@@ -1141,7 +1172,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