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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user