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 3705e654e09..32b1e3fcf04 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
@@ -69,6 +69,15 @@ public class {{classname}} {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -179,6 +188,15 @@ public class {{classname}} {
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}}{{#returnType}}
* @return {{returnType}}{{/returnType}}
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -202,6 +220,15 @@ public class {{classname}} {
* @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}}
* @return ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -226,6 +253,15 @@ public class {{classname}} {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -277,6 +313,15 @@ public class {{classname}} {
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -292,6 +337,15 @@ public class {{classname}} {
* Execute {{operationId}} request{{#returnType}}
* @return {{returnType}}{{/returnType}}
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -308,6 +362,15 @@ public class {{classname}} {
* Execute {{operationId}} request with HTTP info returned
* @return ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -324,6 +387,15 @@ public class {{classname}} {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
@@ -341,6 +413,15 @@ public class {{classname}} {
* {{notes}}{{#requiredParams}}
* @param {{paramName}} {{description}} (required){{/requiredParams}}
* @return API{{operationId}}Request
+ {{#responses.0}}
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ {{#responses}}
+ {{code}} | {{message}} | {{#headers}} * {{baseName}} - {{description}} {{/headers}}{{^headers.0}} - {{/headers.0}} |
+ {{/responses}}
+
+ {{/responses.0}}
{{#isDeprecated}}
* @deprecated
{{/isDeprecated}}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api_doc.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api_doc.mustache
index 1292eb3aa84..7c798325d39 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api_doc.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/api_doc.mustache
@@ -81,5 +81,14 @@ Name | Type | Description | Notes
- **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
+{{#responses.0}}
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+{{#responses}}
+**{{code}}** | {{message}} | {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}} |
+{{/responses}}
+{{/responses.0}}
+
{{/operation}}
{{/operations}}
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
index 5ef1fc2bf9b..eac0a4e1ba2 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
@@ -149,6 +149,15 @@
jar
+
+
+
+ http.response.details
+ a
+ Http Response Details:
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
index 4a8546e0c16..d03bcac37f5 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
@@ -52,3 +52,8 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md
index 6c99239a23b..d81b8065da1 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md
@@ -63,6 +63,11 @@ No authorization required
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
# **fakeOuterBooleanSerialize**
> Boolean fakeOuterBooleanSerialize(body)
@@ -108,6 +113,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: */*
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Output boolean | - |
+
# **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(body)
@@ -153,6 +163,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: */*
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Output composite | - |
+
# **fakeOuterNumberSerialize**
> BigDecimal fakeOuterNumberSerialize(body)
@@ -198,6 +213,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: */*
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Output number | - |
+
# **fakeOuterStringSerialize**
> String fakeOuterStringSerialize(body)
@@ -243,6 +263,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: */*
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Output string | - |
+
# **testBodyWithFileSchema**
> testBodyWithFileSchema(body)
@@ -287,6 +312,11 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+
# **testBodyWithQueryParams**
> testBodyWithQueryParams(query, body)
@@ -331,6 +361,11 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+
# **testClientModel**
> Client testClientModel(body)
@@ -376,6 +411,11 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
# **testEndpointParameters**
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
@@ -455,6 +495,12 @@ null (empty response body)
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Invalid username supplied | - |
+**404** | User not found | - |
+
# **testEnumParameters**
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
@@ -513,6 +559,12 @@ No authorization required
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Invalid request | - |
+**404** | Not found | - |
+
# **testGroupParameters**
> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group).stringGroup(stringGroup).booleanGroup(booleanGroup).int64Group(int64Group).execute();
@@ -571,6 +623,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Someting wrong | - |
+
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties(param)
@@ -613,6 +670,11 @@ No authorization required
- **Content-Type**: application/json
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
# **testJsonFormData**
> testJsonFormData(param, param2)
@@ -657,3 +719,8 @@ No authorization required
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md
index 873b7493623..045588a0b21 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeClassnameTags123Api.md
@@ -62,3 +62,8 @@ Name | Type | Description | Notes
- **Content-Type**: application/json
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md
index fa157be7012..d1398665a39 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/PetApi.md
@@ -65,6 +65,12 @@ null (empty response body)
- **Content-Type**: application/json, application/xml
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**405** | Invalid input | - |
+
# **deletePet**
> deletePet(petId, apiKey)
@@ -117,6 +123,12 @@ null (empty response body)
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid pet value | - |
+
# **findPetsByStatus**
> List<Pet> findPetsByStatus(status)
@@ -170,6 +182,12 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid status value | - |
+
# **findPetsByTags**
> List<Pet> findPetsByTags(tags)
@@ -223,6 +241,12 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid tag value | - |
+
# **getPetById**
> Pet getPetById(petId)
@@ -278,6 +302,13 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid ID supplied | - |
+**404** | Pet not found | - |
+
# **updatePet**
> updatePet(body)
@@ -328,6 +359,14 @@ null (empty response body)
- **Content-Type**: application/json, application/xml
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid ID supplied | - |
+**404** | Pet not found | - |
+**405** | Validation exception | - |
+
# **updatePetWithForm**
> updatePetWithForm(petId, name, status)
@@ -382,6 +421,11 @@ null (empty response body)
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**405** | Invalid input | - |
+
# **uploadFile**
> ModelApiResponse uploadFile(petId, additionalMetadata, file)
@@ -437,6 +481,11 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
# **uploadFileWithRequiredFile**
> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
@@ -492,3 +541,8 @@ Name | Type | Description | Notes
- **Content-Type**: multipart/form-data
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md
index 30d782f82d9..9679e8132c5 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/StoreApi.md
@@ -54,6 +54,12 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Invalid ID supplied | - |
+**404** | Order not found | - |
+
# **getInventory**
> Map<String, Integer> getInventory()
@@ -105,6 +111,11 @@ This endpoint does not need any parameter.
- **Content-Type**: Not defined
- **Accept**: application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+
# **getOrderById**
> Order getOrderById(orderId)
@@ -150,6 +161,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid ID supplied | - |
+**404** | Order not found | - |
+
# **placeOrder**
> Order placeOrder(body)
@@ -193,3 +211,9 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid Order | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md
index 5969abd518d..1ad159b0325 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/UserApi.md
@@ -58,6 +58,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**0** | successful operation | - |
+
# **createUsersWithArrayInput**
> createUsersWithArrayInput(body)
@@ -100,6 +105,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**0** | successful operation | - |
+
# **createUsersWithListInput**
> createUsersWithListInput(body)
@@ -142,6 +152,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**0** | successful operation | - |
+
# **deleteUser**
> deleteUser(username)
@@ -186,6 +201,12 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Invalid username supplied | - |
+**404** | User not found | - |
+
# **getUserByName**
> User getUserByName(username)
@@ -229,6 +250,13 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | - |
+**400** | Invalid username supplied | - |
+**404** | User not found | - |
+
# **loginUser**
> String loginUser(username, password)
@@ -274,6 +302,12 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: application/xml, application/json
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful operation | * X-Rate-Limit - calls per hour allowed by the user
* X-Expires-After - date in UTC when token expires
|
+**400** | Invalid username/password supplied | - |
+
# **logoutUser**
> logoutUser()
@@ -312,6 +346,11 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**0** | successful operation | - |
+
# **updateUser**
> updateUser(username, body)
@@ -358,3 +397,9 @@ No authorization required
- **Content-Type**: Not defined
- **Accept**: Not defined
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Invalid user supplied | - |
+**404** | User not found | - |
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/pom.xml b/samples/client/petstore/java/okhttp-gson-parcelableModel/pom.xml
index 34f8ef7bf48..0353247b020 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/pom.xml
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/pom.xml
@@ -142,6 +142,15 @@
jar
+
+
+
+ http.response.details
+ a
+ Http Response Details:
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index df8a2099b96..c9978a6f869 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -60,6 +60,11 @@ public class AnotherFakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call call123testSpecialTagsCall(Client body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -109,6 +114,11 @@ public class AnotherFakeApi {
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public Client call123testSpecialTags(Client body) throws ApiException {
ApiResponse localVarResp = call123testSpecialTagsWithHttpInfo(body);
@@ -121,6 +131,11 @@ public class AnotherFakeApi {
* @param body client model (required)
* @return ApiResponse<Client>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
okhttp3.Call localVarCall = call123testSpecialTagsValidateBeforeCall(body, null);
@@ -135,6 +150,11 @@ public class AnotherFakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call call123testSpecialTagsAsync(Client body, final ApiCallback _callback) throws ApiException {
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java
index b5eb5fc1acd..44c7a97ffc4 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -68,6 +68,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call createXmlItemCall(XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = xmlItem;
@@ -116,6 +121,11 @@ public class FakeApi {
* this route creates an XmlItem
* @param xmlItem XmlItem Body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public void createXmlItem(XmlItem xmlItem) throws ApiException {
createXmlItemWithHttpInfo(xmlItem);
@@ -127,6 +137,11 @@ public class FakeApi {
* @param xmlItem XmlItem Body (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException {
okhttp3.Call localVarCall = createXmlItemValidateBeforeCall(xmlItem, null);
@@ -140,6 +155,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call createXmlItemAsync(XmlItem xmlItem, final ApiCallback _callback) throws ApiException {
@@ -153,6 +173,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output boolean | - |
+
*/
public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -197,6 +222,11 @@ public class FakeApi {
* @param body Input boolean as post body (optional)
* @return Boolean
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output boolean | - |
+
*/
public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
ApiResponse localVarResp = fakeOuterBooleanSerializeWithHttpInfo(body);
@@ -209,6 +239,11 @@ public class FakeApi {
* @param body Input boolean as post body (optional)
* @return ApiResponse<Boolean>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output boolean | - |
+
*/
public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterBooleanSerializeValidateBeforeCall(body, null);
@@ -223,6 +258,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output boolean | - |
+
*/
public okhttp3.Call fakeOuterBooleanSerializeAsync(Boolean body, final ApiCallback _callback) throws ApiException {
@@ -237,6 +277,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output composite | - |
+
*/
public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -281,6 +326,11 @@ public class FakeApi {
* @param body Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output composite | - |
+
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
ApiResponse localVarResp = fakeOuterCompositeSerializeWithHttpInfo(body);
@@ -293,6 +343,11 @@ public class FakeApi {
* @param body Input composite as post body (optional)
* @return ApiResponse<OuterComposite>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output composite | - |
+
*/
public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterCompositeSerializeValidateBeforeCall(body, null);
@@ -307,6 +362,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output composite | - |
+
*/
public okhttp3.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback _callback) throws ApiException {
@@ -321,6 +381,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output number | - |
+
*/
public okhttp3.Call fakeOuterNumberSerializeCall(BigDecimal body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -365,6 +430,11 @@ public class FakeApi {
* @param body Input number as post body (optional)
* @return BigDecimal
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output number | - |
+
*/
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
ApiResponse localVarResp = fakeOuterNumberSerializeWithHttpInfo(body);
@@ -377,6 +447,11 @@ public class FakeApi {
* @param body Input number as post body (optional)
* @return ApiResponse<BigDecimal>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output number | - |
+
*/
public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterNumberSerializeValidateBeforeCall(body, null);
@@ -391,6 +466,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output number | - |
+
*/
public okhttp3.Call fakeOuterNumberSerializeAsync(BigDecimal body, final ApiCallback _callback) throws ApiException {
@@ -405,6 +485,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output string | - |
+
*/
public okhttp3.Call fakeOuterStringSerializeCall(String body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -449,6 +534,11 @@ public class FakeApi {
* @param body Input string as post body (optional)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output string | - |
+
*/
public String fakeOuterStringSerialize(String body) throws ApiException {
ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body);
@@ -461,6 +551,11 @@ public class FakeApi {
* @param body Input string as post body (optional)
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output string | - |
+
*/
public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null);
@@ -475,6 +570,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Output string | - |
+
*/
public okhttp3.Call fakeOuterStringSerializeAsync(String body, final ApiCallback _callback) throws ApiException {
@@ -489,6 +589,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public okhttp3.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -537,6 +642,11 @@ public class FakeApi {
* For this test, the body for this request much reference a schema named `File`.
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body);
@@ -548,6 +658,11 @@ public class FakeApi {
* @param body (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
okhttp3.Call localVarCall = testBodyWithFileSchemaValidateBeforeCall(body, null);
@@ -561,6 +676,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public okhttp3.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback _callback) throws ApiException {
@@ -575,6 +695,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public okhttp3.Call testBodyWithQueryParamsCall(String query, User body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -633,6 +758,11 @@ public class FakeApi {
* @param query (required)
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body);
@@ -645,6 +775,11 @@ public class FakeApi {
* @param body (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
okhttp3.Call localVarCall = testBodyWithQueryParamsValidateBeforeCall(query, body, null);
@@ -659,6 +794,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | Success | - |
+
*/
public okhttp3.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback _callback) throws ApiException {
@@ -672,6 +812,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testClientModelCall(Client body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -721,6 +866,11 @@ public class FakeApi {
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public Client testClientModel(Client body) throws ApiException {
ApiResponse localVarResp = testClientModelWithHttpInfo(body);
@@ -733,6 +883,11 @@ public class FakeApi {
* @param body client model (required)
* @return ApiResponse<Client>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse testClientModelWithHttpInfo(Client body) throws ApiException {
okhttp3.Call localVarCall = testClientModelValidateBeforeCall(body, null);
@@ -747,6 +902,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testClientModelAsync(Client body, final ApiCallback _callback) throws ApiException {
@@ -774,6 +934,12 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid username supplied | - |
+ 404 | User not found | - |
+
*/
public okhttp3.Call testEndpointParametersCall(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, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -906,6 +1072,12 @@ public class FakeApi {
* @param password None (optional)
* @param paramCallback None (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid username supplied | - |
+ 404 | User not found | - |
+
*/
public void testEndpointParameters(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 {
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
@@ -930,6 +1102,12 @@ public class FakeApi {
* @param paramCallback None (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid username supplied | - |
+ 404 | User not found | - |
+
*/
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 {
okhttp3.Call localVarCall = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null);
@@ -956,6 +1134,12 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid username supplied | - |
+ 404 | User not found | - |
+
*/
public okhttp3.Call testEndpointParametersAsync(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, final ApiCallback _callback) throws ApiException {
@@ -976,6 +1160,12 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid request | - |
+ 404 | Not found | - |
+
*/
public okhttp3.Call testEnumParametersCall(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -1058,6 +1248,12 @@ public class FakeApi {
* @param enumFormStringArray Form parameter enum test (string array) (optional)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid request | - |
+ 404 | Not found | - |
+
*/
public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException {
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
@@ -1076,6 +1272,12 @@ public class FakeApi {
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid request | - |
+ 404 | Not found | - |
+
*/
public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException {
okhttp3.Call localVarCall = testEnumParametersValidateBeforeCall(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, null);
@@ -1096,6 +1298,12 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid request | - |
+ 404 | Not found | - |
+
*/
public okhttp3.Call testEnumParametersAsync(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
@@ -1241,6 +1449,11 @@ public class FakeApi {
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Someting wrong | - |
+
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return testGroupParametersCall(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback);
@@ -1249,6 +1462,11 @@ public class FakeApi {
/**
* Execute testGroupParameters request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Someting wrong | - |
+
*/
public void execute() throws ApiException {
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
@@ -1258,6 +1476,11 @@ public class FakeApi {
* Execute testGroupParameters request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Someting wrong | - |
+
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
@@ -1268,6 +1491,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Someting wrong | - |
+
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return testGroupParametersAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, _callback);
@@ -1281,6 +1509,11 @@ public class FakeApi {
* @param requiredBooleanGroup Required Boolean in group parameters (required)
* @param requiredInt64Group Required Integer in group parameters (required)
* @return APItestGroupParametersRequest
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Someting wrong | - |
+
*/
public APItestGroupParametersRequest testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group) {
return new APItestGroupParametersRequest(requiredStringGroup, requiredBooleanGroup, requiredInt64Group);
@@ -1291,6 +1524,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testInlineAdditionalPropertiesCall(Map param, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = param;
@@ -1339,6 +1577,11 @@ public class FakeApi {
*
* @param param request body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public void testInlineAdditionalProperties(Map param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param);
@@ -1350,6 +1593,11 @@ public class FakeApi {
* @param param request body (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map param) throws ApiException {
okhttp3.Call localVarCall = testInlineAdditionalPropertiesValidateBeforeCall(param, null);
@@ -1363,6 +1611,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testInlineAdditionalPropertiesAsync(Map param, final ApiCallback _callback) throws ApiException {
@@ -1377,6 +1630,11 @@ public class FakeApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -1439,6 +1697,11 @@ public class FakeApi {
* @param param field1 (required)
* @param param2 field2 (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public void testJsonFormData(String param, String param2) throws ApiException {
testJsonFormDataWithHttpInfo(param, param2);
@@ -1451,6 +1714,11 @@ public class FakeApi {
* @param param2 field2 (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
okhttp3.Call localVarCall = testJsonFormDataValidateBeforeCall(param, param2, null);
@@ -1465,6 +1733,11 @@ public class FakeApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testJsonFormDataAsync(String param, String param2, final ApiCallback _callback) throws ApiException {
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index 58f139f0837..621c27fd295 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -60,6 +60,11 @@ public class FakeClassnameTags123Api {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testClassnameCall(Client body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -109,6 +114,11 @@ public class FakeClassnameTags123Api {
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public Client testClassname(Client body) throws ApiException {
ApiResponse localVarResp = testClassnameWithHttpInfo(body);
@@ -121,6 +131,11 @@ public class FakeClassnameTags123Api {
* @param body client model (required)
* @return ApiResponse<Client>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse testClassnameWithHttpInfo(Client body) throws ApiException {
okhttp3.Call localVarCall = testClassnameValidateBeforeCall(body, null);
@@ -135,6 +150,11 @@ public class FakeClassnameTags123Api {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call testClassnameAsync(Client body, final ApiCallback _callback) throws ApiException {
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java
index 4de2d249538..ce889eb24ec 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/PetApi.java
@@ -62,6 +62,12 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 405 | Invalid input | - |
+
*/
public okhttp3.Call addPetCall(Pet body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -110,6 +116,12 @@ public class PetApi {
*
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 405 | Invalid input | - |
+
*/
public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body);
@@ -121,6 +133,12 @@ public class PetApi {
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 405 | Invalid input | - |
+
*/
public ApiResponse addPetWithHttpInfo(Pet body) throws ApiException {
okhttp3.Call localVarCall = addPetValidateBeforeCall(body, null);
@@ -134,6 +152,12 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 405 | Invalid input | - |
+
*/
public okhttp3.Call addPetAsync(Pet body, final ApiCallback _callback) throws ApiException {
@@ -148,6 +172,12 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid pet value | - |
+
*/
public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -202,6 +232,12 @@ public class PetApi {
* @param petId Pet id to delete (required)
* @param apiKey (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid pet value | - |
+
*/
public void deletePet(Long petId, String apiKey) throws ApiException {
deletePetWithHttpInfo(petId, apiKey);
@@ -214,6 +250,12 @@ public class PetApi {
* @param apiKey (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid pet value | - |
+
*/
public ApiResponse deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
okhttp3.Call localVarCall = deletePetValidateBeforeCall(petId, apiKey, null);
@@ -228,6 +270,12 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid pet value | - |
+
*/
public okhttp3.Call deletePetAsync(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
@@ -241,6 +289,12 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid status value | - |
+
*/
public okhttp3.Call findPetsByStatusCall(List status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -294,6 +348,12 @@ public class PetApi {
* @param status Status values that need to be considered for filter (required)
* @return List<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid status value | - |
+
*/
public List findPetsByStatus(List status) throws ApiException {
ApiResponse> localVarResp = findPetsByStatusWithHttpInfo(status);
@@ -306,6 +366,12 @@ public class PetApi {
* @param status Status values that need to be considered for filter (required)
* @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
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid status value | - |
+
*/
public ApiResponse> findPetsByStatusWithHttpInfo(List status) throws ApiException {
okhttp3.Call localVarCall = findPetsByStatusValidateBeforeCall(status, null);
@@ -320,6 +386,12 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid status value | - |
+
*/
public okhttp3.Call findPetsByStatusAsync(List status, final ApiCallback> _callback) throws ApiException {
@@ -334,6 +406,12 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid tag value | - |
+
* @deprecated
*/
@Deprecated
@@ -390,6 +468,12 @@ public class PetApi {
* @param tags Tags to filter by (required)
* @return List<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid tag value | - |
+
* @deprecated
*/
@Deprecated
@@ -404,6 +488,12 @@ public class PetApi {
* @param tags Tags to filter by (required)
* @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
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid tag value | - |
+
* @deprecated
*/
@Deprecated
@@ -420,6 +510,12 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid tag value | - |
+
* @deprecated
*/
@Deprecated
@@ -436,6 +532,13 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+
*/
public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -486,6 +589,13 @@ public class PetApi {
* @param petId ID of pet to return (required)
* @return Pet
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+
*/
public Pet getPetById(Long petId) throws ApiException {
ApiResponse localVarResp = getPetByIdWithHttpInfo(petId);
@@ -498,6 +608,13 @@ public class PetApi {
* @param petId ID of pet to return (required)
* @return ApiResponse<Pet>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+
*/
public ApiResponse getPetByIdWithHttpInfo(Long petId) throws ApiException {
okhttp3.Call localVarCall = getPetByIdValidateBeforeCall(petId, null);
@@ -512,6 +629,13 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+
*/
public okhttp3.Call getPetByIdAsync(Long petId, final ApiCallback _callback) throws ApiException {
@@ -526,6 +650,14 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+ 405 | Validation exception | - |
+
*/
public okhttp3.Call updatePetCall(Pet body, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = body;
@@ -574,6 +706,14 @@ public class PetApi {
*
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+ 405 | Validation exception | - |
+
*/
public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body);
@@ -585,6 +725,14 @@ public class PetApi {
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+ 405 | Validation exception | - |
+
*/
public ApiResponse updatePetWithHttpInfo(Pet body) throws ApiException {
okhttp3.Call localVarCall = updatePetValidateBeforeCall(body, null);
@@ -598,6 +746,14 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+ 400 | Invalid ID supplied | - |
+ 404 | Pet not found | - |
+ 405 | Validation exception | - |
+
*/
public okhttp3.Call updatePetAsync(Pet body, final ApiCallback _callback) throws ApiException {
@@ -613,6 +769,11 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 405 | Invalid input | - |
+
*/
public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -672,6 +833,11 @@ public class PetApi {
* @param name Updated name of the pet (optional)
* @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
+
+ Status Code | Description | Response Headers |
+ 405 | Invalid input | - |
+
*/
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
updatePetWithFormWithHttpInfo(petId, name, status);
@@ -685,6 +851,11 @@ public class PetApi {
* @param status Updated status of the pet (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 405 | Invalid input | - |
+
*/
public ApiResponse updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
okhttp3.Call localVarCall = updatePetWithFormValidateBeforeCall(petId, name, status, null);
@@ -700,6 +871,11 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 405 | Invalid input | - |
+
*/
public okhttp3.Call updatePetWithFormAsync(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
@@ -715,6 +891,11 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -775,6 +956,11 @@ public class PetApi {
* @param file file to upload (optional)
* @return ModelApiResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
ApiResponse localVarResp = uploadFileWithHttpInfo(petId, additionalMetadata, file);
@@ -789,6 +975,11 @@ public class PetApi {
* @param file file to upload (optional)
* @return ApiResponse<ModelApiResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
okhttp3.Call localVarCall = uploadFileValidateBeforeCall(petId, additionalMetadata, file, null);
@@ -805,6 +996,11 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call uploadFileAsync(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
@@ -821,6 +1017,11 @@ public class PetApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -886,6 +1087,11 @@ public class PetApi {
* @param additionalMetadata Additional data to pass to server (optional)
* @return ModelApiResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
ApiResponse localVarResp = uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata);
@@ -900,6 +1106,11 @@ public class PetApi {
* @param additionalMetadata Additional data to pass to server (optional)
* @return ApiResponse<ModelApiResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public ApiResponse uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
okhttp3.Call localVarCall = uploadFileWithRequiredFileValidateBeforeCall(petId, requiredFile, additionalMetadata, null);
@@ -916,6 +1127,11 @@ public class PetApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call uploadFileWithRequiredFileAsync(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java
index 2e40d530964..d61f7271943 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -60,6 +60,12 @@ public class StoreApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid ID supplied | - |
+ 404 | Order not found | - |
+
*/
public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -109,6 +115,12 @@ public class StoreApi {
* 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)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid ID supplied | - |
+ 404 | Order not found | - |
+
*/
public void deleteOrder(String orderId) throws ApiException {
deleteOrderWithHttpInfo(orderId);
@@ -120,6 +132,12 @@ public class StoreApi {
* @param orderId ID of the order that needs to be deleted (required)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid ID supplied | - |
+ 404 | Order not found | - |
+
*/
public ApiResponse deleteOrderWithHttpInfo(String orderId) throws ApiException {
okhttp3.Call localVarCall = deleteOrderValidateBeforeCall(orderId, null);
@@ -133,6 +151,12 @@ public class StoreApi {
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 400 | Invalid ID supplied | - |
+ 404 | Order not found | - |
+
*/
public okhttp3.Call deleteOrderAsync(String orderId, final ApiCallback _callback) throws ApiException {
@@ -145,6 +169,11 @@ public class StoreApi {
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public okhttp3.Call getInventoryCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
@@ -188,6 +217,11 @@ public class StoreApi {
* Returns a map of status codes to quantities
* @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
+
+ Status Code | Description | Response Headers |
+ 200 | successful operation | - |
+
*/
public Map getInventory() throws ApiException {
ApiResponse