# Org.OpenAPITools.Api.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 | | [**TestBodyApplicationOctetstreamBinary**](BodyApi.md#testbodyapplicationoctetstreambinary) | **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 | | [**TestBodyMultipartFormdataSingleBinary**](BodyApi.md#testbodymultipartformdatasinglebinary) | **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) | | [**TestEchoBodyFreeFormObjectResponseString**](BodyApi.md#testechobodyfreeformobjectresponsestring) | **POST** /echo/body/FreeFormObject/response_string | Test free form object | | [**TestEchoBodyPet**](BodyApi.md#testechobodypet) | **POST** /echo/body/Pet | Test body parameter(s) | | [**TestEchoBodyPetResponseString**](BodyApi.md#testechobodypetresponsestring) | **POST** /echo/body/Pet/response_string | Test empty response body | | [**TestEchoBodyStringEnum**](BodyApi.md#testechobodystringenum) | **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) | # **TestBinaryGif** > System.IO.Stream TestBinaryGif () Test binary (gif) response body Test binary (gif) response body ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestBinaryGifExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); try { // Test binary (gif) response body System.IO.Stream result = apiInstance.TestBinaryGif(); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBinaryGif: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestBinaryGifWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test binary (gif) response body ApiResponse response = apiInstance.TestBinaryGifWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBinaryGifWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### Parameters This endpoint does not need any parameter. ### Return type **System.IO.Stream** ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestBodyApplicationOctetstreamBinary** > string TestBodyApplicationOctetstreamBinary (System.IO.Stream? body = null) Test body parameter(s) Test body parameter(s) ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestBodyApplicationOctetstreamBinaryExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var body = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | (optional) try { // Test body parameter(s) string result = apiInstance.TestBodyApplicationOctetstreamBinary(body); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyApplicationOctetstreamBinary: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestBodyApplicationOctetstreamBinaryWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test body parameter(s) ApiResponse response = apiInstance.TestBodyApplicationOctetstreamBinaryWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyApplicationOctetstreamBinaryWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### Parameters | Name | Type | Description | Notes | |------|------|-------------|-------| | **body** | **System.IO.Stream?****System.IO.Stream?** | | [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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestBodyMultipartFormdataArrayOfBinary** > string TestBodyMultipartFormdataArrayOfBinary (List files) Test array of binary in multipart mime Test array of binary in multipart mime ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestBodyMultipartFormdataArrayOfBinaryExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var files = new List(); // List | try { // Test array of binary in multipart mime string result = apiInstance.TestBodyMultipartFormdataArrayOfBinary(files); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyMultipartFormdataArrayOfBinary: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestBodyMultipartFormdataArrayOfBinaryWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test array of binary in multipart mime ApiResponse response = apiInstance.TestBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyMultipartFormdataArrayOfBinaryWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### Parameters | Name | Type | Description | Notes | |------|------|-------------|-------| | **files** | **List<System.IO.Stream>** | | | ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestBodyMultipartFormdataSingleBinary** > string TestBodyMultipartFormdataSingleBinary (System.IO.Stream? myFile = null) Test single binary in multipart mime Test single binary in multipart mime ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestBodyMultipartFormdataSingleBinaryExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var myFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | (optional) try { // Test single binary in multipart mime string result = apiInstance.TestBodyMultipartFormdataSingleBinary(myFile); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyMultipartFormdataSingleBinary: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestBodyMultipartFormdataSingleBinaryWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test single binary in multipart mime ApiResponse response = apiInstance.TestBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestBodyMultipartFormdataSingleBinaryWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### Parameters | Name | Type | Description | Notes | |------|------|-------------|-------| | **myFile** | **System.IO.Stream?****System.IO.Stream?** | | [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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyAllOfPet** > Pet TestEchoBodyAllOfPet (Pet? pet = null) Test body parameter(s) Test body parameter(s) ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyAllOfPetExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional) try { // Test body parameter(s) Pet result = apiInstance.TestEchoBodyAllOfPet(pet); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyAllOfPet: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyAllOfPetWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test body parameter(s) ApiResponse response = apiInstance.TestEchoBodyAllOfPetWithHttpInfo(pet); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyAllOfPetWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyFreeFormObjectResponseString** > string TestEchoBodyFreeFormObjectResponseString (Object? body = null) Test free form object Test free form object ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyFreeFormObjectResponseStringExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var body = null; // Object? | Free form object (optional) try { // Test free form object string result = apiInstance.TestEchoBodyFreeFormObjectResponseString(body); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyFreeFormObjectResponseString: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyFreeFormObjectResponseStringWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test free form object ApiResponse response = apiInstance.TestEchoBodyFreeFormObjectResponseStringWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyFreeFormObjectResponseStringWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyPet** > Pet TestEchoBodyPet (Pet? pet = null) Test body parameter(s) Test body parameter(s) ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyPetExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional) try { // Test body parameter(s) Pet result = apiInstance.TestEchoBodyPet(pet); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyPet: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyPetWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test body parameter(s) ApiResponse response = apiInstance.TestEchoBodyPetWithHttpInfo(pet); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyPetWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyPetResponseString** > string TestEchoBodyPetResponseString (Pet? pet = null) Test empty response body Test empty response body ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyPetResponseStringExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var pet = new Pet?(); // Pet? | Pet object that needs to be added to the store (optional) try { // Test empty response body string result = apiInstance.TestEchoBodyPetResponseString(pet); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyPetResponseString: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyPetResponseStringWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test empty response body ApiResponse response = apiInstance.TestEchoBodyPetResponseStringWithHttpInfo(pet); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyPetResponseStringWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyStringEnum** > StringEnumRef TestEchoBodyStringEnum (string? body = null) Test string enum response body Test string enum response body ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyStringEnumExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var body = null; // string? | String enum (optional) try { // Test string enum response body StringEnumRef result = apiInstance.TestEchoBodyStringEnum(body); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyStringEnum: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyStringEnumWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test string enum response body ApiResponse response = apiInstance.TestEchoBodyStringEnumWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyStringEnumWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **TestEchoBodyTagResponseString** > string TestEchoBodyTagResponseString (Tag? tag = null) Test empty json (request body) Test empty json (request body) ### Example ```csharp using System.Collections.Generic; using System.Diagnostics; using Org.OpenAPITools.Api; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; namespace Example { public class TestEchoBodyTagResponseStringExample { public static void Main() { Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); var tag = new Tag?(); // Tag? | Tag object (optional) try { // Test empty json (request body) string result = apiInstance.TestEchoBodyTagResponseString(tag); Debug.WriteLine(result); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyTagResponseString: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } } } } ``` #### Using the TestEchoBodyTagResponseStringWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { // Test empty json (request body) ApiResponse response = apiInstance.TestEchoBodyTagResponseStringWithHttpInfo(tag); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { Debug.Print("Exception when calling BodyApi.TestEchoBodyTagResponseStringWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } ``` ### 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 | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)