forked from loafle/openapi-generator-original
Fix various typos in the templates (Ruby, C#) (#1803)
* Fix typos * update petstore samples
This commit is contained in:
parent
be262384cd
commit
d35f4b08d9
@ -84,7 +84,7 @@ namespace {{clientPackage}}
|
||||
private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -242,7 +242,7 @@ namespace {{packageName}}.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -322,7 +322,7 @@ namespace {{packageName}}.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -15,7 +15,7 @@
|
||||
{{/parent}}
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -329,7 +329,7 @@ namespace IO.Swagger.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -85,7 +85,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -1 +1 @@
|
||||
3.3.2-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -53,12 +53,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -103,8 +103,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [Org.OpenAPITools.Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Org.OpenAPITools.Model.Category](docs/Category.md)
|
||||
- [Org.OpenAPITools.Model.InlineObject](docs/InlineObject.md)
|
||||
- [Org.OpenAPITools.Model.InlineObject1](docs/InlineObject1.md)
|
||||
- [Org.OpenAPITools.Model.Order](docs/Order.md)
|
||||
- [Org.OpenAPITools.Model.Pet](docs/Pet.md)
|
||||
- [Org.OpenAPITools.Model.Tag](docs/Tag.md)
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet pet)
|
||||
> void AddPet (Pet body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -339,7 +339,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet pet)
|
||||
> void UpdatePet (Pet body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -362,12 +362,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(pet);
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -382,7 +382,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -198,7 +198,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order order)
|
||||
> Order PlaceOrder (Order body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -218,12 +218,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new StoreApi();
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -239,7 +239,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -251,7 +251,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/xml, application/json
|
||||
|
||||
[[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)
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User user)
|
||||
> void CreateUser (User body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -38,12 +38,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var user = new User(); // User | Created user object
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(user);
|
||||
apiInstance.CreateUser(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -58,7 +58,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -70,14 +70,14 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -97,12 +97,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -117,7 +117,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -129,14 +129,14 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -156,12 +156,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -176,7 +176,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -188,7 +188,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
@ -433,7 +433,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (string username, User body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -456,12 +456,12 @@ namespace Example
|
||||
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(username, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -477,7 +477,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -489,7 +489,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[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)
|
||||
|
@ -14,9 +14,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet pet);
|
||||
void AddPet (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -45,9 +45,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet pet);
|
||||
void UpdatePet (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -122,13 +122,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet pet)
|
||||
public void AddPet (Pet body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling AddPet");
|
||||
|
||||
|
||||
var path = "/pet";
|
||||
@ -140,7 +140,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(pet); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { "petstore_auth" };
|
||||
@ -309,13 +309,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet pet)
|
||||
public void UpdatePet (Pet body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdatePet");
|
||||
|
||||
|
||||
var path = "/pet";
|
||||
@ -327,7 +327,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(pet); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { "petstore_auth" };
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order order);
|
||||
Order PlaceOrder (Order body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -198,13 +198,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order order)
|
||||
public Order PlaceOrder (Order body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) throw new ApiException(400, "Missing required parameter 'order' when calling PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling PlaceOrder");
|
||||
|
||||
|
||||
var path = "/store/order";
|
||||
@ -216,7 +216,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(order); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { };
|
||||
|
@ -14,21 +14,21 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User user);
|
||||
void CreateUser (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
@ -57,9 +57,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Updated user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User user);
|
||||
void UpdateUser (string username, User body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -118,13 +118,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User user)
|
||||
public void CreateUser (User body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUser");
|
||||
|
||||
|
||||
var path = "/user";
|
||||
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(user); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { };
|
||||
@ -155,13 +155,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithArrayInput");
|
||||
|
||||
|
||||
var path = "/user/createWithArray";
|
||||
@ -173,7 +173,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(user); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { };
|
||||
@ -192,13 +192,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithListInput");
|
||||
|
||||
|
||||
var path = "/user/createWithList";
|
||||
@ -210,7 +210,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(user); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { };
|
||||
@ -378,16 +378,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// Updated user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User user)
|
||||
public void UpdateUser (string username, User body)
|
||||
{
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser");
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdateUser");
|
||||
|
||||
|
||||
var path = "/user/{username}";
|
||||
@ -400,7 +400,7 @@ namespace Org.OpenAPITools.Api
|
||||
var fileParams = new Dictionary<String, FileParameter>();
|
||||
String postBody = null;
|
||||
|
||||
postBody = ApiClient.Serialize(user); // http body (model) parameter
|
||||
postBody = ApiClient.Serialize(body); // http body (model) parameter
|
||||
|
||||
// authentication setting, if any
|
||||
String[] authSettings = new String[] { };
|
||||
|
@ -84,7 +84,7 @@ namespace Org.OpenAPITools.Client
|
||||
private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -249,7 +249,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -1 +1 @@
|
||||
3.3.4-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -71,12 +71,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -138,7 +138,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.AnimalFarm](docs/AnimalFarm.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
@ -169,7 +168,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.User](docs/User.md)
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -30,12 +30,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -51,7 +51,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -80,7 +80,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
|
||||
|
||||
|
||||
@ -101,11 +101,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -121,7 +121,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -260,7 +260,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
|
||||
|
||||
|
||||
@ -281,11 +281,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -300,7 +300,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -319,7 +319,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
|
||||
|
||||
|
||||
@ -339,11 +339,11 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var query = query_example; // string |
|
||||
var user = new User(); // User |
|
||||
var body = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -359,7 +359,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -378,7 +378,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -399,12 +399,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -420,7 +420,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -673,7 +673,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -692,12 +692,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -712,7 +712,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -35,12 +35,12 @@ namespace Example
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -56,7 +56,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet pet)
|
||||
> void AddPet (Pet body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -335,7 +335,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet pet)
|
||||
> void UpdatePet (Pet body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -357,12 +357,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(pet);
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -377,7 +377,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -195,7 +195,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order order)
|
||||
> Order PlaceOrder (Order body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -214,12 +214,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -235,7 +235,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User user)
|
||||
> void CreateUser (User body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -37,12 +37,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new User(); // User | Created user object
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(user);
|
||||
apiInstance.CreateUser(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -57,7 +57,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -76,7 +76,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -95,12 +95,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -115,7 +115,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -134,7 +134,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -153,12 +153,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -173,7 +173,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -426,7 +426,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (string username, User body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -448,12 +448,12 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(username, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -469,7 +469,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
public ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "/another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null);
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null);
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass);
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithQueryParams (string query, User user);
|
||||
void TestBodyWithQueryParams (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user);
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClientModel (ModelClient modelClient);
|
||||
ModelClient TestClientModel (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody);
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -515,11 +515,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -527,9 +527,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -553,13 +553,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -725,24 +725,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
{
|
||||
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
TestBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "/fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -765,13 +765,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -798,11 +798,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithQueryParams (string query, User user)
|
||||
public void TestBodyWithQueryParams (string query, User body)
|
||||
{
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -810,16 +810,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user)
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "/fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -843,13 +843,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -875,11 +875,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClientModel (ModelClient modelClient)
|
||||
public ModelClient TestClientModel (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -887,13 +887,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "/fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -917,13 +917,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1236,24 +1236,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
{
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "/fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1276,13 +1276,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClassname (ModelClient modelClient);
|
||||
ModelClient TestClassname (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClassname (ModelClient modelClient)
|
||||
public ModelClient TestClassname (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "/fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet pet);
|
||||
void AddPet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -138,9 +138,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet pet);
|
||||
void UpdatePet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -342,24 +342,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet pet)
|
||||
public void AddPet (Pet body)
|
||||
{
|
||||
AddPetWithHttpInfo(pet);
|
||||
AddPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -383,13 +383,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -712,24 +712,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet pet)
|
||||
public void UpdatePet (Pet body)
|
||||
{
|
||||
UpdatePetWithHttpInfo(pet);
|
||||
UpdatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -753,13 +753,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order order);
|
||||
Order PlaceOrder (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -417,11 +417,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order order)
|
||||
public Order PlaceOrder (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -429,13 +429,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "/store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -459,13 +459,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User user);
|
||||
void CreateUser (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -179,9 +179,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User user);
|
||||
void UpdateUser (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -191,9 +191,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -309,24 +309,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User user)
|
||||
public void CreateUser (User body)
|
||||
{
|
||||
CreateUserWithHttpInfo(user);
|
||||
CreateUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User user)
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "/user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -348,13 +348,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -380,24 +380,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "/user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -419,13 +419,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -451,24 +451,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithListInputWithHttpInfo(user);
|
||||
CreateUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "/user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -490,13 +490,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -785,11 +785,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User user)
|
||||
public void UpdateUser (string username, User body)
|
||||
{
|
||||
UpdateUserWithHttpInfo(username, user);
|
||||
UpdateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -797,16 +797,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user)
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "/user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -829,13 +829,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -327,7 +327,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Animal
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
[JsonConverter(typeof(JsonSubtypes), "className")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
public partial class Animal : IEquatable<Animal>
|
||||
|
@ -140,11 +140,6 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name="enum_number", EmitDefaultValue=false)]
|
||||
public EnumNumberEnum? EnumNumber { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
@ -157,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum outerEnum = default(OuterEnum))
|
||||
{
|
||||
// to ensure "enumStringRequired" is required (not null)
|
||||
if (enumStringRequired == null)
|
||||
@ -178,6 +173,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum OuterEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -1 +1 @@
|
||||
3.3.4-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -71,12 +71,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -138,7 +138,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.AnimalFarm](docs/AnimalFarm.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
@ -169,7 +168,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.User](docs/User.md)
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -30,12 +30,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -51,7 +51,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -80,7 +80,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
|
||||
|
||||
|
||||
@ -101,11 +101,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -121,7 +121,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -260,7 +260,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
|
||||
|
||||
|
||||
@ -281,11 +281,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -300,7 +300,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -319,7 +319,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
|
||||
|
||||
|
||||
@ -339,11 +339,11 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var query = query_example; // string |
|
||||
var user = new User(); // User |
|
||||
var body = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -359,7 +359,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -378,7 +378,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -399,12 +399,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -420,7 +420,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -673,7 +673,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -692,12 +692,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -712,7 +712,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -35,12 +35,12 @@ namespace Example
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -56,7 +56,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet pet)
|
||||
> void AddPet (Pet body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -335,7 +335,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet pet)
|
||||
> void UpdatePet (Pet body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -357,12 +357,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(pet);
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -377,7 +377,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -195,7 +195,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order order)
|
||||
> Order PlaceOrder (Order body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -214,12 +214,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -235,7 +235,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User user)
|
||||
> void CreateUser (User body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -37,12 +37,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new User(); // User | Created user object
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(user);
|
||||
apiInstance.CreateUser(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -57,7 +57,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -76,7 +76,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -95,12 +95,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -115,7 +115,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -134,7 +134,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -153,12 +153,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -173,7 +173,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -426,7 +426,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (string username, User body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -448,12 +448,12 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(username, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -469,7 +469,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
public ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "/another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null);
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null);
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass);
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithQueryParams (string query, User user);
|
||||
void TestBodyWithQueryParams (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user);
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClientModel (ModelClient modelClient);
|
||||
ModelClient TestClientModel (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody);
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -515,11 +515,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -527,9 +527,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -553,13 +553,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -725,24 +725,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
{
|
||||
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
TestBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "/fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -765,13 +765,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -798,11 +798,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithQueryParams (string query, User user)
|
||||
public void TestBodyWithQueryParams (string query, User body)
|
||||
{
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -810,16 +810,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user)
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "/fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -843,13 +843,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -875,11 +875,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClientModel (ModelClient modelClient)
|
||||
public ModelClient TestClientModel (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -887,13 +887,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "/fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -917,13 +917,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1236,24 +1236,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
{
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "/fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1276,13 +1276,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClassname (ModelClient modelClient);
|
||||
ModelClient TestClassname (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -160,11 +160,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClassname (ModelClient modelClient)
|
||||
public ModelClient TestClassname (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -172,13 +172,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "/fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -202,13 +202,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet pet);
|
||||
void AddPet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -138,9 +138,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet pet);
|
||||
void UpdatePet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -342,24 +342,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet pet)
|
||||
public void AddPet (Pet body)
|
||||
{
|
||||
AddPetWithHttpInfo(pet);
|
||||
AddPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -383,13 +383,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -712,24 +712,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet pet)
|
||||
public void UpdatePet (Pet body)
|
||||
{
|
||||
UpdatePetWithHttpInfo(pet);
|
||||
UpdatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -753,13 +753,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order order);
|
||||
Order PlaceOrder (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -417,11 +417,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order order)
|
||||
public Order PlaceOrder (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -429,13 +429,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "/store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -459,13 +459,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User user);
|
||||
void CreateUser (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -179,9 +179,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User user);
|
||||
void UpdateUser (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -191,9 +191,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
||||
#endregion Synchronous Operations
|
||||
}
|
||||
|
||||
@ -309,24 +309,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User user)
|
||||
public void CreateUser (User body)
|
||||
{
|
||||
CreateUserWithHttpInfo(user);
|
||||
CreateUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User user)
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "/user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -348,13 +348,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -380,24 +380,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "/user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -419,13 +419,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -451,24 +451,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithListInputWithHttpInfo(user);
|
||||
CreateUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "/user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -490,13 +490,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -785,11 +785,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User user)
|
||||
public void UpdateUser (string username, User body)
|
||||
{
|
||||
UpdateUserWithHttpInfo(username, user);
|
||||
UpdateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -797,16 +797,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user)
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "/user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -829,13 +829,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Animal
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
[JsonConverter(typeof(JsonSubtypes), "className")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
public partial class Animal : IEquatable<Animal>, IValidatableObject
|
||||
|
@ -140,11 +140,6 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name="enum_number", EmitDefaultValue=false)]
|
||||
public EnumNumberEnum? EnumNumber { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
@ -157,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum outerEnum = default(OuterEnum))
|
||||
{
|
||||
// to ensure "enumStringRequired" is required (not null)
|
||||
if (enumStringRequired == null)
|
||||
@ -178,6 +173,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum OuterEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -1 +1 @@
|
||||
3.3.4-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -49,12 +49,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -116,7 +116,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.AnimalFarm](docs/AnimalFarm.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
@ -147,7 +146,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.User](docs/User.md)
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -30,12 +30,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -51,7 +51,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -80,7 +80,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
|
||||
|
||||
|
||||
@ -101,11 +101,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -121,7 +121,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -260,7 +260,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
|
||||
|
||||
|
||||
@ -281,11 +281,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -300,7 +300,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -319,7 +319,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
|
||||
|
||||
|
||||
@ -339,11 +339,11 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var query = query_example; // string |
|
||||
var user = new User(); // User |
|
||||
var body = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -359,7 +359,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -378,7 +378,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -399,12 +399,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -420,7 +420,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -673,7 +673,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -692,12 +692,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -712,7 +712,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -35,12 +35,12 @@ namespace Example
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -56,7 +56,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet pet)
|
||||
> void AddPet (Pet body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -335,7 +335,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet pet)
|
||||
> void UpdatePet (Pet body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -357,12 +357,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(pet);
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -377,7 +377,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -195,7 +195,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order order)
|
||||
> Order PlaceOrder (Order body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -214,12 +214,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -235,7 +235,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User user)
|
||||
> void CreateUser (User body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -37,12 +37,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new User(); // User | Created user object
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(user);
|
||||
apiInstance.CreateUser(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -57,7 +57,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -76,7 +76,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -95,12 +95,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -115,7 +115,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -134,7 +134,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -153,12 +153,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -173,7 +173,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -426,7 +426,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (string username, User body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -448,12 +448,12 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(username, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -469,7 +469,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
public ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "./another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -257,11 +257,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -270,13 +270,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "./another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -300,13 +300,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null);
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null);
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass);
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithQueryParams (string query, User user);
|
||||
void TestBodyWithQueryParams (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user);
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClientModel (ModelClient modelClient);
|
||||
ModelClient TestClientModel (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody);
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -360,9 +360,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null);
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -371,9 +371,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -423,9 +423,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass);
|
||||
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -434,9 +434,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -445,9 +445,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user);
|
||||
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -457,9 +457,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -478,9 +478,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -601,9 +601,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody);
|
||||
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -612,9 +612,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -894,11 +894,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -906,9 +906,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "./fake/outer/composite";
|
||||
@ -932,13 +932,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -964,11 +964,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null)
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -977,9 +977,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "./fake/outer/composite";
|
||||
@ -1003,13 +1003,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1317,24 +1317,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
{
|
||||
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
TestBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "./fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1357,13 +1357,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1389,11 +1389,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass)
|
||||
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body)
|
||||
{
|
||||
await TestBodyWithFileSchemaAsyncWithHttpInfo(fileSchemaTestClass);
|
||||
await TestBodyWithFileSchemaAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -1401,13 +1401,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "./fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1430,13 +1430,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1463,11 +1463,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithQueryParams (string query, User user)
|
||||
public void TestBodyWithQueryParams (string query, User body)
|
||||
{
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1475,16 +1475,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user)
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "./fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1508,13 +1508,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1541,11 +1541,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user)
|
||||
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body)
|
||||
{
|
||||
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, user);
|
||||
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body);
|
||||
|
||||
}
|
||||
|
||||
@ -1554,16 +1554,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "./fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1587,13 +1587,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1619,11 +1619,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClientModel (ModelClient modelClient)
|
||||
public ModelClient TestClientModel (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -1631,13 +1631,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "./fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1661,13 +1661,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1693,11 +1693,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -1706,13 +1706,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "./fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1736,13 +1736,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -2345,24 +2345,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
{
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "./fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -2385,13 +2385,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -2417,11 +2417,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody)
|
||||
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param)
|
||||
{
|
||||
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody);
|
||||
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param);
|
||||
|
||||
}
|
||||
|
||||
@ -2429,13 +2429,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "./fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -2458,13 +2458,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClassname (ModelClient modelClient);
|
||||
ModelClient TestClassname (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClassname (ModelClient modelClient)
|
||||
public ModelClient TestClassname (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "./fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
@ -262,11 +262,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -275,13 +275,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "./fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -305,13 +305,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet pet);
|
||||
void AddPet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -138,9 +138,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet pet);
|
||||
void UpdatePet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -236,9 +236,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet pet);
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -247,9 +247,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -343,9 +343,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet pet);
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -354,9 +354,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -547,24 +547,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet pet)
|
||||
public void AddPet (Pet body)
|
||||
{
|
||||
AddPetWithHttpInfo(pet);
|
||||
AddPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "./pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -588,13 +588,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -626,11 +626,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet pet)
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet body)
|
||||
{
|
||||
await AddPetAsyncWithHttpInfo(pet);
|
||||
await AddPetAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -638,13 +638,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "./pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -668,13 +668,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -1292,24 +1292,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet pet)
|
||||
public void UpdatePet (Pet body)
|
||||
{
|
||||
UpdatePetWithHttpInfo(pet);
|
||||
UpdatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "./pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1333,13 +1333,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -1371,11 +1371,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet pet)
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
|
||||
{
|
||||
await UpdatePetAsyncWithHttpInfo(pet);
|
||||
await UpdatePetAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -1383,13 +1383,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "./pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1413,13 +1413,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order order);
|
||||
Order PlaceOrder (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -176,9 +176,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order);
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -187,9 +187,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order);
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -700,11 +700,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order order)
|
||||
public Order PlaceOrder (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -712,13 +712,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "./store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -742,13 +742,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -774,11 +774,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order)
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -787,13 +787,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "./store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -817,13 +817,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User user);
|
||||
void CreateUser (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -179,9 +179,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User user);
|
||||
void UpdateUser (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -191,9 +191,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -203,9 +203,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUserAsync (User user);
|
||||
System.Threading.Tasks.Task CreateUserAsync (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -214,9 +214,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -224,9 +224,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user);
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -235,9 +235,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -245,9 +245,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user);
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -256,9 +256,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -351,9 +351,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User user);
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -363,9 +363,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -481,24 +481,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User user)
|
||||
public void CreateUser (User body)
|
||||
{
|
||||
CreateUserWithHttpInfo(user);
|
||||
CreateUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User user)
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "./user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -520,13 +520,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -552,11 +552,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User user)
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User body)
|
||||
{
|
||||
await CreateUserAsyncWithHttpInfo(user);
|
||||
await CreateUserAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -564,13 +564,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "./user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -592,13 +592,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -624,24 +624,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "./user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -663,13 +663,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -695,11 +695,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user)
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body)
|
||||
{
|
||||
await CreateUsersWithArrayInputAsyncWithHttpInfo(user);
|
||||
await CreateUsersWithArrayInputAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -707,13 +707,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "./user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -735,13 +735,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -767,24 +767,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithListInputWithHttpInfo(user);
|
||||
CreateUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "./user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -806,13 +806,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -838,11 +838,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user)
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body)
|
||||
{
|
||||
await CreateUsersWithListInputAsyncWithHttpInfo(user);
|
||||
await CreateUsersWithListInputAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -850,13 +850,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "./user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -878,13 +878,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1439,11 +1439,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User user)
|
||||
public void UpdateUser (string username, User body)
|
||||
{
|
||||
UpdateUserWithHttpInfo(username, user);
|
||||
UpdateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1451,16 +1451,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user)
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "./user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1483,13 +1483,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1516,11 +1516,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User user)
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body)
|
||||
{
|
||||
await UpdateUserAsyncWithHttpInfo(username, user);
|
||||
await UpdateUserAsyncWithHttpInfo(username, body);
|
||||
|
||||
}
|
||||
|
||||
@ -1529,16 +1529,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "./user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1561,13 +1561,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -323,7 +323,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Animal
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
[JsonConverter(typeof(JsonSubtypes), "className")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
public partial class Animal : IEquatable<Animal>
|
||||
|
@ -138,11 +138,6 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name="enum_number", EmitDefaultValue=false)]
|
||||
public EnumNumberEnum? EnumNumber { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
@ -155,7 +150,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum outerEnum = default(OuterEnum))
|
||||
{
|
||||
// to ensure "enumStringRequired" is required (not null)
|
||||
if (enumStringRequired == null)
|
||||
@ -176,6 +171,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum OuterEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -1 +1 @@
|
||||
3.3.4-SNAPSHOT
|
||||
4.0.0-SNAPSHOT
|
@ -71,12 +71,12 @@ namespace Example
|
||||
{
|
||||
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -138,7 +138,6 @@ Class | Method | HTTP request | Description
|
||||
|
||||
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Model.Animal](docs/Animal.md)
|
||||
- [Model.AnimalFarm](docs/AnimalFarm.md)
|
||||
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
@ -169,7 +168,6 @@ Class | Method | HTTP request | Description
|
||||
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [Model.Return](docs/Return.md)
|
||||
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Model.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [Model.Tag](docs/Tag.md)
|
||||
- [Model.User](docs/User.md)
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testspecialtags"></a>
|
||||
# **Call123TestSpecialTags**
|
||||
> ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
> ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -30,12 +30,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new AnotherFakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test special tags
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient);
|
||||
ModelClient result = apiInstance.Call123TestSpecialTags(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -51,7 +51,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | **int?** | | [optional]
|
||||
**EnumNumber** | **double?** | | [optional]
|
||||
**OuterEnum** | **OuterEnum** | | [optional]
|
||||
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -80,7 +80,7 @@ No authorization required
|
||||
|
||||
<a name="fakeoutercompositeserialize"></a>
|
||||
# **FakeOuterCompositeSerialize**
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
|
||||
|
||||
|
||||
@ -101,11 +101,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||
|
||||
try
|
||||
{
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -121,7 +121,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -260,7 +260,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithfileschema"></a>
|
||||
# **TestBodyWithFileSchema**
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
> void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
|
||||
|
||||
|
||||
@ -281,11 +281,11 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
var body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.TestBodyWithFileSchema(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -300,7 +300,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -319,7 +319,7 @@ No authorization required
|
||||
|
||||
<a name="testbodywithqueryparams"></a>
|
||||
# **TestBodyWithQueryParams**
|
||||
> void TestBodyWithQueryParams (string query, User user)
|
||||
> void TestBodyWithQueryParams (string query, User body)
|
||||
|
||||
|
||||
|
||||
@ -339,11 +339,11 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var query = query_example; // string |
|
||||
var user = new User(); // User |
|
||||
var body = new User(); // User |
|
||||
|
||||
try
|
||||
{
|
||||
apiInstance.TestBodyWithQueryParams(query, user);
|
||||
apiInstance.TestBodyWithQueryParams(query, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -359,7 +359,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **string**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -378,7 +378,7 @@ No authorization required
|
||||
|
||||
<a name="testclientmodel"></a>
|
||||
# **TestClientModel**
|
||||
> ModelClient TestClientModel (ModelClient modelClient)
|
||||
> ModelClient TestClientModel (ModelClient body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -399,12 +399,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test \"client\" model
|
||||
ModelClient result = apiInstance.TestClientModel(modelClient);
|
||||
ModelClient result = apiInstance.TestClientModel(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -420,7 +420,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -673,7 +673,7 @@ No authorization required
|
||||
|
||||
<a name="testinlineadditionalproperties"></a>
|
||||
# **TestInlineAdditionalProperties**
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
> void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -692,12 +692,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new FakeApi();
|
||||
var requestBody = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
var param = new Dictionary<string, string>(); // Dictionary<string, string> | request body
|
||||
|
||||
try
|
||||
{
|
||||
// test inline additionalProperties
|
||||
apiInstance.TestInlineAdditionalProperties(requestBody);
|
||||
apiInstance.TestInlineAdditionalProperties(param);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -712,7 +712,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
**param** | [**Dictionary<string, string>**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testclassname"></a>
|
||||
# **TestClassname**
|
||||
> ModelClient TestClassname (ModelClient modelClient)
|
||||
> ModelClient TestClassname (ModelClient body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -35,12 +35,12 @@ namespace Example
|
||||
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||
|
||||
var apiInstance = new FakeClassnameTags123Api();
|
||||
var modelClient = new ModelClient(); // ModelClient | client model
|
||||
var body = new ModelClient(); // ModelClient | client model
|
||||
|
||||
try
|
||||
{
|
||||
// To test class name in snake case
|
||||
ModelClient result = apiInstance.TestClassname(modelClient);
|
||||
ModelClient result = apiInstance.TestClassname(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -56,7 +56,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addpet"></a>
|
||||
# **AddPet**
|
||||
> void AddPet (Pet pet)
|
||||
> void AddPet (Pet body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -39,12 +39,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Add a new pet to the store
|
||||
apiInstance.AddPet(pet);
|
||||
apiInstance.AddPet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -335,7 +335,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatepet"></a>
|
||||
# **UpdatePet**
|
||||
> void UpdatePet (Pet pet)
|
||||
> void UpdatePet (Pet body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -357,12 +357,12 @@ namespace Example
|
||||
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
|
||||
|
||||
var apiInstance = new PetApi();
|
||||
var pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
var body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
|
||||
try
|
||||
{
|
||||
// Update an existing pet
|
||||
apiInstance.UpdatePet(pet);
|
||||
apiInstance.UpdatePet(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -377,7 +377,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -195,7 +195,7 @@ No authorization required
|
||||
|
||||
<a name="placeorder"></a>
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder (Order order)
|
||||
> Order PlaceOrder (Order body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -214,12 +214,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new StoreApi();
|
||||
var order = new Order(); // Order | order placed for purchasing the pet
|
||||
var body = new Order(); // Order | order placed for purchasing the pet
|
||||
|
||||
try
|
||||
{
|
||||
// Place an order for a pet
|
||||
Order result = apiInstance.PlaceOrder(order);
|
||||
Order result = apiInstance.PlaceOrder(body);
|
||||
Debug.WriteLine(result);
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -235,7 +235,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="createuser"></a>
|
||||
# **CreateUser**
|
||||
> void CreateUser (User user)
|
||||
> void CreateUser (User body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -37,12 +37,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new User(); // User | Created user object
|
||||
var body = new User(); // User | Created user object
|
||||
|
||||
try
|
||||
{
|
||||
// Create user
|
||||
apiInstance.CreateUser(user);
|
||||
apiInstance.CreateUser(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -57,7 +57,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -76,7 +76,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswitharrayinput"></a>
|
||||
# **CreateUsersWithArrayInput**
|
||||
> void CreateUsersWithArrayInput (List<User> user)
|
||||
> void CreateUsersWithArrayInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -95,12 +95,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithArrayInput(user);
|
||||
apiInstance.CreateUsersWithArrayInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -115,7 +115,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -134,7 +134,7 @@ No authorization required
|
||||
|
||||
<a name="createuserswithlistinput"></a>
|
||||
# **CreateUsersWithListInput**
|
||||
> void CreateUsersWithListInput (List<User> user)
|
||||
> void CreateUsersWithListInput (List<User> body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -153,12 +153,12 @@ namespace Example
|
||||
public void main()
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var user = new List<User>(); // List<User> | List of user object
|
||||
var body = new List<User>(); // List<User> | List of user object
|
||||
|
||||
try
|
||||
{
|
||||
// Creates list of users with given input array
|
||||
apiInstance.CreateUsersWithListInput(user);
|
||||
apiInstance.CreateUsersWithListInput(body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -173,7 +173,7 @@ namespace Example
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -426,7 +426,7 @@ No authorization required
|
||||
|
||||
<a name="updateuser"></a>
|
||||
# **UpdateUser**
|
||||
> void UpdateUser (string username, User user)
|
||||
> void UpdateUser (string username, User body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -448,12 +448,12 @@ namespace Example
|
||||
{
|
||||
var apiInstance = new UserApi();
|
||||
var username = username_example; // string | name that need to be deleted
|
||||
var user = new User(); // User | Updated user object
|
||||
var body = new User(); // User | Updated user object
|
||||
|
||||
try
|
||||
{
|
||||
// Updated user
|
||||
apiInstance.UpdateUser(username, user);
|
||||
apiInstance.UpdateUser(username, body);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@ -469,7 +469,7 @@ namespace Example
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient Call123TestSpecialTags (ModelClient modelClient);
|
||||
ModelClient Call123TestSpecialTags (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test special tags
|
||||
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags and operation ID starting with number
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient Call123TestSpecialTags (ModelClient modelClient)
|
||||
public ModelClient Call123TestSpecialTags (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = Call123TestSpecialTagsWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "/another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -257,11 +257,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await Call123TestSpecialTagsAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -270,13 +270,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test special tags To test special tags and operation ID starting with number
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> Call123TestSpecialTagsAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
|
||||
|
||||
var localVarPath = "/another-fake/dummy";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -300,13 +300,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null);
|
||||
OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null);
|
||||
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass);
|
||||
void TestBodyWithFileSchema (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
void TestBodyWithQueryParams (string query, User user);
|
||||
void TestBodyWithQueryParams (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user);
|
||||
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClientModel (ModelClient modelClient);
|
||||
ModelClient TestClientModel (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody);
|
||||
void TestInlineAdditionalProperties (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -360,9 +360,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null);
|
||||
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -371,9 +371,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null);
|
||||
System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -423,9 +423,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass);
|
||||
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -434,9 +434,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body);
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
@ -445,9 +445,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user);
|
||||
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
@ -457,9 +457,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body);
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
/// </summary>
|
||||
@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test \"client\" model
|
||||
@ -478,9 +478,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body);
|
||||
/// <summary>
|
||||
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
/// </summary>
|
||||
@ -601,9 +601,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody);
|
||||
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param);
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
@ -612,9 +612,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param);
|
||||
/// <summary>
|
||||
/// test json serialization of form data
|
||||
/// </summary>
|
||||
@ -894,11 +894,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>OuterComposite</returns>
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null)
|
||||
public OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -906,9 +906,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>ApiResponse of OuterComposite</returns>
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -932,13 +932,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -964,11 +964,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of OuterComposite</returns>
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null)
|
||||
public async System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null)
|
||||
{
|
||||
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(outerComposite);
|
||||
ApiResponse<OuterComposite> localVarResponse = await FakeOuterCompositeSerializeAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -977,9 +977,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// Test serialization of object with outer number type
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="outerComposite">Input composite as post body (optional)</param>
|
||||
/// <param name="body">Input composite as post body (optional)</param>
|
||||
/// <returns>Task of ApiResponse (OuterComposite)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite outerComposite = null)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<OuterComposite>> FakeOuterCompositeSerializeAsyncWithHttpInfo (OuterComposite body = null)
|
||||
{
|
||||
|
||||
var localVarPath = "/fake/outer/composite";
|
||||
@ -1003,13 +1003,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (outerComposite != null && outerComposite.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(outerComposite); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = outerComposite; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1317,24 +1317,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass)
|
||||
public void TestBodyWithFileSchema (FileSchemaTestClass body)
|
||||
{
|
||||
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
TestBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "/fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1357,13 +1357,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1389,11 +1389,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass)
|
||||
public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body)
|
||||
{
|
||||
await TestBodyWithFileSchemaAsyncWithHttpInfo(fileSchemaTestClass);
|
||||
await TestBodyWithFileSchemaAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -1401,13 +1401,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// For this test, the body for this request much reference a schema named `File`.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="fileSchemaTestClass"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass fileSchemaTestClass)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithFileSchemaAsyncWithHttpInfo (FileSchemaTestClass body)
|
||||
{
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null)
|
||||
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
|
||||
|
||||
var localVarPath = "/fake/body-with-file-schema";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1430,13 +1430,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (fileSchemaTestClass != null && fileSchemaTestClass.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(fileSchemaTestClass); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = fileSchemaTestClass; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1463,11 +1463,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns></returns>
|
||||
public void TestBodyWithQueryParams (string query, User user)
|
||||
public void TestBodyWithQueryParams (string query, User body)
|
||||
{
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
TestBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1475,16 +1475,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user)
|
||||
public ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "/fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1508,13 +1508,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1541,11 +1541,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user)
|
||||
public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body)
|
||||
{
|
||||
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, user);
|
||||
await TestBodyWithQueryParamsAsyncWithHttpInfo(query, body);
|
||||
|
||||
}
|
||||
|
||||
@ -1554,16 +1554,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="query"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestBodyWithQueryParamsAsyncWithHttpInfo (string query, User body)
|
||||
{
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null)
|
||||
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
|
||||
|
||||
var localVarPath = "/fake/body-with-query-params";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1587,13 +1587,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1619,11 +1619,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClientModel (ModelClient modelClient)
|
||||
public ModelClient TestClientModel (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClientModelWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -1631,13 +1631,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "/fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1661,13 +1661,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1693,11 +1693,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClientModelAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -1706,13 +1706,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test \"client\" model To test \"client\" model
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClientModelAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
|
||||
|
||||
var localVarPath = "/fake";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1736,13 +1736,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -2345,24 +2345,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns></returns>
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody)
|
||||
public void TestInlineAdditionalProperties (Dictionary<string, string> param)
|
||||
{
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
TestInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "/fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -2385,13 +2385,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -2417,11 +2417,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody)
|
||||
public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param)
|
||||
{
|
||||
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(requestBody);
|
||||
await TestInlineAdditionalPropertiesAsyncWithHttpInfo(param);
|
||||
|
||||
}
|
||||
|
||||
@ -2429,13 +2429,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// test inline additionalProperties
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="requestBody">request body</param>
|
||||
/// <param name="param">request body</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> requestBody)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> TestInlineAdditionalPropertiesAsyncWithHttpInfo (Dictionary<string, string> param)
|
||||
{
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null)
|
||||
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null)
|
||||
throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
|
||||
|
||||
var localVarPath = "/fake/inline-additionalProperties";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -2458,13 +2458,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (requestBody != null && requestBody.GetType() != typeof(byte[]))
|
||||
if (param != null && param.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(requestBody); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(param); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = requestBody; // byte array
|
||||
localVarPostBody = param; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
ModelClient TestClassname (ModelClient modelClient);
|
||||
ModelClient TestClassname (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient);
|
||||
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body);
|
||||
|
||||
/// <summary>
|
||||
/// To test class name in snake case
|
||||
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient);
|
||||
System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -183,11 +183,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ModelClient</returns>
|
||||
public ModelClient TestClassname (ModelClient modelClient)
|
||||
public ModelClient TestClassname (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = TestClassnameWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -195,13 +195,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>ApiResponse of ModelClient</returns>
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient)
|
||||
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "/fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
@ -262,11 +262,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ModelClient</returns>
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body)
|
||||
{
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(modelClient);
|
||||
ApiResponse<ModelClient> localVarResponse = await TestClassnameAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -275,13 +275,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// To test class name in snake case To test class name in snake case
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="modelClient">client model</param>
|
||||
/// <param name="body">client model</param>
|
||||
/// <returns>Task of ApiResponse (ModelClient)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient modelClient)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<ModelClient>> TestClassnameAsyncWithHttpInfo (ModelClient body)
|
||||
{
|
||||
// verify the required parameter 'modelClient' is set
|
||||
if (modelClient == null)
|
||||
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
|
||||
|
||||
var localVarPath = "/fake_classname_test";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -305,13 +305,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (modelClient != null && modelClient.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(modelClient); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = modelClient; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (api_key_query) required
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void AddPet (Pet pet);
|
||||
void AddPet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> AddPetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -138,9 +138,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
void UpdatePet (Pet pet);
|
||||
void UpdatePet (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet);
|
||||
ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -236,9 +236,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet pet);
|
||||
System.Threading.Tasks.Task AddPetAsync (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
@ -247,9 +247,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Deletes a pet
|
||||
/// </summary>
|
||||
@ -343,9 +343,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet pet);
|
||||
System.Threading.Tasks.Task UpdatePetAsync (Pet body);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
@ -354,9 +354,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body);
|
||||
/// <summary>
|
||||
/// Updates a pet in the store with form data
|
||||
/// </summary>
|
||||
@ -547,24 +547,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void AddPet (Pet pet)
|
||||
public void AddPet (Pet body)
|
||||
{
|
||||
AddPetWithHttpInfo(pet);
|
||||
AddPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> AddPetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -588,13 +588,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -626,11 +626,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet pet)
|
||||
public async System.Threading.Tasks.Task AddPetAsync (Pet body)
|
||||
{
|
||||
await AddPetAsyncWithHttpInfo(pet);
|
||||
await AddPetAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -638,13 +638,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Add a new pet to the store
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -668,13 +668,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -1292,24 +1292,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns></returns>
|
||||
public void UpdatePet (Pet pet)
|
||||
public void UpdatePet (Pet body)
|
||||
{
|
||||
UpdatePetWithHttpInfo(pet);
|
||||
UpdatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet)
|
||||
public ApiResponse<Object> UpdatePetWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1333,13 +1333,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
@ -1371,11 +1371,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet pet)
|
||||
public async System.Threading.Tasks.Task UpdatePetAsync (Pet body)
|
||||
{
|
||||
await UpdatePetAsyncWithHttpInfo(pet);
|
||||
await UpdatePetAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -1383,13 +1383,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Update an existing pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="pet">Pet object that needs to be added to the store</param>
|
||||
/// <param name="body">Pet object that needs to be added to the store</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body)
|
||||
{
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null)
|
||||
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
|
||||
|
||||
var localVarPath = "/pet";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1413,13 +1413,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (pet != null && pet.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(pet); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = pet; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
// authentication (petstore_auth) required
|
||||
|
@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
Order PlaceOrder (Order order);
|
||||
Order PlaceOrder (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order);
|
||||
ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -176,9 +176,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order);
|
||||
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body);
|
||||
|
||||
/// <summary>
|
||||
/// Place an order for a pet
|
||||
@ -187,9 +187,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order);
|
||||
System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -700,11 +700,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Order</returns>
|
||||
public Order PlaceOrder (Order order)
|
||||
public Order PlaceOrder (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = PlaceOrderWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
|
||||
@ -712,13 +712,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>ApiResponse of Order</returns>
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order)
|
||||
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "/store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -742,13 +742,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -774,11 +774,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of Order</returns>
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order)
|
||||
public async System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body)
|
||||
{
|
||||
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(order);
|
||||
ApiResponse<Order> localVarResponse = await PlaceOrderAsyncWithHttpInfo(body);
|
||||
return localVarResponse.Data;
|
||||
|
||||
}
|
||||
@ -787,13 +787,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Place an order for a pet
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="order">order placed for purchasing the pet</param>
|
||||
/// <param name="body">order placed for purchasing the pet</param>
|
||||
/// <returns>Task of ApiResponse (Order)</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order order)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Order>> PlaceOrderAsyncWithHttpInfo (Order body)
|
||||
{
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null)
|
||||
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
|
||||
|
||||
var localVarPath = "/store/order";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -817,13 +817,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (order != null && order.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = order; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUser (User user);
|
||||
void CreateUser (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User user);
|
||||
ApiResponse<Object> CreateUserWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithArrayInput (List<User> user);
|
||||
void CreateUsersWithArrayInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
void CreateUsersWithListInput (List<User> user);
|
||||
void CreateUsersWithListInput (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user);
|
||||
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -179,9 +179,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
void UpdateUser (string username, User user);
|
||||
void UpdateUser (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -191,9 +191,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user);
|
||||
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
|
||||
#endregion Synchronous Operations
|
||||
#region Asynchronous Operations
|
||||
/// <summary>
|
||||
@ -203,9 +203,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUserAsync (User user);
|
||||
System.Threading.Tasks.Task CreateUserAsync (User body);
|
||||
|
||||
/// <summary>
|
||||
/// Create user
|
||||
@ -214,9 +214,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// This can only be done by the logged in user.
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -224,9 +224,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user);
|
||||
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -235,9 +235,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
@ -245,9 +245,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user);
|
||||
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body);
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
@ -256,9 +256,9 @@ namespace Org.OpenAPITools.Api
|
||||
///
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body);
|
||||
/// <summary>
|
||||
/// Delete user
|
||||
/// </summary>
|
||||
@ -351,9 +351,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User user);
|
||||
System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
|
||||
|
||||
/// <summary>
|
||||
/// Updated user
|
||||
@ -363,9 +363,9 @@ namespace Org.OpenAPITools.Api
|
||||
/// </remarks>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user);
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body);
|
||||
#endregion Asynchronous Operations
|
||||
}
|
||||
|
||||
@ -481,24 +481,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUser (User user)
|
||||
public void CreateUser (User body)
|
||||
{
|
||||
CreateUserWithHttpInfo(user);
|
||||
CreateUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User user)
|
||||
public ApiResponse<Object> CreateUserWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "/user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -520,13 +520,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -552,11 +552,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User user)
|
||||
public async System.Threading.Tasks.Task CreateUserAsync (User body)
|
||||
{
|
||||
await CreateUserAsyncWithHttpInfo(user);
|
||||
await CreateUserAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -564,13 +564,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Create user This can only be done by the logged in user.
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">Created user object</param>
|
||||
/// <param name="body">Created user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
|
||||
|
||||
var localVarPath = "/user";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -592,13 +592,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -624,24 +624,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithArrayInput (List<User> user)
|
||||
public void CreateUsersWithArrayInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithArrayInputWithHttpInfo(user);
|
||||
CreateUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "/user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -663,13 +663,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -695,11 +695,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user)
|
||||
public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body)
|
||||
{
|
||||
await CreateUsersWithArrayInputAsyncWithHttpInfo(user);
|
||||
await CreateUsersWithArrayInputAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -707,13 +707,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithArrayInputAsyncWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
|
||||
|
||||
var localVarPath = "/user/createWithArray";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -735,13 +735,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -767,24 +767,24 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns></returns>
|
||||
public void CreateUsersWithListInput (List<User> user)
|
||||
public void CreateUsersWithListInput (List<User> body)
|
||||
{
|
||||
CreateUsersWithListInputWithHttpInfo(user);
|
||||
CreateUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user)
|
||||
public ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "/user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -806,13 +806,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -838,11 +838,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user)
|
||||
public async System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body)
|
||||
{
|
||||
await CreateUsersWithListInputAsyncWithHttpInfo(user);
|
||||
await CreateUsersWithListInputAsyncWithHttpInfo(body);
|
||||
|
||||
}
|
||||
|
||||
@ -850,13 +850,13 @@ namespace Org.OpenAPITools.Api
|
||||
/// Creates list of users with given input array
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="user">List of user object</param>
|
||||
/// <param name="body">List of user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> CreateUsersWithListInputAsyncWithHttpInfo (List<User> body)
|
||||
{
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
|
||||
|
||||
var localVarPath = "/user/createWithList";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -878,13 +878,13 @@ namespace Org.OpenAPITools.Api
|
||||
if (localVarHttpHeaderAccept != null)
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1439,11 +1439,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns></returns>
|
||||
public void UpdateUser (string username, User user)
|
||||
public void UpdateUser (string username, User body)
|
||||
{
|
||||
UpdateUserWithHttpInfo(username, user);
|
||||
UpdateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1451,16 +1451,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user)
|
||||
public ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "/user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1483,13 +1483,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
@ -1516,11 +1516,11 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User user)
|
||||
public async System.Threading.Tasks.Task UpdateUserAsync (string username, User body)
|
||||
{
|
||||
await UpdateUserAsyncWithHttpInfo(username, user);
|
||||
await UpdateUserAsyncWithHttpInfo(username, body);
|
||||
|
||||
}
|
||||
|
||||
@ -1529,16 +1529,16 @@ namespace Org.OpenAPITools.Api
|
||||
/// </summary>
|
||||
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="username">name that need to be deleted</param>
|
||||
/// <param name="user">Updated user object</param>
|
||||
/// <param name="body">Updated user object</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User user)
|
||||
public async System.Threading.Tasks.Task<ApiResponse<Object>> UpdateUserAsyncWithHttpInfo (string username, User body)
|
||||
{
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null)
|
||||
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null)
|
||||
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null)
|
||||
throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
|
||||
|
||||
var localVarPath = "/user/{username}";
|
||||
var localVarPathParams = new Dictionary<String, String>();
|
||||
@ -1561,13 +1561,13 @@ namespace Org.OpenAPITools.Api
|
||||
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
|
||||
|
||||
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter
|
||||
if (user != null && user.GetType() != typeof(byte[]))
|
||||
if (body != null && body.GetType() != typeof(byte[]))
|
||||
{
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(user); // http body (model) parameter
|
||||
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
|
||||
}
|
||||
else
|
||||
{
|
||||
localVarPostBody = user; // byte array
|
||||
localVarPostBody = body; // byte array
|
||||
}
|
||||
|
||||
|
||||
|
@ -328,7 +328,7 @@ namespace Org.OpenAPITools.Client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the the date time format used when serializing in the ApiClient
|
||||
/// Gets or sets the date time format used when serializing in the ApiClient
|
||||
/// By default, it's set to ISO 8601 - "o", for others see:
|
||||
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
|
||||
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
|
||||
|
@ -31,7 +31,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Animal
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
[JsonConverter(typeof(JsonSubtypes), "className")]
|
||||
[JsonConverter(typeof(JsonSubtypes), "ClassName")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Dog), "Dog")]
|
||||
[JsonSubtypes.KnownSubType(typeof(Cat), "Cat")]
|
||||
[ImplementPropertyChanged]
|
||||
|
@ -143,11 +143,6 @@ namespace Org.OpenAPITools.Model
|
||||
[DataMember(Name="enum_number", EmitDefaultValue=false)]
|
||||
public EnumNumberEnum? EnumNumber { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum? OuterEnum { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="EnumTest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
@ -160,7 +155,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="enumInteger">enumInteger.</param>
|
||||
/// <param name="enumNumber">enumNumber.</param>
|
||||
/// <param name="outerEnum">outerEnum.</param>
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum? outerEnum = default(OuterEnum?))
|
||||
public EnumTest(EnumStringEnum? enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum? enumInteger = default(EnumIntegerEnum?), EnumNumberEnum? enumNumber = default(EnumNumberEnum?), OuterEnum outerEnum = default(OuterEnum))
|
||||
{
|
||||
// to ensure "enumStringRequired" is required (not null)
|
||||
if (enumStringRequired == null)
|
||||
@ -181,6 +176,11 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OuterEnum
|
||||
/// </summary>
|
||||
[DataMember(Name="outerEnum", EmitDefaultValue=false)]
|
||||
public OuterEnum OuterEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
|
@ -19,7 +19,7 @@ class MyApp extends StatelessWidget {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
// This is the theme of your application.
|
||||
// This is theme of your application.
|
||||
//
|
||||
// Try running your application with "flutter run". You'll see the
|
||||
// application has a blue toolbar. Then, without quitting the app, try
|
||||
|
@ -10,7 +10,7 @@ class MyApp extends StatelessWidget {
|
||||
return new MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: new ThemeData(
|
||||
// This is the theme of your application.
|
||||
// This is theme of your application.
|
||||
//
|
||||
// Try running your application with "flutter run". You'll see the
|
||||
// application has a blue toolbar. Then, without quitting the app, try
|
||||
|
@ -103,7 +103,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -111,7 +111,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -108,7 +108,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -92,7 +92,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -92,7 +92,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -114,7 +114,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -136,7 +136,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -101,7 +101,7 @@ module Petstore
|
||||
super(attributes)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
@ -106,7 +106,7 @@ module Petstore
|
||||
return nil unless attributes.is_a?(Hash)
|
||||
self.class.openapi_types.each_pair do |key, type|
|
||||
if type =~ /\AArray<(.*)>/i
|
||||
# check to ensure the input is an array given that the the attribute
|
||||
# check to ensure the input is an array given that the attribute
|
||||
# is documented as an array but the input is not
|
||||
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
||||
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user