forked from loafle/openapi-generator-original
Swagger parser update: 2.0.8-OpenAPITools.org-1 (#1721)
* Update Swagger-Parser Version * Update samples * surpress javadoc warning * fix TS tests * Set version to 2.0.8-OpenAPITools.org-1
This commit is contained in:
parent
43abd61144
commit
a7dfc650b6
@ -204,7 +204,7 @@
|
||||
<version>${swagger-core-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger.parser.v3</groupId>
|
||||
<groupId>${swagger-parser-groupid}</groupId>
|
||||
<artifactId>swagger-parser</artifactId>
|
||||
<version>${swagger-parser-version}</version>
|
||||
</dependency>
|
||||
|
3
pom.xml
3
pom.xml
@ -1341,7 +1341,8 @@
|
||||
<properties>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<swagger-parser-version>2.0.7</swagger-parser-version>
|
||||
<swagger-parser-groupid>org.openapitools.swagger.parser</swagger-parser-groupid>
|
||||
<swagger-parser-version>2.0.8-OpenAPITools.org-1</swagger-parser-version>
|
||||
<swagger-core-version>2.0.6</swagger-core-version>
|
||||
<scala-version>2.11.1</scala-version>
|
||||
<felix-version>3.3.1</felix-version>
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,6 +42,7 @@ paths:
|
||||
summary: Add a new pet to the store
|
||||
tags:
|
||||
- pet
|
||||
x-codegen-request-body-name: body
|
||||
put:
|
||||
operationId: updatePet
|
||||
requestBody:
|
||||
@ -71,6 +72,7 @@ paths:
|
||||
summary: Update an existing pet
|
||||
tags:
|
||||
- pet
|
||||
x-codegen-request-body-name: body
|
||||
/pet/findByStatus:
|
||||
get:
|
||||
description: Multiple status values can be provided with comma separated strings
|
||||
@ -327,6 +329,7 @@ paths:
|
||||
summary: Place an order for a pet
|
||||
tags:
|
||||
- store
|
||||
x-codegen-request-body-name: body
|
||||
/store/order/{order_id}:
|
||||
delete:
|
||||
description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
@ -398,6 +401,7 @@ paths:
|
||||
summary: Create user
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithArray:
|
||||
post:
|
||||
operationId: createUsersWithArrayInput
|
||||
@ -417,6 +421,7 @@ paths:
|
||||
summary: Creates list of users with given input array
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithList:
|
||||
post:
|
||||
operationId: createUsersWithListInput
|
||||
@ -436,6 +441,7 @@ paths:
|
||||
summary: Creates list of users with given input array
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/login:
|
||||
get:
|
||||
operationId: loginUser
|
||||
@ -565,6 +571,7 @@ paths:
|
||||
summary: Updated user
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/fake_classname_test:
|
||||
patch:
|
||||
description: To test class name in snake case
|
||||
@ -588,6 +595,7 @@ paths:
|
||||
summary: To test class name in snake case
|
||||
tags:
|
||||
- fake_classname_tags 123#$%^
|
||||
x-codegen-request-body-name: body
|
||||
/fake:
|
||||
delete:
|
||||
description: Fake endpoint to test group parameters (optional)
|
||||
@ -756,6 +764,7 @@ paths:
|
||||
summary: To test "client" model
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
post:
|
||||
description: |
|
||||
Fake endpoint for testing various parameters
|
||||
@ -874,6 +883,7 @@ paths:
|
||||
description: Output number
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/string:
|
||||
post:
|
||||
description: Test serialization of outer string types
|
||||
@ -894,6 +904,7 @@ paths:
|
||||
description: Output string
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/boolean:
|
||||
post:
|
||||
description: Test serialization of outer boolean types
|
||||
@ -914,6 +925,7 @@ paths:
|
||||
description: Output boolean
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/composite:
|
||||
post:
|
||||
description: Test serialization of object with outer number type
|
||||
@ -934,6 +946,7 @@ paths:
|
||||
description: Output composite
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/jsonFormData:
|
||||
get:
|
||||
operationId: testJsonFormData
|
||||
@ -978,6 +991,7 @@ paths:
|
||||
summary: test inline additionalProperties
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: param
|
||||
/fake/body-with-query-params:
|
||||
put:
|
||||
operationId: testBodyWithQueryParams
|
||||
@ -999,6 +1013,7 @@ paths:
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/another-fake/dummy:
|
||||
patch:
|
||||
description: To test special tags and operation ID starting with number
|
||||
@ -1020,6 +1035,7 @@ paths:
|
||||
summary: To test special tags
|
||||
tags:
|
||||
- $another-fake?
|
||||
x-codegen-request-body-name: body
|
||||
/fake/body-with-file-schema:
|
||||
put:
|
||||
description: For this test, the body for this request much reference a schema named `File`.
|
||||
@ -1036,6 +1052,7 @@ paths:
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/{petId}/uploadImageWithRequiredFile:
|
||||
post:
|
||||
operationId: uploadFileWithRequiredFile
|
||||
|
@ -28,10 +28,10 @@ type AnotherFakeApiService service
|
||||
AnotherFakeApiService To test special tags
|
||||
To test special tags and operation ID starting with number
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
@return Client
|
||||
*/
|
||||
func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, client Client) (Client, *http.Response, error) {
|
||||
func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, body Client) (Client, *http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Patch")
|
||||
localVarPostBody interface{}
|
||||
@ -66,7 +66,7 @@ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, clie
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &client
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
|
@ -129,12 +129,12 @@ FakeApiService
|
||||
Test serialization of object with outer number type
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param optional nil or *FakeOuterCompositeSerializeOpts - Optional Parameters:
|
||||
* @param "OuterComposite" (optional.Interface of OuterComposite) - Input composite as post body
|
||||
* @param "Body" (optional.Interface of OuterComposite) - Input composite as post body
|
||||
@return OuterComposite
|
||||
*/
|
||||
|
||||
type FakeOuterCompositeSerializeOpts struct {
|
||||
OuterComposite optional.Interface
|
||||
Body optional.Interface
|
||||
}
|
||||
|
||||
func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error) {
|
||||
@ -172,12 +172,12 @@ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localV
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
if localVarOptionals != nil && localVarOptionals.OuterComposite.IsSet() {
|
||||
localVarOptionalOuterComposite, localVarOptionalOuterCompositeok := localVarOptionals.OuterComposite.Value().(OuterComposite)
|
||||
if !localVarOptionalOuterCompositeok {
|
||||
return localVarReturnValue, nil, reportError("outerComposite should be OuterComposite")
|
||||
if localVarOptionals != nil && localVarOptionals.Body.IsSet() {
|
||||
localVarOptionalBody, localVarOptionalBodyok := localVarOptionals.Body.Value().(OuterComposite)
|
||||
if !localVarOptionalBodyok {
|
||||
return localVarReturnValue, nil, reportError("body should be OuterComposite")
|
||||
}
|
||||
localVarPostBody = &localVarOptionalOuterComposite
|
||||
localVarPostBody = &localVarOptionalBody
|
||||
}
|
||||
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
@ -426,9 +426,9 @@ func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarO
|
||||
FakeApiService
|
||||
For this test, the body for this request much reference a schema named `File`.
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param fileSchemaTestClass
|
||||
* @param body
|
||||
*/
|
||||
func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaTestClass FileSchemaTestClass) (*http.Response, error) {
|
||||
func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Put")
|
||||
localVarPostBody interface{}
|
||||
@ -462,7 +462,7 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &fileSchemaTestClass
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -494,9 +494,9 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT
|
||||
FakeApiService
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param query
|
||||
* @param user
|
||||
* @param body
|
||||
*/
|
||||
func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, user User) (*http.Response, error) {
|
||||
func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Put")
|
||||
localVarPostBody interface{}
|
||||
@ -531,7 +531,7 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &user
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -563,10 +563,10 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri
|
||||
FakeApiService To test \"client\" model
|
||||
To test \"client\" model
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
@return Client
|
||||
*/
|
||||
func (a *FakeApiService) TestClientModel(ctx context.Context, client Client) (Client, *http.Response, error) {
|
||||
func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Patch")
|
||||
localVarPostBody interface{}
|
||||
@ -601,7 +601,7 @@ func (a *FakeApiService) TestClientModel(ctx context.Context, client Client) (Cl
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &client
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
@ -1004,9 +1004,9 @@ func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredString
|
||||
/*
|
||||
FakeApiService test inline additionalProperties
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param requestBody request body
|
||||
* @param param request body
|
||||
*/
|
||||
func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, requestBody map[string]string) (*http.Response, error) {
|
||||
func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -1040,7 +1040,7 @@ func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, req
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &requestBody
|
||||
localVarPostBody = ¶m
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -28,10 +28,10 @@ type FakeClassnameTags123ApiService service
|
||||
FakeClassnameTags123ApiService To test class name in snake case
|
||||
To test class name in snake case
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
@return Client
|
||||
*/
|
||||
func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, client Client) (Client, *http.Response, error) {
|
||||
func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, body Client) (Client, *http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Patch")
|
||||
localVarPostBody interface{}
|
||||
@ -66,7 +66,7 @@ func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, clie
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &client
|
||||
localVarPostBody = &body
|
||||
if ctx != nil {
|
||||
// API Key Authentication
|
||||
if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
|
||||
|
@ -30,9 +30,9 @@ type PetApiService service
|
||||
/*
|
||||
PetApiService Add a new pet to the store
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
*/
|
||||
func (a *PetApiService) AddPet(ctx context.Context, pet Pet) (*http.Response, error) {
|
||||
func (a *PetApiService) AddPet(ctx context.Context, body Pet) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -66,7 +66,7 @@ func (a *PetApiService) AddPet(ctx context.Context, pet Pet) (*http.Response, er
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &pet
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -450,9 +450,9 @@ func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http
|
||||
/*
|
||||
PetApiService Update an existing pet
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
*/
|
||||
func (a *PetApiService) UpdatePet(ctx context.Context, pet Pet) (*http.Response, error) {
|
||||
func (a *PetApiService) UpdatePet(ctx context.Context, body Pet) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Put")
|
||||
localVarPostBody interface{}
|
||||
@ -486,7 +486,7 @@ func (a *PetApiService) UpdatePet(ctx context.Context, pet Pet) (*http.Response,
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &pet
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -288,10 +288,10 @@ func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Orde
|
||||
/*
|
||||
StoreApiService Place an order for a pet
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param order order placed for purchasing the pet
|
||||
* @param body order placed for purchasing the pet
|
||||
@return Order
|
||||
*/
|
||||
func (a *StoreApiService) PlaceOrder(ctx context.Context, order Order) (Order, *http.Response, error) {
|
||||
func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -326,7 +326,7 @@ func (a *StoreApiService) PlaceOrder(ctx context.Context, order Order) (Order, *
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &order
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, err
|
||||
|
@ -29,9 +29,9 @@ type UserApiService service
|
||||
UserApiService Create user
|
||||
This can only be done by the logged in user.
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param user Created user object
|
||||
* @param body Created user object
|
||||
*/
|
||||
func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Response, error) {
|
||||
func (a *UserApiService) CreateUser(ctx context.Context, body User) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -65,7 +65,7 @@ func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Respo
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &user
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -96,9 +96,9 @@ func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Respo
|
||||
/*
|
||||
UserApiService Creates list of users with given input array
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
*/
|
||||
func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []User) (*http.Response, error) {
|
||||
func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -132,7 +132,7 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []U
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &user
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -163,9 +163,9 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []U
|
||||
/*
|
||||
UserApiService Creates list of users with given input array
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
*/
|
||||
func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, user []User) (*http.Response, error) {
|
||||
func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Post")
|
||||
localVarPostBody interface{}
|
||||
@ -199,7 +199,7 @@ func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, user []Us
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &user
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -539,9 +539,9 @@ UserApiService Updated user
|
||||
This can only be done by the logged in user.
|
||||
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
* @param username name that need to be deleted
|
||||
* @param user Updated user object
|
||||
* @param body Updated user object
|
||||
*/
|
||||
func (a *UserApiService) UpdateUser(ctx context.Context, username string, user User) (*http.Response, error) {
|
||||
func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error) {
|
||||
var (
|
||||
localVarHttpMethod = strings.ToUpper("Put")
|
||||
localVarPostBody interface{}
|
||||
@ -576,7 +576,7 @@ func (a *UserApiService) UpdateUser(ctx context.Context, username string, user U
|
||||
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
|
||||
}
|
||||
// body params
|
||||
localVarPostBody = &user
|
||||
localVarPostBody = &body
|
||||
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -8,7 +8,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **Call123TestSpecialTags**
|
||||
> Client Call123TestSpecialTags(ctx, client)
|
||||
> Client Call123TestSpecialTags(ctx, body)
|
||||
To test special tags
|
||||
|
||||
To test special tags and operation ID starting with number
|
||||
@ -18,7 +18,7 @@ To test special tags and operation ID starting with number
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -71,7 +71,7 @@ Optional parameters are passed through a pointer to a FakeOuterCompositeSerializ
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**outerComposite** | [**optional.Interface of OuterComposite**](OuterComposite.md)| Input composite as post body |
|
||||
**body** | [**optional.Interface of OuterComposite**](OuterComposite.md)| Input composite as post body |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -159,7 +159,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **TestBodyWithFileSchema**
|
||||
> TestBodyWithFileSchema(ctx, fileSchemaTestClass)
|
||||
> TestBodyWithFileSchema(ctx, body)
|
||||
|
||||
|
||||
For this test, the body for this request much reference a schema named `File`.
|
||||
@ -169,7 +169,7 @@ For this test, the body for this request much reference a schema named `File`.
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -187,7 +187,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **TestBodyWithQueryParams**
|
||||
> TestBodyWithQueryParams(ctx, query, user)
|
||||
> TestBodyWithQueryParams(ctx, query, body)
|
||||
|
||||
|
||||
### Required Parameters
|
||||
@ -196,7 +196,7 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**query** | **string**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -214,7 +214,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **TestClientModel**
|
||||
> Client TestClientModel(ctx, client)
|
||||
> Client TestClientModel(ctx, body)
|
||||
To test \"client\" model
|
||||
|
||||
To test \"client\" model
|
||||
@ -224,7 +224,7 @@ To test \"client\" model
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -379,7 +379,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **TestInlineAdditionalProperties**
|
||||
> TestInlineAdditionalProperties(ctx, requestBody)
|
||||
> TestInlineAdditionalProperties(ctx, param)
|
||||
test inline additionalProperties
|
||||
|
||||
### Required Parameters
|
||||
@ -387,7 +387,7 @@ test inline additionalProperties
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**requestBody** | [**map[string]string**](string.md)| request body |
|
||||
**param** | [**map[string]string**](string.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -8,7 +8,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **TestClassname**
|
||||
> Client TestClassname(ctx, client)
|
||||
> Client TestClassname(ctx, body)
|
||||
To test class name in snake case
|
||||
|
||||
To test class name in snake case
|
||||
@ -18,7 +18,7 @@ To test class name in snake case
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -16,7 +16,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **AddPet**
|
||||
> AddPet(ctx, pet)
|
||||
> AddPet(ctx, body)
|
||||
Add a new pet to the store
|
||||
|
||||
### Required Parameters
|
||||
@ -24,7 +24,7 @@ Add a new pet to the store
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**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
|
||||
|
||||
@ -161,7 +161,7 @@ Name | Type | Description | Notes
|
||||
[[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)
|
||||
|
||||
# **UpdatePet**
|
||||
> UpdatePet(ctx, pet)
|
||||
> UpdatePet(ctx, body)
|
||||
Update an existing pet
|
||||
|
||||
### Required Parameters
|
||||
@ -169,7 +169,7 @@ Update an existing pet
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**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
|
||||
|
||||
|
@ -91,7 +91,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **PlaceOrder**
|
||||
> Order PlaceOrder(ctx, order)
|
||||
> Order PlaceOrder(ctx, body)
|
||||
Place an order for a pet
|
||||
|
||||
### Required Parameters
|
||||
@ -99,7 +99,7 @@ Place an order for a pet
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -15,7 +15,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **CreateUser**
|
||||
> CreateUser(ctx, user)
|
||||
> CreateUser(ctx, body)
|
||||
Create user
|
||||
|
||||
This can only be done by the logged in user.
|
||||
@ -25,7 +25,7 @@ This can only be done by the logged in user.
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -43,7 +43,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **CreateUsersWithArrayInput**
|
||||
> CreateUsersWithArrayInput(ctx, user)
|
||||
> CreateUsersWithArrayInput(ctx, body)
|
||||
Creates list of users with given input array
|
||||
|
||||
### Required Parameters
|
||||
@ -51,7 +51,7 @@ Creates list of users with given input array
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**user** | [**[]User**](array.md)| List of user object |
|
||||
**body** | [**[]User**](array.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -69,7 +69,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **CreateUsersWithListInput**
|
||||
> CreateUsersWithListInput(ctx, user)
|
||||
> CreateUsersWithListInput(ctx, body)
|
||||
Creates list of users with given input array
|
||||
|
||||
### Required Parameters
|
||||
@ -77,7 +77,7 @@ Creates list of users with given input array
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**user** | [**[]User**](array.md)| List of user object |
|
||||
**body** | [**[]User**](array.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -198,7 +198,7 @@ No authorization required
|
||||
[[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)
|
||||
|
||||
# **UpdateUser**
|
||||
> UpdateUser(ctx, username, user)
|
||||
> UpdateUser(ctx, username, body)
|
||||
Updated user
|
||||
|
||||
This can only be done by the logged in user.
|
||||
@ -209,7 +209,7 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
|
||||
**username** | **string**| name that need to be deleted |
|
||||
**user** | [**User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -67,15 +67,15 @@ import qualified Prelude as P
|
||||
--
|
||||
op123testSpecialTags
|
||||
:: (Consumes Op123testSpecialTags MimeJSON, MimeRender MimeJSON Client)
|
||||
=> Client -- ^ "client" - client model
|
||||
=> Client -- ^ "body" - client model
|
||||
-> OpenAPIPetstoreRequest Op123testSpecialTags MimeJSON Client MimeJSON
|
||||
op123testSpecialTags client =
|
||||
op123testSpecialTags body =
|
||||
_mkRequest "PATCH" ["/another-fake/dummy"]
|
||||
`setBodyParam` client
|
||||
`setBodyParam` body
|
||||
|
||||
data Op123testSpecialTags
|
||||
|
||||
-- | /Body Param/ "Client" - client model
|
||||
-- | /Body Param/ "body" - client model
|
||||
instance HasBodyParam Op123testSpecialTags Client
|
||||
|
||||
-- | @application/json@
|
||||
|
@ -96,7 +96,7 @@ fakeOuterCompositeSerialize _ _ =
|
||||
|
||||
data FakeOuterCompositeSerialize
|
||||
|
||||
-- | /Body Param/ "OuterComposite" - Input composite as post body
|
||||
-- | /Body Param/ "body" - Input composite as post body
|
||||
instance HasBodyParam FakeOuterCompositeSerialize OuterComposite
|
||||
|
||||
-- | @*/*@
|
||||
@ -120,7 +120,7 @@ fakeOuterNumberSerialize _ _ =
|
||||
data FakeOuterNumberSerialize
|
||||
|
||||
-- | /Body Param/ "body" - Input number as post body
|
||||
instance HasBodyParam FakeOuterNumberSerialize Body
|
||||
instance HasBodyParam FakeOuterNumberSerialize BodyDouble
|
||||
|
||||
-- | @*/*@
|
||||
instance MimeType mtype => Produces FakeOuterNumberSerialize mtype
|
||||
@ -157,11 +157,11 @@ instance MimeType mtype => Produces FakeOuterStringSerialize mtype
|
||||
--
|
||||
testBodyWithFileSchema
|
||||
:: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass)
|
||||
=> FileSchemaTestClass -- ^ "fileSchemaTestClass"
|
||||
=> FileSchemaTestClass -- ^ "body"
|
||||
-> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent
|
||||
testBodyWithFileSchema fileSchemaTestClass =
|
||||
testBodyWithFileSchema body =
|
||||
_mkRequest "PUT" ["/fake/body-with-file-schema"]
|
||||
`setBodyParam` fileSchemaTestClass
|
||||
`setBodyParam` body
|
||||
|
||||
data TestBodyWithFileSchema
|
||||
instance HasBodyParam TestBodyWithFileSchema FileSchemaTestClass
|
||||
@ -178,12 +178,12 @@ instance Produces TestBodyWithFileSchema MimeNoContent
|
||||
--
|
||||
testBodyWithQueryParams
|
||||
:: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User)
|
||||
=> User -- ^ "user"
|
||||
=> User -- ^ "body"
|
||||
-> Query -- ^ "query"
|
||||
-> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent
|
||||
testBodyWithQueryParams user (Query query) =
|
||||
testBodyWithQueryParams body (Query query) =
|
||||
_mkRequest "PUT" ["/fake/body-with-query-params"]
|
||||
`setBodyParam` user
|
||||
`setBodyParam` body
|
||||
`setQuery` toQuery ("query", Just query)
|
||||
|
||||
data TestBodyWithQueryParams
|
||||
@ -205,15 +205,15 @@ instance Produces TestBodyWithQueryParams MimeNoContent
|
||||
--
|
||||
testClientModel
|
||||
:: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client)
|
||||
=> Client -- ^ "client" - client model
|
||||
=> Client -- ^ "body" - client model
|
||||
-> OpenAPIPetstoreRequest TestClientModel MimeJSON Client MimeJSON
|
||||
testClientModel client =
|
||||
testClientModel body =
|
||||
_mkRequest "PATCH" ["/fake"]
|
||||
`setBodyParam` client
|
||||
`setBodyParam` body
|
||||
|
||||
data TestClientModel
|
||||
|
||||
-- | /Body Param/ "Client" - client model
|
||||
-- | /Body Param/ "body" - client model
|
||||
instance HasBodyParam TestClientModel Client
|
||||
|
||||
-- | @application/json@
|
||||
@ -414,17 +414,17 @@ instance Produces TestGroupParameters MimeNoContent
|
||||
-- test inline additionalProperties
|
||||
--
|
||||
testInlineAdditionalProperties
|
||||
:: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON RequestBody)
|
||||
=> RequestBody -- ^ "requestBody" - request body
|
||||
:: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON ParamMapMapStringText)
|
||||
=> ParamMapMapStringText -- ^ "param" - request body
|
||||
-> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent
|
||||
testInlineAdditionalProperties requestBody =
|
||||
testInlineAdditionalProperties param =
|
||||
_mkRequest "POST" ["/fake/inline-additionalProperties"]
|
||||
`setBodyParam` requestBody
|
||||
`setBodyParam` param
|
||||
|
||||
data TestInlineAdditionalProperties
|
||||
|
||||
-- | /Body Param/ "request_body" - request body
|
||||
instance HasBodyParam TestInlineAdditionalProperties RequestBody
|
||||
-- | /Body Param/ "param" - request body
|
||||
instance HasBodyParam TestInlineAdditionalProperties ParamMapMapStringText
|
||||
|
||||
-- | @application/json@
|
||||
instance Consumes TestInlineAdditionalProperties MimeJSON
|
||||
|
@ -69,16 +69,16 @@ import qualified Prelude as P
|
||||
--
|
||||
testClassname
|
||||
:: (Consumes TestClassname MimeJSON, MimeRender MimeJSON Client)
|
||||
=> Client -- ^ "client" - client model
|
||||
=> Client -- ^ "body" - client model
|
||||
-> OpenAPIPetstoreRequest TestClassname MimeJSON Client MimeJSON
|
||||
testClassname client =
|
||||
testClassname body =
|
||||
_mkRequest "PATCH" ["/fake_classname_test"]
|
||||
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyApiKeyQuery)
|
||||
`setBodyParam` client
|
||||
`setBodyParam` body
|
||||
|
||||
data TestClassname
|
||||
|
||||
-- | /Body Param/ "Client" - client model
|
||||
-- | /Body Param/ "body" - client model
|
||||
instance HasBodyParam TestClassname Client
|
||||
|
||||
-- | @application/json@
|
||||
|
@ -68,16 +68,16 @@ import qualified Prelude as P
|
||||
addPet
|
||||
:: (Consumes AddPet contentType, MimeRender contentType Pet)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> Pet -- ^ "pet" - Pet object that needs to be added to the store
|
||||
-> Pet -- ^ "body" - Pet object that needs to be added to the store
|
||||
-> OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent
|
||||
addPet _ pet =
|
||||
addPet _ body =
|
||||
_mkRequest "POST" ["/pet"]
|
||||
`_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth)
|
||||
`setBodyParam` pet
|
||||
`setBodyParam` body
|
||||
|
||||
data AddPet
|
||||
|
||||
-- | /Body Param/ "Pet" - Pet object that needs to be added to the store
|
||||
-- | /Body Param/ "body" - Pet object that needs to be added to the store
|
||||
instance HasBodyParam AddPet Pet
|
||||
|
||||
-- | @application/xml@
|
||||
@ -204,16 +204,16 @@ instance Produces GetPetById MimeJSON
|
||||
updatePet
|
||||
:: (Consumes UpdatePet contentType, MimeRender contentType Pet)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> Pet -- ^ "pet" - Pet object that needs to be added to the store
|
||||
-> Pet -- ^ "body" - Pet object that needs to be added to the store
|
||||
-> OpenAPIPetstoreRequest UpdatePet contentType NoContent MimeNoContent
|
||||
updatePet _ pet =
|
||||
updatePet _ body =
|
||||
_mkRequest "PUT" ["/pet"]
|
||||
`_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth)
|
||||
`setBodyParam` pet
|
||||
`setBodyParam` body
|
||||
|
||||
data UpdatePet
|
||||
|
||||
-- | /Body Param/ "Pet" - Pet object that needs to be added to the store
|
||||
-- | /Body Param/ "body" - Pet object that needs to be added to the store
|
||||
instance HasBodyParam UpdatePet Pet
|
||||
|
||||
-- | @application/xml@
|
||||
|
@ -131,15 +131,15 @@ placeOrder
|
||||
:: (Consumes PlaceOrder contentType, MimeRender contentType Order)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> Accept accept -- ^ request accept ('MimeType')
|
||||
-> Order -- ^ "order" - order placed for purchasing the pet
|
||||
-> Order -- ^ "body" - order placed for purchasing the pet
|
||||
-> OpenAPIPetstoreRequest PlaceOrder contentType Order accept
|
||||
placeOrder _ _ order =
|
||||
placeOrder _ _ body =
|
||||
_mkRequest "POST" ["/store/order"]
|
||||
`setBodyParam` order
|
||||
`setBodyParam` body
|
||||
|
||||
data PlaceOrder
|
||||
|
||||
-- | /Body Param/ "Order" - order placed for purchasing the pet
|
||||
-- | /Body Param/ "body" - order placed for purchasing the pet
|
||||
instance HasBodyParam PlaceOrder Order
|
||||
|
||||
-- | @application/xml@
|
||||
|
@ -68,15 +68,15 @@ import qualified Prelude as P
|
||||
createUser
|
||||
:: (Consumes CreateUser contentType, MimeRender contentType User)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> User -- ^ "user" - Created user object
|
||||
-> User -- ^ "body" - Created user object
|
||||
-> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent
|
||||
createUser _ user =
|
||||
createUser _ body =
|
||||
_mkRequest "POST" ["/user"]
|
||||
`setBodyParam` user
|
||||
`setBodyParam` body
|
||||
|
||||
data CreateUser
|
||||
|
||||
-- | /Body Param/ "User" - Created user object
|
||||
-- | /Body Param/ "body" - Created user object
|
||||
instance HasBodyParam CreateUser User
|
||||
|
||||
instance Produces CreateUser MimeNoContent
|
||||
@ -89,18 +89,18 @@ instance Produces CreateUser MimeNoContent
|
||||
-- Creates list of users with given input array
|
||||
--
|
||||
createUsersWithArrayInput
|
||||
:: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType User2)
|
||||
:: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> User2 -- ^ "user" - List of user object
|
||||
-> Body -- ^ "body" - List of user object
|
||||
-> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent
|
||||
createUsersWithArrayInput _ user =
|
||||
createUsersWithArrayInput _ body =
|
||||
_mkRequest "POST" ["/user/createWithArray"]
|
||||
`setBodyParam` user
|
||||
`setBodyParam` body
|
||||
|
||||
data CreateUsersWithArrayInput
|
||||
|
||||
-- | /Body Param/ "User" - List of user object
|
||||
instance HasBodyParam CreateUsersWithArrayInput User2
|
||||
-- | /Body Param/ "body" - List of user object
|
||||
instance HasBodyParam CreateUsersWithArrayInput Body
|
||||
|
||||
instance Produces CreateUsersWithArrayInput MimeNoContent
|
||||
|
||||
@ -112,18 +112,18 @@ instance Produces CreateUsersWithArrayInput MimeNoContent
|
||||
-- Creates list of users with given input array
|
||||
--
|
||||
createUsersWithListInput
|
||||
:: (Consumes CreateUsersWithListInput contentType, MimeRender contentType User2)
|
||||
:: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> User2 -- ^ "user" - List of user object
|
||||
-> Body -- ^ "body" - List of user object
|
||||
-> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent
|
||||
createUsersWithListInput _ user =
|
||||
createUsersWithListInput _ body =
|
||||
_mkRequest "POST" ["/user/createWithList"]
|
||||
`setBodyParam` user
|
||||
`setBodyParam` body
|
||||
|
||||
data CreateUsersWithListInput
|
||||
|
||||
-- | /Body Param/ "User" - List of user object
|
||||
instance HasBodyParam CreateUsersWithListInput User2
|
||||
-- | /Body Param/ "body" - List of user object
|
||||
instance HasBodyParam CreateUsersWithListInput Body
|
||||
|
||||
instance Produces CreateUsersWithListInput MimeNoContent
|
||||
|
||||
@ -219,16 +219,16 @@ instance Produces LogoutUser MimeNoContent
|
||||
updateUser
|
||||
:: (Consumes UpdateUser contentType, MimeRender contentType User)
|
||||
=> ContentType contentType -- ^ request content-type ('MimeType')
|
||||
-> User -- ^ "user" - Updated user object
|
||||
-> User -- ^ "body" - Updated user object
|
||||
-> Username -- ^ "username" - name that need to be deleted
|
||||
-> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent
|
||||
updateUser _ user (Username username) =
|
||||
updateUser _ body (Username username) =
|
||||
_mkRequest "PUT" ["/user/",toPath username]
|
||||
`setBodyParam` user
|
||||
`setBodyParam` body
|
||||
|
||||
data UpdateUser
|
||||
|
||||
-- | /Body Param/ "User" - Updated user object
|
||||
-- | /Body Param/ "body" - Updated user object
|
||||
instance HasBodyParam UpdateUser User
|
||||
|
||||
instance Produces UpdateUser MimeNoContent
|
||||
|
@ -73,11 +73,14 @@ newtype AdditionalMetadata = AdditionalMetadata { unAdditionalMetadata :: Text }
|
||||
newtype ApiKey = ApiKey { unApiKey :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** Body
|
||||
newtype Body = Body { unBody :: Double } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
newtype Body = Body { unBody :: [User] } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** BodyBool
|
||||
newtype BodyBool = BodyBool { unBodyBool :: Bool } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** BodyDouble
|
||||
newtype BodyDouble = BodyDouble { unBodyDouble :: Double } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** BodyText
|
||||
newtype BodyText = BodyText { unBodyText :: Text } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
@ -162,6 +165,9 @@ newtype ParamFloat = ParamFloat { unParamFloat :: Float } deriving (P.Eq, P.Show
|
||||
-- ** ParamInteger
|
||||
newtype ParamInteger = ParamInteger { unParamInteger :: Int } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** ParamMapMapStringText
|
||||
newtype ParamMapMapStringText = ParamMapMapStringText { unParamMapMapStringText :: (Map.Map String Text) } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** ParamString
|
||||
newtype ParamString = ParamString { unParamString :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -177,9 +183,6 @@ newtype PetId = PetId { unPetId :: Integer } deriving (P.Eq, P.Show)
|
||||
-- ** Query
|
||||
newtype Query = Query { unQuery :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** RequestBody
|
||||
newtype RequestBody = RequestBody { unRequestBody :: (Map.Map String Text) } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** RequiredBooleanGroup
|
||||
newtype RequiredBooleanGroup = RequiredBooleanGroup { unRequiredBooleanGroup :: Bool } deriving (P.Eq, P.Show)
|
||||
|
||||
@ -204,9 +207,6 @@ newtype StringGroup = StringGroup { unStringGroup :: Int } deriving (P.Eq, P.Sho
|
||||
-- ** Tags
|
||||
newtype Tags = Tags { unTags :: [Text] } deriving (P.Eq, P.Show)
|
||||
|
||||
-- ** User2
|
||||
newtype User2 = User2 { unUser2 :: [User] } deriving (P.Eq, P.Show, A.ToJSON)
|
||||
|
||||
-- ** Username
|
||||
newtype Username = Username { unUsername :: Text } deriving (P.Eq, P.Show)
|
||||
|
||||
|
@ -42,6 +42,7 @@ paths:
|
||||
summary: Add a new pet to the store
|
||||
tags:
|
||||
- pet
|
||||
x-codegen-request-body-name: body
|
||||
put:
|
||||
operationId: updatePet
|
||||
requestBody:
|
||||
@ -71,6 +72,7 @@ paths:
|
||||
summary: Update an existing pet
|
||||
tags:
|
||||
- pet
|
||||
x-codegen-request-body-name: body
|
||||
/pet/findByStatus:
|
||||
get:
|
||||
description: Multiple status values can be provided with comma separated strings
|
||||
@ -327,6 +329,7 @@ paths:
|
||||
summary: Place an order for a pet
|
||||
tags:
|
||||
- store
|
||||
x-codegen-request-body-name: body
|
||||
/store/order/{order_id}:
|
||||
delete:
|
||||
description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
@ -398,6 +401,7 @@ paths:
|
||||
summary: Create user
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithArray:
|
||||
post:
|
||||
operationId: createUsersWithArrayInput
|
||||
@ -417,6 +421,7 @@ paths:
|
||||
summary: Creates list of users with given input array
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/createWithList:
|
||||
post:
|
||||
operationId: createUsersWithListInput
|
||||
@ -436,6 +441,7 @@ paths:
|
||||
summary: Creates list of users with given input array
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/user/login:
|
||||
get:
|
||||
operationId: loginUser
|
||||
@ -565,6 +571,7 @@ paths:
|
||||
summary: Updated user
|
||||
tags:
|
||||
- user
|
||||
x-codegen-request-body-name: body
|
||||
/fake_classname_test:
|
||||
patch:
|
||||
description: To test class name in snake case
|
||||
@ -588,6 +595,7 @@ paths:
|
||||
summary: To test class name in snake case
|
||||
tags:
|
||||
- fake_classname_tags 123#$%^
|
||||
x-codegen-request-body-name: body
|
||||
/fake:
|
||||
delete:
|
||||
description: Fake endpoint to test group parameters (optional)
|
||||
@ -756,6 +764,7 @@ paths:
|
||||
summary: To test "client" model
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
post:
|
||||
description: |
|
||||
Fake endpoint for testing various parameters
|
||||
@ -874,6 +883,7 @@ paths:
|
||||
description: Output number
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/string:
|
||||
post:
|
||||
description: Test serialization of outer string types
|
||||
@ -894,6 +904,7 @@ paths:
|
||||
description: Output string
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/boolean:
|
||||
post:
|
||||
description: Test serialization of outer boolean types
|
||||
@ -914,6 +925,7 @@ paths:
|
||||
description: Output boolean
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/outer/composite:
|
||||
post:
|
||||
description: Test serialization of object with outer number type
|
||||
@ -934,6 +946,7 @@ paths:
|
||||
description: Output composite
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/jsonFormData:
|
||||
get:
|
||||
operationId: testJsonFormData
|
||||
@ -978,6 +991,7 @@ paths:
|
||||
summary: test inline additionalProperties
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: param
|
||||
/fake/body-with-query-params:
|
||||
put:
|
||||
operationId: testBodyWithQueryParams
|
||||
@ -999,6 +1013,7 @@ paths:
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/another-fake/dummy:
|
||||
patch:
|
||||
description: To test special tags and operation ID starting with number
|
||||
@ -1020,6 +1035,7 @@ paths:
|
||||
summary: To test special tags
|
||||
tags:
|
||||
- $another-fake?
|
||||
x-codegen-request-body-name: body
|
||||
/fake/body-with-file-schema:
|
||||
put:
|
||||
description: For this test, the body for this request much reference a schema named `File`.
|
||||
@ -1036,6 +1052,7 @@ paths:
|
||||
description: Success
|
||||
tags:
|
||||
- fake
|
||||
x-codegen-request-body-name: body
|
||||
/fake/{petId}/uploadImageWithRequiredFile:
|
||||
post:
|
||||
operationId: uploadFileWithRequiredFile
|
||||
|
@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /another-fake/dummy")
|
||||
@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client call123testSpecialTags(Client client);
|
||||
Client call123testSpecialTags(Client body);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
*/
|
||||
@RequestLine("POST /fake/outer/composite")
|
||||
@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: */*",
|
||||
"Accept: */*",
|
||||
})
|
||||
OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite);
|
||||
OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -77,27 +77,27 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/body-with-file-schema")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
|
||||
void testBodyWithFileSchema(FileSchemaTestClass body);
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/body-with-query-params?query={query}")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithQueryParams(@Param("query") String query, User user);
|
||||
void testBodyWithQueryParams(@Param("query") String query, User body);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -107,7 +107,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
* is convenient for services with optional query parameters, especially when
|
||||
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
|
||||
* building up this map in a fluent style.
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @param queryParams Map of query parameters as name-value pairs
|
||||
* <p>The following elements may be specified in the query map:</p>
|
||||
* <ul>
|
||||
@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
|
||||
/**
|
||||
* A convenience class for generating query parameters for the
|
||||
@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /fake")
|
||||
@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client testClientModel(Client client);
|
||||
Client testClientModel(Client body);
|
||||
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
*/
|
||||
@RequestLine("POST /fake/inline-additionalProperties")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testInlineAdditionalProperties(Map<String, String> requestBody);
|
||||
void testInlineAdditionalProperties(Map<String, String> param);
|
||||
|
||||
/**
|
||||
* test json serialization of form data
|
||||
|
@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /fake_classname_test")
|
||||
@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client testClassname(Client client);
|
||||
Client testClassname(Client body);
|
||||
}
|
||||
|
@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
*/
|
||||
@RequestLine("POST /pet")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void addPet(Pet pet);
|
||||
void addPet(Pet body);
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
*/
|
||||
@RequestLine("PUT /pet")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void updatePet(Pet pet);
|
||||
void updatePet(Pet body);
|
||||
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
|
@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
*/
|
||||
@RequestLine("POST /store/order")
|
||||
@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Order placeOrder(Order order);
|
||||
Order placeOrder(Order body);
|
||||
}
|
||||
|
@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUser(User user);
|
||||
void createUser(User body);
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user/createWithArray")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUsersWithArrayInput(List<User> user);
|
||||
void createUsersWithArrayInput(List<User> body);
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user/createWithList")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUsersWithListInput(List<User> user);
|
||||
void createUsersWithListInput(List<User> body);
|
||||
|
||||
/**
|
||||
* Delete user
|
||||
@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
*/
|
||||
@RequestLine("PUT /user/{username}")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void updateUser(@Param("username") String username, User user);
|
||||
void updateUser(@Param("username") String username, User body);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /another-fake/dummy")
|
||||
@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client call123testSpecialTags(Client client);
|
||||
Client call123testSpecialTags(Client body);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
*/
|
||||
@RequestLine("POST /fake/outer/composite")
|
||||
@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: */*",
|
||||
"Accept: */*",
|
||||
})
|
||||
OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite);
|
||||
OuterComposite fakeOuterCompositeSerialize(OuterComposite body);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -77,27 +77,27 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/body-with-file-schema")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass);
|
||||
void testBodyWithFileSchema(FileSchemaTestClass body);
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
*/
|
||||
@RequestLine("PUT /fake/body-with-query-params?query={query}")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithQueryParams(@Param("query") String query, User user);
|
||||
void testBodyWithQueryParams(@Param("query") String query, User body);
|
||||
|
||||
/**
|
||||
*
|
||||
@ -107,7 +107,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
* is convenient for services with optional query parameters, especially when
|
||||
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
|
||||
* building up this map in a fluent style.
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @param queryParams Map of query parameters as name-value pairs
|
||||
* <p>The following elements may be specified in the query map:</p>
|
||||
* <ul>
|
||||
@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testBodyWithQueryParams(User user, @QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
void testBodyWithQueryParams(User body, @QueryMap(encoded=true) Map<String, Object> queryParams);
|
||||
|
||||
/**
|
||||
* A convenience class for generating query parameters for the
|
||||
@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /fake")
|
||||
@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client testClientModel(Client client);
|
||||
Client testClientModel(Client body);
|
||||
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api {
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
*/
|
||||
@RequestLine("POST /fake/inline-additionalProperties")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testInlineAdditionalProperties(Map<String, String> requestBody);
|
||||
void testInlineAdditionalProperties(Map<String, String> param);
|
||||
|
||||
/**
|
||||
* test json serialization of form data
|
||||
|
@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
*/
|
||||
@RequestLine("PATCH /fake_classname_test")
|
||||
@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Client testClassname(Client client);
|
||||
Client testClassname(Client body);
|
||||
}
|
||||
|
@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
*/
|
||||
@RequestLine("POST /pet")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void addPet(Pet pet);
|
||||
void addPet(Pet body);
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
*/
|
||||
@RequestLine("PUT /pet")
|
||||
@Headers({
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void updatePet(Pet pet);
|
||||
void updatePet(Pet body);
|
||||
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
|
@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
*/
|
||||
@RequestLine("POST /store/order")
|
||||
@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Order placeOrder(Order order);
|
||||
Order placeOrder(Order body);
|
||||
}
|
||||
|
@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUser(User user);
|
||||
void createUser(User body);
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user/createWithArray")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUsersWithArrayInput(List<User> user);
|
||||
void createUsersWithArrayInput(List<User> body);
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
*/
|
||||
@RequestLine("POST /user/createWithList")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void createUsersWithListInput(List<User> user);
|
||||
void createUsersWithListInput(List<User> body);
|
||||
|
||||
/**
|
||||
* Delete user
|
||||
@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
*/
|
||||
@RequestLine("PUT /user/{username}")
|
||||
@Headers({
|
||||
"Content-Type: */*",
|
||||
"Accept: application/json",
|
||||
})
|
||||
void updateUser(@Param("username") String username, User user);
|
||||
void updateUser(@Param("username") String username, User body);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testSpecialTags"></a>
|
||||
# **call123testSpecialTags**
|
||||
> Client call123testSpecialTags(client)
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
|
||||
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -65,7 +65,7 @@ No authorization required
|
||||
|
||||
<a name="fakeOuterCompositeSerialize"></a>
|
||||
# **fakeOuterCompositeSerialize**
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
|
||||
|
||||
|
||||
@ -79,9 +79,9 @@ Test serialization of object with outer number type
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
try {
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||
@ -93,7 +93,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithFileSchema"></a>
|
||||
# **testBodyWithFileSchema**
|
||||
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||
> testBodyWithFileSchema(body)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
try {
|
||||
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.testBodyWithFileSchema(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||
e.printStackTrace();
|
||||
@ -227,7 +227,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithQueryParams"></a>
|
||||
# **testBodyWithQueryParams**
|
||||
> testBodyWithQueryParams(query, user)
|
||||
> testBodyWithQueryParams(query, body)
|
||||
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ No authorization required
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String query = "query_example"; // String |
|
||||
User user = new User(); // User |
|
||||
User body = new User(); // User |
|
||||
try {
|
||||
apiInstance.testBodyWithQueryParams(query, user);
|
||||
apiInstance.testBodyWithQueryParams(query, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||
e.printStackTrace();
|
||||
@ -271,7 +271,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **String**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -288,7 +288,7 @@ No authorization required
|
||||
|
||||
<a name="testClientModel"></a>
|
||||
# **testClientModel**
|
||||
> Client testClientModel(client)
|
||||
> Client testClientModel(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -302,9 +302,9 @@ To test \"client\" model
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClientModel(client);
|
||||
Client result = apiInstance.testClientModel(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||
@ -316,7 +316,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -524,7 +524,7 @@ No authorization required
|
||||
|
||||
<a name="testInlineAdditionalProperties"></a>
|
||||
# **testInlineAdditionalProperties**
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
> testInlineAdditionalProperties(param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -536,9 +536,9 @@ test inline additionalProperties
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
try {
|
||||
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||
apiInstance.testInlineAdditionalProperties(param);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||
e.printStackTrace();
|
||||
@ -549,7 +549,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Map<String, String>**](String.md)| request body |
|
||||
**param** | [**Map<String, String>**](String.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testClassname"></a>
|
||||
# **testClassname**
|
||||
> Client testClassname(client)
|
||||
> Client testClassname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
|
||||
//api_key_query.setApiKeyPrefix("Token");
|
||||
|
||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClassname(client);
|
||||
Client result = apiInstance.testClassname(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||
@ -47,7 +47,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addPet"></a>
|
||||
# **addPet**
|
||||
> addPet(pet)
|
||||
> addPet(body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.addPet(pet);
|
||||
apiInstance.addPet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
e.printStackTrace();
|
||||
@ -50,7 +50,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -280,7 +280,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatePet"></a>
|
||||
# **updatePet**
|
||||
> updatePet(pet)
|
||||
> updatePet(body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.updatePet(pet);
|
||||
apiInstance.updatePet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
e.printStackTrace();
|
||||
@ -313,7 +313,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
|
@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="placeOrder"></a>
|
||||
# **placeOrder**
|
||||
> Order placeOrder(order)
|
||||
> Order placeOrder(body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -164,9 +164,9 @@ Place an order for a pet
|
||||
|
||||
|
||||
StoreApi apiInstance = new StoreApi();
|
||||
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
||||
try {
|
||||
Order result = apiInstance.placeOrder(order);
|
||||
Order result = apiInstance.placeOrder(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||
@ -178,7 +178,7 @@ try {
|
||||
|
||||
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**
|
||||
> createUser(user)
|
||||
> createUser(body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -30,9 +30,9 @@ This can only be done by the logged in user.
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
User user = new User(); // User | Created user object
|
||||
User body = new User(); // User | Created user object
|
||||
try {
|
||||
apiInstance.createUser(user);
|
||||
apiInstance.createUser(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUser");
|
||||
e.printStackTrace();
|
||||
@ -43,7 +43,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -60,7 +60,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithArrayInput"></a>
|
||||
# **createUsersWithArrayInput**
|
||||
> createUsersWithArrayInput(user)
|
||||
> createUsersWithArrayInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -72,9 +72,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithArrayInput(user);
|
||||
apiInstance.createUsersWithArrayInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||
e.printStackTrace();
|
||||
@ -85,7 +85,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -102,7 +102,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithListInput"></a>
|
||||
# **createUsersWithListInput**
|
||||
> createUsersWithListInput(user)
|
||||
> createUsersWithListInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -114,9 +114,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithListInput(user);
|
||||
apiInstance.createUsersWithListInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||
e.printStackTrace();
|
||||
@ -127,7 +127,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -314,7 +314,7 @@ No authorization required
|
||||
|
||||
<a name="updateUser"></a>
|
||||
# **updateUser**
|
||||
> updateUser(username, user)
|
||||
> updateUser(username, body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -329,9 +329,9 @@ This can only be done by the logged in user.
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | name that need to be deleted
|
||||
User user = new User(); // User | Updated user object
|
||||
User body = new User(); // User | Updated user object
|
||||
try {
|
||||
apiInstance.updateUser(username, user);
|
||||
apiInstance.updateUser(username, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#updateUser");
|
||||
e.printStackTrace();
|
||||
@ -343,7 +343,7 @@ try {
|
||||
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
|
||||
|
||||
|
@ -44,12 +44,12 @@ public class AnotherFakeApi {
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client call123testSpecialTags(Client client) throws IOException {
|
||||
HttpResponse response = call123testSpecialTagsForHttpResponse(client);
|
||||
public Client call123testSpecialTags(Client body) throws IOException {
|
||||
HttpResponse response = call123testSpecialTagsForHttpResponse(body);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
@ -58,51 +58,51 @@ public class AnotherFakeApi {
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client call123testSpecialTags(Client client, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = call123testSpecialTagsForHttpResponse(client, params);
|
||||
public Client call123testSpecialTags(Client body, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = call123testSpecialTagsForHttpResponse(body, params);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(Client client) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(Client body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream client, String mediaType) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = client == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(Client client, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
public HttpResponse call123testSpecialTagsForHttpResponse(Client body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
|
||||
|
||||
@ -127,7 +127,7 @@ public class AnotherFakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -130,12 +130,12 @@ public class FakeApi {
|
||||
/**
|
||||
* Test serialization of object with outer number type
|
||||
* <p><b>200</b> - Output composite
|
||||
* @param outerComposite Input composite as post body
|
||||
* @param body Input composite as post body
|
||||
* @return OuterComposite
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws IOException {
|
||||
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite);
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws IOException {
|
||||
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body);
|
||||
TypeReference typeRef = new TypeReference<OuterComposite>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
@ -147,37 +147,37 @@ public class FakeApi {
|
||||
* @return OuterComposite
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite, params);
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body, params);
|
||||
TypeReference typeRef = new TypeReference<OuterComposite>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite outerComposite) throws IOException {
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body) throws IOException {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(outerComposite);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(java.io.InputStream outerComposite, String mediaType) throws IOException {
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = outerComposite == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, outerComposite);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite outerComposite, Map<String, Object> params) throws IOException {
|
||||
public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body, Map<String, Object> params) throws IOException {
|
||||
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
|
||||
|
||||
@ -202,7 +202,7 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(outerComposite);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -370,58 +370,58 @@ public class FakeApi {
|
||||
/**
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* <p><b>200</b> - Success
|
||||
* @param fileSchemaTestClass The fileSchemaTestClass parameter
|
||||
* @param body The body parameter
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws IOException {
|
||||
testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass);
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws IOException {
|
||||
testBodyWithFileSchemaForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* <p><b>200</b> - Success
|
||||
* @param fileSchemaTestClass The fileSchemaTestClass parameter
|
||||
* @param body The body parameter
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Map<String, Object> params) throws IOException {
|
||||
testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass, params);
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body, Map<String, Object> params) throws IOException {
|
||||
testBodyWithFileSchemaForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass) throws IOException {
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(fileSchemaTestClass);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream fileSchemaTestClass, String mediaType) throws IOException {
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = fileSchemaTestClass == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, fileSchemaTestClass);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
|
||||
|
||||
@ -446,7 +446,7 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(fileSchemaTestClass);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -454,31 +454,31 @@ public class FakeApi {
|
||||
/**
|
||||
* <p><b>200</b> - Success
|
||||
* @param query The query parameter
|
||||
* @param user The user parameter
|
||||
* @param body The body parameter
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testBodyWithQueryParams(String query, User user) throws IOException {
|
||||
testBodyWithQueryParamsForHttpResponse(query, user);
|
||||
public void testBodyWithQueryParams(String query, User body) throws IOException {
|
||||
testBodyWithQueryParamsForHttpResponse(query, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p><b>200</b> - Success
|
||||
* @param query The query parameter
|
||||
* @param user The user parameter
|
||||
* @param body The body parameter
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testBodyWithQueryParams(String query, User user, Map<String, Object> params) throws IOException {
|
||||
testBodyWithQueryParamsForHttpResponse(query, user, params);
|
||||
public void testBodyWithQueryParams(String query, User body, Map<String, Object> params) throws IOException {
|
||||
testBodyWithQueryParamsForHttpResponse(query, body, params);
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User user) throws IOException {
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body) throws IOException {
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
|
||||
if (query != null) {
|
||||
@ -496,17 +496,17 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, java.io.InputStream user, String mediaType) throws IOException {
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
|
||||
if (query != null) {
|
||||
@ -524,19 +524,19 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = user == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User user, Map<String, Object> params) throws IOException {
|
||||
public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
|
||||
|
||||
@ -563,7 +563,7 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -572,12 +572,12 @@ public class FakeApi {
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client testClientModel(Client client) throws IOException {
|
||||
HttpResponse response = testClientModelForHttpResponse(client);
|
||||
public Client testClientModel(Client body) throws IOException {
|
||||
HttpResponse response = testClientModelForHttpResponse(body);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
@ -586,51 +586,51 @@ public class FakeApi {
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client testClientModel(Client client, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = testClientModelForHttpResponse(client, params);
|
||||
public Client testClientModel(Client body, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = testClientModelForHttpResponse(body, params);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
|
||||
public HttpResponse testClientModelForHttpResponse(Client client) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel");
|
||||
public HttpResponse testClientModelForHttpResponse(Client body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testClientModelForHttpResponse(java.io.InputStream client, String mediaType) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel");
|
||||
public HttpResponse testClientModelForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = client == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testClientModelForHttpResponse(Client client, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel");
|
||||
public HttpResponse testClientModelForHttpResponse(Client body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
|
||||
|
||||
@ -655,7 +655,7 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -1016,58 +1016,58 @@ public class FakeApi {
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param requestBody request body
|
||||
* @param param request body
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws IOException {
|
||||
testInlineAdditionalPropertiesForHttpResponse(requestBody);
|
||||
public void testInlineAdditionalProperties(Map<String, String> param) throws IOException {
|
||||
testInlineAdditionalPropertiesForHttpResponse(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param requestBody request body
|
||||
* @param param request body
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody, Map<String, Object> params) throws IOException {
|
||||
testInlineAdditionalPropertiesForHttpResponse(requestBody, params);
|
||||
public void testInlineAdditionalProperties(Map<String, String> param, Map<String, Object> params) throws IOException {
|
||||
testInlineAdditionalPropertiesForHttpResponse(param, params);
|
||||
}
|
||||
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> requestBody) throws IOException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> param) throws IOException {
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(requestBody);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(param);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream requestBody, String mediaType) throws IOException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream param, String mediaType) throws IOException {
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = requestBody == null ?
|
||||
HttpContent content = param == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, requestBody);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, param);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> requestBody, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> param, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
|
||||
|
||||
@ -1092,7 +1092,7 @@ public class FakeApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(requestBody);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(param);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -44,12 +44,12 @@ public class FakeClassnameTags123Api {
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client testClassname(Client client) throws IOException {
|
||||
HttpResponse response = testClassnameForHttpResponse(client);
|
||||
public Client testClassname(Client body) throws IOException {
|
||||
HttpResponse response = testClassnameForHttpResponse(body);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
@ -58,51 +58,51 @@ public class FakeClassnameTags123Api {
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @param body client model
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @return Client
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Client testClassname(Client client, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = testClassnameForHttpResponse(client, params);
|
||||
public Client testClassname(Client body, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = testClassnameForHttpResponse(body, params);
|
||||
TypeReference typeRef = new TypeReference<Client>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
|
||||
public HttpResponse testClassnameForHttpResponse(Client client) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname");
|
||||
public HttpResponse testClassnameForHttpResponse(Client body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testClassnameForHttpResponse(java.io.InputStream client, String mediaType) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname");
|
||||
public HttpResponse testClassnameForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = client == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, client);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse testClassnameForHttpResponse(Client client, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname");
|
||||
public HttpResponse testClassnameForHttpResponse(Client body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
|
||||
|
||||
@ -127,7 +127,7 @@ public class FakeClassnameTags123Api {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(client);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -45,58 +45,58 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void addPet(Pet pet) throws IOException {
|
||||
addPetForHttpResponse(pet);
|
||||
public void addPet(Pet body) throws IOException {
|
||||
addPetForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void addPet(Pet pet, Map<String, Object> params) throws IOException {
|
||||
addPetForHttpResponse(pet, params);
|
||||
public void addPet(Pet body, Map<String, Object> params) throws IOException {
|
||||
addPetForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse addPetForHttpResponse(Pet pet) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
|
||||
public HttpResponse addPetForHttpResponse(Pet body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse addPetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
|
||||
public HttpResponse addPetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = pet == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse addPetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
|
||||
public HttpResponse addPetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
@ -121,7 +121,7 @@ public class PetApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -474,11 +474,11 @@ public class PetApi {
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void updatePet(Pet pet) throws IOException {
|
||||
updatePetForHttpResponse(pet);
|
||||
public void updatePet(Pet body) throws IOException {
|
||||
updatePetForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -486,48 +486,48 @@ public class PetApi {
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
* @param pet Pet object that needs to be added to the store
|
||||
* @param body Pet object that needs to be added to the store
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void updatePet(Pet pet, Map<String, Object> params) throws IOException {
|
||||
updatePetForHttpResponse(pet, params);
|
||||
public void updatePet(Pet body, Map<String, Object> params) throws IOException {
|
||||
updatePetForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse updatePetForHttpResponse(Pet pet) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
|
||||
public HttpResponse updatePetForHttpResponse(Pet body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse updatePetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
|
||||
public HttpResponse updatePetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = pet == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse updatePetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
|
||||
public HttpResponse updatePetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
|
||||
|
||||
@ -552,7 +552,7 @@ public class PetApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -276,12 +276,12 @@ public class StoreApi {
|
||||
* Place an order for a pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid Order
|
||||
* @param order order placed for purchasing the pet
|
||||
* @param body order placed for purchasing the pet
|
||||
* @return Order
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Order placeOrder(Order order) throws IOException {
|
||||
HttpResponse response = placeOrderForHttpResponse(order);
|
||||
public Order placeOrder(Order body) throws IOException {
|
||||
HttpResponse response = placeOrderForHttpResponse(body);
|
||||
TypeReference typeRef = new TypeReference<Order>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
@ -290,51 +290,51 @@ public class StoreApi {
|
||||
* Place an order for a pet
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid Order
|
||||
* @param order order placed for purchasing the pet
|
||||
* @param body order placed for purchasing the pet
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @return Order
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public Order placeOrder(Order order, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = placeOrderForHttpResponse(order, params);
|
||||
public Order placeOrder(Order body, Map<String, Object> params) throws IOException {
|
||||
HttpResponse response = placeOrderForHttpResponse(body, params);
|
||||
TypeReference typeRef = new TypeReference<Order>() {};
|
||||
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
|
||||
}
|
||||
|
||||
public HttpResponse placeOrderForHttpResponse(Order order) throws IOException {
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder");
|
||||
public HttpResponse placeOrderForHttpResponse(Order body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(order);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse placeOrderForHttpResponse(java.io.InputStream order, String mediaType) throws IOException {
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder");
|
||||
public HttpResponse placeOrderForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = order == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, order);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse placeOrderForHttpResponse(Order order, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder");
|
||||
public HttpResponse placeOrderForHttpResponse(Order body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
|
||||
|
||||
@ -359,7 +359,7 @@ public class StoreApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(order);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -44,59 +44,59 @@ public class UserApi {
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user Created user object
|
||||
* @param body Created user object
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUser(User user) throws IOException {
|
||||
createUserForHttpResponse(user);
|
||||
public void createUser(User body) throws IOException {
|
||||
createUserForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user Created user object
|
||||
* @param body Created user object
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUser(User user, Map<String, Object> params) throws IOException {
|
||||
createUserForHttpResponse(user, params);
|
||||
public void createUser(User body, Map<String, Object> params) throws IOException {
|
||||
createUserForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse createUserForHttpResponse(User user) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser");
|
||||
public HttpResponse createUserForHttpResponse(User body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUserForHttpResponse(java.io.InputStream user, String mediaType) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser");
|
||||
public HttpResponse createUserForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = user == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUserForHttpResponse(User user, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser");
|
||||
public HttpResponse createUserForHttpResponse(User body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
|
||||
|
||||
@ -121,7 +121,7 @@ public class UserApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -129,58 +129,58 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUsersWithArrayInput(List<User> user) throws IOException {
|
||||
createUsersWithArrayInputForHttpResponse(user);
|
||||
public void createUsersWithArrayInput(List<User> body) throws IOException {
|
||||
createUsersWithArrayInputForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUsersWithArrayInput(List<User> user, Map<String, Object> params) throws IOException {
|
||||
createUsersWithArrayInputForHttpResponse(user, params);
|
||||
public void createUsersWithArrayInput(List<User> body, Map<String, Object> params) throws IOException {
|
||||
createUsersWithArrayInputForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> user) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = user == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> user, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
|
||||
|
||||
@ -205,7 +205,7 @@ public class UserApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -213,58 +213,58 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUsersWithListInput(List<User> user) throws IOException {
|
||||
createUsersWithListInputForHttpResponse(user);
|
||||
public void createUsersWithListInput(List<User> body) throws IOException {
|
||||
createUsersWithListInputForHttpResponse(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param user List of user object
|
||||
* @param body List of user object
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void createUsersWithListInput(List<User> user, Map<String, Object> params) throws IOException {
|
||||
createUsersWithListInputForHttpResponse(user, params);
|
||||
public void createUsersWithListInput(List<User> body, Map<String, Object> params) throws IOException {
|
||||
createUsersWithListInputForHttpResponse(body, params);
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(List<User> user) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(List<User> body) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
|
||||
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = user == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(List<User> user, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
public HttpResponse createUsersWithListInputForHttpResponse(List<User> body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
|
||||
|
||||
@ -289,7 +289,7 @@ public class UserApi {
|
||||
String url = uriBuilder.build().toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
@ -631,11 +631,11 @@ public class UserApi {
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param username name that need to be deleted
|
||||
* @param user Updated user object
|
||||
* @param body Updated user object
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void updateUser(String username, User user) throws IOException {
|
||||
updateUserForHttpResponse(username, user);
|
||||
public void updateUser(String username, User body) throws IOException {
|
||||
updateUserForHttpResponse(username, body);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -644,21 +644,21 @@ public class UserApi {
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param username name that need to be deleted
|
||||
* @param user Updated user object
|
||||
* @param body Updated user object
|
||||
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
|
||||
* @throws IOException if an error occurs while attempting to invoke the API
|
||||
**/
|
||||
public void updateUser(String username, User user, Map<String, Object> params) throws IOException {
|
||||
updateUserForHttpResponse(username, user, params);
|
||||
public void updateUser(String username, User body, Map<String, Object> params) throws IOException {
|
||||
updateUserForHttpResponse(username, body, params);
|
||||
}
|
||||
|
||||
public HttpResponse updateUserForHttpResponse(String username, User user) throws IOException {
|
||||
public HttpResponse updateUserForHttpResponse(String username, User body) throws IOException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
// create a map of path variables
|
||||
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||
@ -668,17 +668,17 @@ public class UserApi {
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse updateUserForHttpResponse(String username, java.io.InputStream user, String mediaType) throws IOException {
|
||||
public HttpResponse updateUserForHttpResponse(String username, java.io.InputStream body, String mediaType) throws IOException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
// create a map of path variables
|
||||
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||
@ -688,19 +688,19 @@ public class UserApi {
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = user == null ?
|
||||
HttpContent content = body == null ?
|
||||
apiClient.new JacksonJsonHttpContent(null) :
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, user);
|
||||
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
public HttpResponse updateUserForHttpResponse(String username, User user, Map<String, Object> params) throws IOException {
|
||||
public HttpResponse updateUserForHttpResponse(String username, User body, Map<String, Object> params) throws IOException {
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
|
||||
}// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser");
|
||||
}// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
// create a map of path variables
|
||||
final Map<String, Object> uriVariables = new HashMap<String, Object>();
|
||||
@ -728,7 +728,7 @@ public class UserApi {
|
||||
String url = uriBuilder.buildFromMap(uriVariables).toString();
|
||||
GenericUrl genericUrl = new GenericUrl(url);
|
||||
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(user);
|
||||
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
|
||||
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testSpecialTags"></a>
|
||||
# **call123testSpecialTags**
|
||||
> Client call123testSpecialTags(client)
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
|
||||
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -65,7 +65,7 @@ No authorization required
|
||||
|
||||
<a name="fakeOuterCompositeSerialize"></a>
|
||||
# **fakeOuterCompositeSerialize**
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
|
||||
|
||||
|
||||
@ -79,9 +79,9 @@ Test serialization of object with outer number type
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
try {
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||
@ -93,7 +93,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithFileSchema"></a>
|
||||
# **testBodyWithFileSchema**
|
||||
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||
> testBodyWithFileSchema(body)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
try {
|
||||
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.testBodyWithFileSchema(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||
e.printStackTrace();
|
||||
@ -227,7 +227,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithQueryParams"></a>
|
||||
# **testBodyWithQueryParams**
|
||||
> testBodyWithQueryParams(query, user)
|
||||
> testBodyWithQueryParams(query, body)
|
||||
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ No authorization required
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String query = "query_example"; // String |
|
||||
User user = new User(); // User |
|
||||
User body = new User(); // User |
|
||||
try {
|
||||
apiInstance.testBodyWithQueryParams(query, user);
|
||||
apiInstance.testBodyWithQueryParams(query, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||
e.printStackTrace();
|
||||
@ -271,7 +271,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **String**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -288,7 +288,7 @@ No authorization required
|
||||
|
||||
<a name="testClientModel"></a>
|
||||
# **testClientModel**
|
||||
> Client testClientModel(client)
|
||||
> Client testClientModel(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -302,9 +302,9 @@ To test \"client\" model
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClientModel(client);
|
||||
Client result = apiInstance.testClientModel(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||
@ -316,7 +316,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -524,7 +524,7 @@ No authorization required
|
||||
|
||||
<a name="testInlineAdditionalProperties"></a>
|
||||
# **testInlineAdditionalProperties**
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
> testInlineAdditionalProperties(param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -536,9 +536,9 @@ test inline additionalProperties
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
try {
|
||||
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||
apiInstance.testInlineAdditionalProperties(param);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||
e.printStackTrace();
|
||||
@ -549,7 +549,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Map<String, String>**](String.md)| request body |
|
||||
**param** | [**Map<String, String>**](String.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testClassname"></a>
|
||||
# **testClassname**
|
||||
> Client testClassname(client)
|
||||
> Client testClassname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
|
||||
//api_key_query.setApiKeyPrefix("Token");
|
||||
|
||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClassname(client);
|
||||
Client result = apiInstance.testClassname(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||
@ -47,7 +47,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addPet"></a>
|
||||
# **addPet**
|
||||
> addPet(pet)
|
||||
> addPet(body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.addPet(pet);
|
||||
apiInstance.addPet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
e.printStackTrace();
|
||||
@ -50,7 +50,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -280,7 +280,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatePet"></a>
|
||||
# **updatePet**
|
||||
> updatePet(pet)
|
||||
> updatePet(body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.updatePet(pet);
|
||||
apiInstance.updatePet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
e.printStackTrace();
|
||||
@ -313,7 +313,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
|
@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="placeOrder"></a>
|
||||
# **placeOrder**
|
||||
> Order placeOrder(order)
|
||||
> Order placeOrder(body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -164,9 +164,9 @@ Place an order for a pet
|
||||
|
||||
|
||||
StoreApi apiInstance = new StoreApi();
|
||||
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
||||
try {
|
||||
Order result = apiInstance.placeOrder(order);
|
||||
Order result = apiInstance.placeOrder(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||
@ -178,7 +178,7 @@ try {
|
||||
|
||||
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**
|
||||
> createUser(user)
|
||||
> createUser(body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -30,9 +30,9 @@ This can only be done by the logged in user.
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
User user = new User(); // User | Created user object
|
||||
User body = new User(); // User | Created user object
|
||||
try {
|
||||
apiInstance.createUser(user);
|
||||
apiInstance.createUser(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUser");
|
||||
e.printStackTrace();
|
||||
@ -43,7 +43,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -60,7 +60,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithArrayInput"></a>
|
||||
# **createUsersWithArrayInput**
|
||||
> createUsersWithArrayInput(user)
|
||||
> createUsersWithArrayInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -72,9 +72,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithArrayInput(user);
|
||||
apiInstance.createUsersWithArrayInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||
e.printStackTrace();
|
||||
@ -85,7 +85,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -102,7 +102,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithListInput"></a>
|
||||
# **createUsersWithListInput**
|
||||
> createUsersWithListInput(user)
|
||||
> createUsersWithListInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -114,9 +114,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithListInput(user);
|
||||
apiInstance.createUsersWithListInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||
e.printStackTrace();
|
||||
@ -127,7 +127,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -314,7 +314,7 @@ No authorization required
|
||||
|
||||
<a name="updateUser"></a>
|
||||
# **updateUser**
|
||||
> updateUser(username, user)
|
||||
> updateUser(username, body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -329,9 +329,9 @@ This can only be done by the logged in user.
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | name that need to be deleted
|
||||
User user = new User(); // User | Updated user object
|
||||
User body = new User(); // User | Updated user object
|
||||
try {
|
||||
apiInstance.updateUser(username, user);
|
||||
apiInstance.updateUser(username, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#updateUser");
|
||||
e.printStackTrace();
|
||||
@ -343,7 +343,7 @@ try {
|
||||
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
|
||||
|
||||
|
@ -51,16 +51,16 @@ public class AnotherFakeApi {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client call123testSpecialTags(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public Client call123testSpecialTags(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -95,12 +95,12 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||
Object localVarPostBody = outerComposite;
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/outer/composite";
|
||||
@ -206,15 +206,15 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
Object localVarPostBody = fileSchemaTestClass;
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -248,20 +248,20 @@ public class FakeApi {
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public void testBodyWithQueryParams(String query, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -295,16 +295,16 @@ public class FakeApi {
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClientModel(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public Client testClientModel(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -553,15 +553,15 @@ if (booleanGroup != null)
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||
Object localVarPostBody = requestBody;
|
||||
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
|
||||
Object localVarPostBody = param;
|
||||
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -51,16 +51,16 @@ public class FakeClassnameTags123Api {
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClassname(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public Client testClassname(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -53,15 +53,15 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void addPet(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public void addPet(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -270,15 +270,15 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updatePet(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public void updatePet(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -172,16 +172,16 @@ public class StoreApi {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Order placeOrder(Order order) throws ApiException {
|
||||
Object localVarPostBody = order;
|
||||
public Order placeOrder(Order body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -51,15 +51,15 @@ public class UserApi {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUser(User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public void createUser(User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -92,15 +92,15 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -133,15 +133,15 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public void createUsersWithListInput(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -345,20 +345,20 @@ public class UserApi {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updateUser(String username, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public void updateUser(String username, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testSpecialTags"></a>
|
||||
# **call123testSpecialTags**
|
||||
> Client call123testSpecialTags(client)
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
|
||||
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -65,7 +65,7 @@ No authorization required
|
||||
|
||||
<a name="fakeOuterCompositeSerialize"></a>
|
||||
# **fakeOuterCompositeSerialize**
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
|
||||
|
||||
|
||||
@ -79,9 +79,9 @@ Test serialization of object with outer number type
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
try {
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||
@ -93,7 +93,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithFileSchema"></a>
|
||||
# **testBodyWithFileSchema**
|
||||
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||
> testBodyWithFileSchema(body)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
try {
|
||||
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.testBodyWithFileSchema(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||
e.printStackTrace();
|
||||
@ -227,7 +227,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithQueryParams"></a>
|
||||
# **testBodyWithQueryParams**
|
||||
> testBodyWithQueryParams(query, user)
|
||||
> testBodyWithQueryParams(query, body)
|
||||
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ No authorization required
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String query = "query_example"; // String |
|
||||
User user = new User(); // User |
|
||||
User body = new User(); // User |
|
||||
try {
|
||||
apiInstance.testBodyWithQueryParams(query, user);
|
||||
apiInstance.testBodyWithQueryParams(query, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||
e.printStackTrace();
|
||||
@ -271,7 +271,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **String**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -288,7 +288,7 @@ No authorization required
|
||||
|
||||
<a name="testClientModel"></a>
|
||||
# **testClientModel**
|
||||
> Client testClientModel(client)
|
||||
> Client testClientModel(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -302,9 +302,9 @@ To test \"client\" model
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClientModel(client);
|
||||
Client result = apiInstance.testClientModel(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||
@ -316,7 +316,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -524,7 +524,7 @@ No authorization required
|
||||
|
||||
<a name="testInlineAdditionalProperties"></a>
|
||||
# **testInlineAdditionalProperties**
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
> testInlineAdditionalProperties(param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -536,9 +536,9 @@ test inline additionalProperties
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
try {
|
||||
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||
apiInstance.testInlineAdditionalProperties(param);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||
e.printStackTrace();
|
||||
@ -549,7 +549,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Map<String, String>**](String.md)| request body |
|
||||
**param** | [**Map<String, String>**](String.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testClassname"></a>
|
||||
# **testClassname**
|
||||
> Client testClassname(client)
|
||||
> Client testClassname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
|
||||
//api_key_query.setApiKeyPrefix("Token");
|
||||
|
||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClassname(client);
|
||||
Client result = apiInstance.testClassname(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||
@ -47,7 +47,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addPet"></a>
|
||||
# **addPet**
|
||||
> addPet(pet)
|
||||
> addPet(body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.addPet(pet);
|
||||
apiInstance.addPet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
e.printStackTrace();
|
||||
@ -50,7 +50,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -280,7 +280,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatePet"></a>
|
||||
# **updatePet**
|
||||
> updatePet(pet)
|
||||
> updatePet(body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.updatePet(pet);
|
||||
apiInstance.updatePet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
e.printStackTrace();
|
||||
@ -313,7 +313,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
|
@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="placeOrder"></a>
|
||||
# **placeOrder**
|
||||
> Order placeOrder(order)
|
||||
> Order placeOrder(body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -164,9 +164,9 @@ Place an order for a pet
|
||||
|
||||
|
||||
StoreApi apiInstance = new StoreApi();
|
||||
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
||||
try {
|
||||
Order result = apiInstance.placeOrder(order);
|
||||
Order result = apiInstance.placeOrder(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||
@ -178,7 +178,7 @@ try {
|
||||
|
||||
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**
|
||||
> createUser(user)
|
||||
> createUser(body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -30,9 +30,9 @@ This can only be done by the logged in user.
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
User user = new User(); // User | Created user object
|
||||
User body = new User(); // User | Created user object
|
||||
try {
|
||||
apiInstance.createUser(user);
|
||||
apiInstance.createUser(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUser");
|
||||
e.printStackTrace();
|
||||
@ -43,7 +43,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -60,7 +60,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithArrayInput"></a>
|
||||
# **createUsersWithArrayInput**
|
||||
> createUsersWithArrayInput(user)
|
||||
> createUsersWithArrayInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -72,9 +72,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithArrayInput(user);
|
||||
apiInstance.createUsersWithArrayInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||
e.printStackTrace();
|
||||
@ -85,7 +85,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -102,7 +102,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithListInput"></a>
|
||||
# **createUsersWithListInput**
|
||||
> createUsersWithListInput(user)
|
||||
> createUsersWithListInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -114,9 +114,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithListInput(user);
|
||||
apiInstance.createUsersWithListInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||
e.printStackTrace();
|
||||
@ -127,7 +127,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -314,7 +314,7 @@ No authorization required
|
||||
|
||||
<a name="updateUser"></a>
|
||||
# **updateUser**
|
||||
> updateUser(username, user)
|
||||
> updateUser(username, body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -329,9 +329,9 @@ This can only be done by the logged in user.
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | name that need to be deleted
|
||||
User user = new User(); // User | Updated user object
|
||||
User body = new User(); // User | Updated user object
|
||||
try {
|
||||
apiInstance.updateUser(username, user);
|
||||
apiInstance.updateUser(username, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#updateUser");
|
||||
e.printStackTrace();
|
||||
@ -343,7 +343,7 @@ try {
|
||||
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
|
||||
|
||||
|
@ -38,27 +38,27 @@ public class AnotherFakeApi {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client call123testSpecialTags(Client client) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(client).getData();
|
||||
public Client call123testSpecialTags(Client body) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -92,23 +92,23 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData();
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return ApiResponse<OuterComposite>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
|
||||
Object localVarPostBody = outerComposite;
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/outer/composite";
|
||||
@ -233,26 +233,26 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
|
||||
|
||||
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
testBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
Object localVarPostBody = fileSchemaTestClass;
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -285,32 +285,32 @@ public class FakeApi {
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||
public void testBodyWithQueryParams(String query, User body) throws ApiException {
|
||||
|
||||
testBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
testBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -343,27 +343,27 @@ public class FakeApi {
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClientModel(Client client) throws ApiException {
|
||||
return testClientModelWithHttpInfo(client).getData();
|
||||
public Client testClientModel(Client body) throws ApiException {
|
||||
return testClientModelWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -666,26 +666,26 @@ if (booleanGroup != null)
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
|
||||
|
||||
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
testInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
|
||||
Object localVarPostBody = requestBody;
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
|
||||
Object localVarPostBody = param;
|
||||
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -38,27 +38,27 @@ public class FakeClassnameTags123Api {
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClassname(Client client) throws ApiException {
|
||||
return testClassnameWithHttpInfo(client).getData();
|
||||
public Client testClassname(Client body) throws ApiException {
|
||||
return testClassnameWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -40,26 +40,26 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void addPet(Pet pet) throws ApiException {
|
||||
public void addPet(Pet body) throws ApiException {
|
||||
|
||||
addPetWithHttpInfo(pet);
|
||||
addPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -310,26 +310,26 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updatePet(Pet pet) throws ApiException {
|
||||
public void updatePet(Pet body) throws ApiException {
|
||||
|
||||
updatePetWithHttpInfo(pet);
|
||||
updatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -188,27 +188,27 @@ public class StoreApi {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Order placeOrder(Order order) throws ApiException {
|
||||
return placeOrderWithHttpInfo(order).getData();
|
||||
public Order placeOrder(Order body) throws ApiException {
|
||||
return placeOrderWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
|
||||
Object localVarPostBody = order;
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -38,26 +38,26 @@ public class UserApi {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUser(User user) throws ApiException {
|
||||
public void createUser(User body) throws ApiException {
|
||||
|
||||
createUserWithHttpInfo(user);
|
||||
createUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -89,26 +89,26 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
||||
|
||||
createUsersWithArrayInputWithHttpInfo(user);
|
||||
createUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -140,26 +140,26 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithListInput(List<User> body) throws ApiException {
|
||||
|
||||
createUsersWithListInputWithHttpInfo(user);
|
||||
createUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -402,32 +402,32 @@ public class UserApi {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updateUser(String username, User user) throws ApiException {
|
||||
public void updateUser(String username, User body) throws ApiException {
|
||||
|
||||
updateUserWithHttpInfo(username, user);
|
||||
updateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testSpecialTags"></a>
|
||||
# **call123testSpecialTags**
|
||||
> Client call123testSpecialTags(client)
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
|
||||
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -65,7 +65,7 @@ No authorization required
|
||||
|
||||
<a name="fakeOuterCompositeSerialize"></a>
|
||||
# **fakeOuterCompositeSerialize**
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
|
||||
|
||||
|
||||
@ -79,9 +79,9 @@ Test serialization of object with outer number type
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
try {
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||
@ -93,7 +93,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithFileSchema"></a>
|
||||
# **testBodyWithFileSchema**
|
||||
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||
> testBodyWithFileSchema(body)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
try {
|
||||
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.testBodyWithFileSchema(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||
e.printStackTrace();
|
||||
@ -227,7 +227,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithQueryParams"></a>
|
||||
# **testBodyWithQueryParams**
|
||||
> testBodyWithQueryParams(query, user)
|
||||
> testBodyWithQueryParams(query, body)
|
||||
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ No authorization required
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String query = "query_example"; // String |
|
||||
User user = new User(); // User |
|
||||
User body = new User(); // User |
|
||||
try {
|
||||
apiInstance.testBodyWithQueryParams(query, user);
|
||||
apiInstance.testBodyWithQueryParams(query, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||
e.printStackTrace();
|
||||
@ -271,7 +271,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **String**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -288,7 +288,7 @@ No authorization required
|
||||
|
||||
<a name="testClientModel"></a>
|
||||
# **testClientModel**
|
||||
> Client testClientModel(client)
|
||||
> Client testClientModel(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -302,9 +302,9 @@ To test \"client\" model
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClientModel(client);
|
||||
Client result = apiInstance.testClientModel(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||
@ -316,7 +316,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -524,7 +524,7 @@ No authorization required
|
||||
|
||||
<a name="testInlineAdditionalProperties"></a>
|
||||
# **testInlineAdditionalProperties**
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
> testInlineAdditionalProperties(param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -536,9 +536,9 @@ test inline additionalProperties
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
try {
|
||||
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||
apiInstance.testInlineAdditionalProperties(param);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||
e.printStackTrace();
|
||||
@ -549,7 +549,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Map<String, String>**](String.md)| request body |
|
||||
**param** | [**Map<String, String>**](String.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testClassname"></a>
|
||||
# **testClassname**
|
||||
> Client testClassname(client)
|
||||
> Client testClassname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
|
||||
//api_key_query.setApiKeyPrefix("Token");
|
||||
|
||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClassname(client);
|
||||
Client result = apiInstance.testClassname(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||
@ -47,7 +47,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addPet"></a>
|
||||
# **addPet**
|
||||
> addPet(pet)
|
||||
> addPet(body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.addPet(pet);
|
||||
apiInstance.addPet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
e.printStackTrace();
|
||||
@ -50,7 +50,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -280,7 +280,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatePet"></a>
|
||||
# **updatePet**
|
||||
> updatePet(pet)
|
||||
> updatePet(body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.updatePet(pet);
|
||||
apiInstance.updatePet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
e.printStackTrace();
|
||||
@ -313,7 +313,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
|
@ -152,7 +152,7 @@ No authorization required
|
||||
|
||||
<a name="placeOrder"></a>
|
||||
# **placeOrder**
|
||||
> Order placeOrder(order)
|
||||
> Order placeOrder(body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@ -164,9 +164,9 @@ Place an order for a pet
|
||||
|
||||
|
||||
StoreApi apiInstance = new StoreApi();
|
||||
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
||||
try {
|
||||
Order result = apiInstance.placeOrder(order);
|
||||
Order result = apiInstance.placeOrder(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||
@ -178,7 +178,7 @@ try {
|
||||
|
||||
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**
|
||||
> createUser(user)
|
||||
> createUser(body)
|
||||
|
||||
Create user
|
||||
|
||||
@ -30,9 +30,9 @@ This can only be done by the logged in user.
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
User user = new User(); // User | Created user object
|
||||
User body = new User(); // User | Created user object
|
||||
try {
|
||||
apiInstance.createUser(user);
|
||||
apiInstance.createUser(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUser");
|
||||
e.printStackTrace();
|
||||
@ -43,7 +43,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -60,7 +60,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithArrayInput"></a>
|
||||
# **createUsersWithArrayInput**
|
||||
> createUsersWithArrayInput(user)
|
||||
> createUsersWithArrayInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -72,9 +72,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithArrayInput(user);
|
||||
apiInstance.createUsersWithArrayInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||
e.printStackTrace();
|
||||
@ -85,7 +85,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -102,7 +102,7 @@ No authorization required
|
||||
|
||||
<a name="createUsersWithListInput"></a>
|
||||
# **createUsersWithListInput**
|
||||
> createUsersWithListInput(user)
|
||||
> createUsersWithListInput(body)
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
@ -114,9 +114,9 @@ Creates list of users with given input array
|
||||
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
List<User> user = Arrays.asList(null); // List<User> | List of user object
|
||||
List<User> body = Arrays.asList(null); // List<User> | List of user object
|
||||
try {
|
||||
apiInstance.createUsersWithListInput(user);
|
||||
apiInstance.createUsersWithListInput(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||
e.printStackTrace();
|
||||
@ -127,7 +127,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**user** | [**List<User>**](List.md)| List of user object |
|
||||
**body** | [**List<User>**](List.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -314,7 +314,7 @@ No authorization required
|
||||
|
||||
<a name="updateUser"></a>
|
||||
# **updateUser**
|
||||
> updateUser(username, user)
|
||||
> updateUser(username, body)
|
||||
|
||||
Updated user
|
||||
|
||||
@ -329,9 +329,9 @@ This can only be done by the logged in user.
|
||||
|
||||
UserApi apiInstance = new UserApi();
|
||||
String username = "username_example"; // String | name that need to be deleted
|
||||
User user = new User(); // User | Updated user object
|
||||
User body = new User(); // User | Updated user object
|
||||
try {
|
||||
apiInstance.updateUser(username, user);
|
||||
apiInstance.updateUser(username, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling UserApi#updateUser");
|
||||
e.printStackTrace();
|
||||
@ -343,7 +343,7 @@ try {
|
||||
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
|
||||
|
||||
|
@ -38,27 +38,27 @@ public class AnotherFakeApi {
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client call123testSpecialTags(Client client) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(client).getData();
|
||||
public Client call123testSpecialTags(Client body) throws ApiException {
|
||||
return call123testSpecialTagsWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -92,23 +92,23 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData();
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @param body Input composite as post body (optional)
|
||||
* @return ApiResponse<OuterComposite>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
|
||||
Object localVarPostBody = outerComposite;
|
||||
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// create path and map variables
|
||||
String localVarPath = "/fake/outer/composite";
|
||||
@ -233,26 +233,26 @@ public class FakeApi {
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
|
||||
|
||||
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
testBodyWithFileSchemaWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||
Object localVarPostBody = fileSchemaTestClass;
|
||||
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -285,32 +285,32 @@ public class FakeApi {
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||
public void testBodyWithQueryParams(String query, User body) throws ApiException {
|
||||
|
||||
testBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
testBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param query (required)
|
||||
* @param user (required)
|
||||
* @param body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -343,27 +343,27 @@ public class FakeApi {
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClientModel(Client client) throws ApiException {
|
||||
return testClientModelWithHttpInfo(client).getData();
|
||||
public Client testClientModel(Client body) throws ApiException {
|
||||
return testClientModelWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -666,26 +666,26 @@ if (booleanGroup != null)
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
|
||||
|
||||
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
testInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
}
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* @param requestBody request body (required)
|
||||
* @param param request body (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
|
||||
Object localVarPostBody = requestBody;
|
||||
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
|
||||
Object localVarPostBody = param;
|
||||
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -38,27 +38,27 @@ public class FakeClassnameTags123Api {
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return Client
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Client testClassname(Client client) throws ApiException {
|
||||
return testClassnameWithHttpInfo(client).getData();
|
||||
public Client testClassname(Client body) throws ApiException {
|
||||
return testClassnameWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param client client model (required)
|
||||
* @param body client model (required)
|
||||
* @return ApiResponse<Client>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
|
||||
Object localVarPostBody = client;
|
||||
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -40,26 +40,26 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void addPet(Pet pet) throws ApiException {
|
||||
public void addPet(Pet body) throws ApiException {
|
||||
|
||||
addPetWithHttpInfo(pet);
|
||||
addPetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -310,26 +310,26 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updatePet(Pet pet) throws ApiException {
|
||||
public void updatePet(Pet body) throws ApiException {
|
||||
|
||||
updatePetWithHttpInfo(pet);
|
||||
updatePetWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
|
||||
Object localVarPostBody = pet;
|
||||
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -188,27 +188,27 @@ public class StoreApi {
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Order placeOrder(Order order) throws ApiException {
|
||||
return placeOrderWithHttpInfo(order).getData();
|
||||
public Order placeOrder(Order body) throws ApiException {
|
||||
return placeOrderWithHttpInfo(body).getData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
*
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @return ApiResponse<Order>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
|
||||
Object localVarPostBody = order;
|
||||
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -38,26 +38,26 @@ public class UserApi {
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUser(User user) throws ApiException {
|
||||
public void createUser(User body) throws ApiException {
|
||||
|
||||
createUserWithHttpInfo(user);
|
||||
createUserWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param user Created user object (required)
|
||||
* @param body Created user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -89,26 +89,26 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
||||
|
||||
createUsersWithArrayInputWithHttpInfo(user);
|
||||
createUsersWithArrayInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -140,26 +140,26 @@ public class UserApi {
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||
public void createUsersWithListInput(List<User> body) throws ApiException {
|
||||
|
||||
createUsersWithListInputWithHttpInfo(user);
|
||||
createUsersWithListInputWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* @param user List of user object (required)
|
||||
* @param body List of user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@ -402,32 +402,32 @@ public class UserApi {
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void updateUser(String username, User user) throws ApiException {
|
||||
public void updateUser(String username, User body) throws ApiException {
|
||||
|
||||
updateUserWithHttpInfo(username, user);
|
||||
updateUserWithHttpInfo(username, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param user Updated user object (required)
|
||||
* @param body Updated user object (required)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
|
||||
Object localVarPostBody = user;
|
||||
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="call123testSpecialTags"></a>
|
||||
# **call123testSpecialTags**
|
||||
> Client call123testSpecialTags(client)
|
||||
> Client call123testSpecialTags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
|
||||
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
Client result = apiInstance.call123testSpecialTags(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -65,7 +65,7 @@ No authorization required
|
||||
|
||||
<a name="fakeOuterCompositeSerialize"></a>
|
||||
# **fakeOuterCompositeSerialize**
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
|
||||
|
||||
|
||||
@ -79,9 +79,9 @@ Test serialization of object with outer number type
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||
try {
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||
@ -93,7 +93,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithFileSchema"></a>
|
||||
# **testBodyWithFileSchema**
|
||||
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||
> testBodyWithFileSchema(body)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||
try {
|
||||
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
apiInstance.testBodyWithFileSchema(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||
e.printStackTrace();
|
||||
@ -227,7 +227,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
<a name="testBodyWithQueryParams"></a>
|
||||
# **testBodyWithQueryParams**
|
||||
> testBodyWithQueryParams(query, user)
|
||||
> testBodyWithQueryParams(query, body)
|
||||
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ No authorization required
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
String query = "query_example"; // String |
|
||||
User user = new User(); // User |
|
||||
User body = new User(); // User |
|
||||
try {
|
||||
apiInstance.testBodyWithQueryParams(query, user);
|
||||
apiInstance.testBodyWithQueryParams(query, body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||
e.printStackTrace();
|
||||
@ -271,7 +271,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **String**| |
|
||||
**user** | [**User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -288,7 +288,7 @@ No authorization required
|
||||
|
||||
<a name="testClientModel"></a>
|
||||
# **testClientModel**
|
||||
> Client testClientModel(client)
|
||||
> Client testClientModel(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@ -302,9 +302,9 @@ To test \"client\" model
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClientModel(client);
|
||||
Client result = apiInstance.testClientModel(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||
@ -316,7 +316,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
@ -524,7 +524,7 @@ No authorization required
|
||||
|
||||
<a name="testInlineAdditionalProperties"></a>
|
||||
# **testInlineAdditionalProperties**
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
> testInlineAdditionalProperties(param)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
@ -536,9 +536,9 @@ test inline additionalProperties
|
||||
|
||||
|
||||
FakeApi apiInstance = new FakeApi();
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
try {
|
||||
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||
apiInstance.testInlineAdditionalProperties(param);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||
e.printStackTrace();
|
||||
@ -549,7 +549,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**requestBody** | [**Map<String, String>**](String.md)| request body |
|
||||
**param** | [**Map<String, String>**](String.md)| request body |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -9,7 +9,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="testClassname"></a>
|
||||
# **testClassname**
|
||||
> Client testClassname(client)
|
||||
> Client testClassname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
|
||||
//api_key_query.setApiKeyPrefix("Token");
|
||||
|
||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
|
||||
Client client = new Client(); // Client | client model
|
||||
Client body = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.testClassname(client);
|
||||
Client result = apiInstance.testClassname(body);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||
@ -47,7 +47,7 @@ try {
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**client** | [**Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
<a name="addPet"></a>
|
||||
# **addPet**
|
||||
> addPet(pet)
|
||||
> addPet(body)
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
@ -37,9 +37,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.addPet(pet);
|
||||
apiInstance.addPet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#addPet");
|
||||
e.printStackTrace();
|
||||
@ -50,7 +50,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
@ -280,7 +280,7 @@ Name | Type | Description | Notes
|
||||
|
||||
<a name="updatePet"></a>
|
||||
# **updatePet**
|
||||
> updatePet(pet)
|
||||
> updatePet(body)
|
||||
|
||||
Update an existing pet
|
||||
|
||||
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
|
||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||
|
||||
PetApi apiInstance = new PetApi();
|
||||
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||
try {
|
||||
apiInstance.updatePet(pet);
|
||||
apiInstance.updatePet(body);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling PetApi#updatePet");
|
||||
e.printStackTrace();
|
||||
@ -313,7 +313,7 @@ try {
|
||||
|
||||
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
|
||||
|
||||
|
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