# BodyApi All URIs are relative to *http://localhost:3000* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**testBinaryGif**](BodyApi.md#testBinaryGif) | **POST** /binary/gif | Test binary (gif) response body | | [**testBinaryGifWithHttpInfo**](BodyApi.md#testBinaryGifWithHttpInfo) | **POST** /binary/gif | Test binary (gif) response body | | [**testBodyApplicationOctetstreamBinary**](BodyApi.md#testBodyApplicationOctetstreamBinary) | **POST** /body/application/octetstream/binary | Test body parameter(s) | | [**testBodyApplicationOctetstreamBinaryWithHttpInfo**](BodyApi.md#testBodyApplicationOctetstreamBinaryWithHttpInfo) | **POST** /body/application/octetstream/binary | Test body parameter(s) | | [**testBodyMultipartFormdataArrayOfBinary**](BodyApi.md#testBodyMultipartFormdataArrayOfBinary) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime | | [**testBodyMultipartFormdataArrayOfBinaryWithHttpInfo**](BodyApi.md#testBodyMultipartFormdataArrayOfBinaryWithHttpInfo) | **POST** /body/application/octetstream/array_of_binary | Test array of binary in multipart mime | | [**testBodyMultipartFormdataSingleBinary**](BodyApi.md#testBodyMultipartFormdataSingleBinary) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime | | [**testBodyMultipartFormdataSingleBinaryWithHttpInfo**](BodyApi.md#testBodyMultipartFormdataSingleBinaryWithHttpInfo) | **POST** /body/application/octetstream/single_binary | Test single binary in multipart mime | | [**testEchoBodyAllOfPet**](BodyApi.md#testEchoBodyAllOfPet) | **POST** /echo/body/allOf/Pet | Test body parameter(s) | | [**testEchoBodyAllOfPetWithHttpInfo**](BodyApi.md#testEchoBodyAllOfPetWithHttpInfo) | **POST** /echo/body/allOf/Pet | Test body parameter(s) | | [**testEchoBodyFreeFormObjectResponseString**](BodyApi.md#testEchoBodyFreeFormObjectResponseString) | **POST** /echo/body/FreeFormObject/response_string | Test free form object | | [**testEchoBodyFreeFormObjectResponseStringWithHttpInfo**](BodyApi.md#testEchoBodyFreeFormObjectResponseStringWithHttpInfo) | **POST** /echo/body/FreeFormObject/response_string | Test free form object | | [**testEchoBodyPet**](BodyApi.md#testEchoBodyPet) | **POST** /echo/body/Pet | Test body parameter(s) | | [**testEchoBodyPetWithHttpInfo**](BodyApi.md#testEchoBodyPetWithHttpInfo) | **POST** /echo/body/Pet | Test body parameter(s) | | [**testEchoBodyPetResponseString**](BodyApi.md#testEchoBodyPetResponseString) | **POST** /echo/body/Pet/response_string | Test empty response body | | [**testEchoBodyPetResponseStringWithHttpInfo**](BodyApi.md#testEchoBodyPetResponseStringWithHttpInfo) | **POST** /echo/body/Pet/response_string | Test empty response body | | [**testEchoBodyStringEnum**](BodyApi.md#testEchoBodyStringEnum) | **POST** /echo/body/string_enum | Test string enum response body | | [**testEchoBodyStringEnumWithHttpInfo**](BodyApi.md#testEchoBodyStringEnumWithHttpInfo) | **POST** /echo/body/string_enum | Test string enum response body | | [**testEchoBodyTagResponseString**](BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body) | | [**testEchoBodyTagResponseStringWithHttpInfo**](BodyApi.md#testEchoBodyTagResponseStringWithHttpInfo) | **POST** /echo/body/Tag/response_string | Test empty json (request body) | ## testBinaryGif > File testBinaryGif() Test binary (gif) response body Test binary (gif) response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); try { File result = apiInstance.testBinaryGif(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBinaryGif"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters This endpoint does not need any parameter. ### Return type [**File**](File.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: image/gif ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBinaryGifWithHttpInfo > ApiResponse testBinaryGif testBinaryGifWithHttpInfo() Test binary (gif) response body Test binary (gif) response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); try { ApiResponse response = apiInstance.testBinaryGifWithHttpInfo(); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBinaryGif"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters This endpoint does not need any parameter. ### Return type ApiResponse<[**File**](File.md)> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: image/gif ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyApplicationOctetstreamBinary > String testBodyApplicationOctetstreamBinary(body) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); File body = new File("/path/to/file"); // File | try { String result = apiInstance.testBodyApplicationOctetstreamBinary(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyApplicationOctetstreamBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **File**| | [optional] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/octet-stream - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyApplicationOctetstreamBinaryWithHttpInfo > ApiResponse testBodyApplicationOctetstreamBinary testBodyApplicationOctetstreamBinaryWithHttpInfo(body) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); File body = new File("/path/to/file"); // File | try { ApiResponse response = apiInstance.testBodyApplicationOctetstreamBinaryWithHttpInfo(body); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyApplicationOctetstreamBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **File**| | [optional] | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/octet-stream - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyMultipartFormdataArrayOfBinary > String testBodyMultipartFormdataArrayOfBinary(files) Test array of binary in multipart mime Test array of binary in multipart mime ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); List files = Arrays.asList(); // List | try { String result = apiInstance.testBodyMultipartFormdataArrayOfBinary(files); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataArrayOfBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **files** | **List<File>**| | | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyMultipartFormdataArrayOfBinaryWithHttpInfo > ApiResponse testBodyMultipartFormdataArrayOfBinary testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files) Test array of binary in multipart mime Test array of binary in multipart mime ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); List files = Arrays.asList(); // List | try { ApiResponse response = apiInstance.testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataArrayOfBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **files** | **List<File>**| | | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyMultipartFormdataSingleBinary > String testBodyMultipartFormdataSingleBinary(myFile) Test single binary in multipart mime Test single binary in multipart mime ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); File myFile = new File("/path/to/file"); // File | try { String result = apiInstance.testBodyMultipartFormdataSingleBinary(myFile); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataSingleBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **myFile** | **File**| | [optional] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testBodyMultipartFormdataSingleBinaryWithHttpInfo > ApiResponse testBodyMultipartFormdataSingleBinary testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile) Test single binary in multipart mime Test single binary in multipart mime ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); File myFile = new File("/path/to/file"); // File | try { ApiResponse response = apiInstance.testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testBodyMultipartFormdataSingleBinary"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **myFile** | **File**| | [optional] | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: multipart/form-data - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyAllOfPet > Pet testEchoBodyAllOfPet(pet) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { Pet result = apiInstance.testEchoBodyAllOfPet(pet); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyAllOfPet"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type [**Pet**](Pet.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyAllOfPetWithHttpInfo > ApiResponse testEchoBodyAllOfPet testEchoBodyAllOfPetWithHttpInfo(pet) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { ApiResponse response = apiInstance.testEchoBodyAllOfPetWithHttpInfo(pet); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyAllOfPet"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type ApiResponse<[**Pet**](Pet.md)> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyFreeFormObjectResponseString > String testEchoBodyFreeFormObjectResponseString(body) Test free form object Test free form object ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Object body = null; // Object | Free form object try { String result = apiInstance.testEchoBodyFreeFormObjectResponseString(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyFreeFormObjectResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **Object**| Free form object | [optional] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyFreeFormObjectResponseStringWithHttpInfo > ApiResponse testEchoBodyFreeFormObjectResponseString testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body) Test free form object Test free form object ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Object body = null; // Object | Free form object try { ApiResponse response = apiInstance.testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyFreeFormObjectResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **Object**| Free form object | [optional] | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyPet > Pet testEchoBodyPet(pet) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { Pet result = apiInstance.testEchoBodyPet(pet); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyPet"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type [**Pet**](Pet.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyPetWithHttpInfo > ApiResponse testEchoBodyPet testEchoBodyPetWithHttpInfo(pet) Test body parameter(s) Test body parameter(s) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { ApiResponse response = apiInstance.testEchoBodyPetWithHttpInfo(pet); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyPet"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type ApiResponse<[**Pet**](Pet.md)> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyPetResponseString > String testEchoBodyPetResponseString(pet) Test empty response body Test empty response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { String result = apiInstance.testEchoBodyPetResponseString(pet); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyPetResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyPetResponseStringWithHttpInfo > ApiResponse testEchoBodyPetResponseString testEchoBodyPetResponseStringWithHttpInfo(pet) Test empty response body Test empty response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store try { ApiResponse response = apiInstance.testEchoBodyPetResponseStringWithHttpInfo(pet); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyPetResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | [optional] | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyStringEnum > StringEnumRef testEchoBodyStringEnum(body) Test string enum response body Test string enum response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); String body = "body_example"; // String | String enum try { StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **String**| String enum | [optional] | ### Return type [**StringEnumRef**](StringEnumRef.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyStringEnumWithHttpInfo > ApiResponse testEchoBodyStringEnum testEchoBodyStringEnumWithHttpInfo(body) Test string enum response body Test string enum response body ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); String body = "body_example"; // String | String enum try { ApiResponse response = apiInstance.testEchoBodyStringEnumWithHttpInfo(body); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **body** | **String**| String enum | [optional] | ### Return type ApiResponse<[**StringEnumRef**](StringEnumRef.md)> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyTagResponseString > String testEchoBodyTagResponseString(tag) Test empty json (request body) Test empty json (request body) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Tag tag = new Tag(); // Tag | Tag object try { String result = apiInstance.testEchoBodyTagResponseString(tag); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyTagResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tag** | [**Tag**](Tag.md)| Tag object | [optional] | ### Return type **String** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | ## testEchoBodyTagResponseStringWithHttpInfo > ApiResponse testEchoBodyTagResponseString testEchoBodyTagResponseStringWithHttpInfo(tag) Test empty json (request body) Test empty json (request body) ### Example ```java // Import classes: import org.openapitools.client.ApiClient; import org.openapitools.client.ApiException; import org.openapitools.client.ApiResponse; import org.openapitools.client.Configuration; import org.openapitools.client.models.*; import org.openapitools.client.api.BodyApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); Tag tag = new Tag(); // Tag | Tag object try { ApiResponse response = apiInstance.testEchoBodyTagResponseStringWithHttpInfo(tag); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyTagResponseString"); System.err.println("Status code: " + e.getCode()); System.err.println("Response headers: " + e.getResponseHeaders()); System.err.println("Reason: " + e.getResponseBody()); e.printStackTrace(); } } } ``` ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **tag** | [**Tag**](Tag.md)| Tag object | [optional] | ### Return type ApiResponse<**String**> ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - |