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:
Jérémie Bresson 2018-12-22 11:12:08 +01:00 committed by William Cheng
parent 43abd61144
commit a7dfc650b6
715 changed files with 6588 additions and 6470 deletions

View File

@ -204,7 +204,7 @@
<version>${swagger-core-version}</version> <version>${swagger-core-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.swagger.parser.v3</groupId> <groupId>${swagger-parser-groupid}</groupId>
<artifactId>swagger-parser</artifactId> <artifactId>swagger-parser</artifactId>
<version>${swagger-parser-version}</version> <version>${swagger-parser-version}</version>
</dependency> </dependency>

View File

@ -1341,7 +1341,8 @@
<properties> <properties>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target> <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> <swagger-core-version>2.0.6</swagger-core-version>
<scala-version>2.11.1</scala-version> <scala-version>2.11.1</scala-version>
<felix-version>3.3.1</felix-version> <felix-version>3.3.1</felix-version>

View File

@ -71,12 +71,12 @@ namespace Example
{ {
var apiInstance = new AnotherFakeApi(); var apiInstance = new AnotherFakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test special tags // To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testspecialtags"></a> <a name="call123testspecialtags"></a>
# **Call123TestSpecialTags** # **Call123TestSpecialTags**
> ModelClient Call123TestSpecialTags (ModelClient modelClient) > ModelClient Call123TestSpecialTags (ModelClient body)
To test special tags To test special tags
@ -30,12 +30,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new AnotherFakeApi(); var apiInstance = new AnotherFakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test special tags // To test special tags
ModelClient result = apiInstance.Call123TestSpecialTags(modelClient); ModelClient result = apiInstance.Call123TestSpecialTags(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -51,7 +51,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type

View File

@ -80,7 +80,7 @@ No authorization required
<a name="fakeoutercompositeserialize"></a> <a name="fakeoutercompositeserialize"></a>
# **FakeOuterCompositeSerialize** # **FakeOuterCompositeSerialize**
> OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null) > OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
@ -101,11 +101,11 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); 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 try
{ {
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -121,7 +121,7 @@ namespace Example
Name | Type | Description | Notes 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 ### Return type
@ -260,7 +260,7 @@ No authorization required
<a name="testbodywithfileschema"></a> <a name="testbodywithfileschema"></a>
# **TestBodyWithFileSchema** # **TestBodyWithFileSchema**
> void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) > void TestBodyWithFileSchema (FileSchemaTestClass body)
@ -281,11 +281,11 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | var body = new FileSchemaTestClass(); // FileSchemaTestClass |
try try
{ {
apiInstance.TestBodyWithFileSchema(fileSchemaTestClass); apiInstance.TestBodyWithFileSchema(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -300,7 +300,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -319,7 +319,7 @@ No authorization required
<a name="testbodywithqueryparams"></a> <a name="testbodywithqueryparams"></a>
# **TestBodyWithQueryParams** # **TestBodyWithQueryParams**
> void TestBodyWithQueryParams (string query, User user) > void TestBodyWithQueryParams (string query, User body)
@ -339,11 +339,11 @@ namespace Example
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var query = query_example; // string | var query = query_example; // string |
var user = new User(); // User | var body = new User(); // User |
try try
{ {
apiInstance.TestBodyWithQueryParams(query, user); apiInstance.TestBodyWithQueryParams(query, body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -359,7 +359,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **string**| | **query** | **string**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -378,7 +378,7 @@ No authorization required
<a name="testclientmodel"></a> <a name="testclientmodel"></a>
# **TestClientModel** # **TestClientModel**
> ModelClient TestClientModel (ModelClient modelClient) > ModelClient TestClientModel (ModelClient body)
To test \"client\" model To test \"client\" model
@ -399,12 +399,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); var apiInstance = new FakeApi();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test \"client\" model // To test \"client\" model
ModelClient result = apiInstance.TestClientModel(modelClient); ModelClient result = apiInstance.TestClientModel(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -420,7 +420,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type
@ -673,7 +673,7 @@ No authorization required
<a name="testinlineadditionalproperties"></a> <a name="testinlineadditionalproperties"></a>
# **TestInlineAdditionalProperties** # **TestInlineAdditionalProperties**
> void TestInlineAdditionalProperties (Dictionary<string, string> requestBody) > void TestInlineAdditionalProperties (Dictionary<string, string> param)
test inline additionalProperties test inline additionalProperties
@ -692,12 +692,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new FakeApi(); 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 try
{ {
// test inline additionalProperties // test inline additionalProperties
apiInstance.TestInlineAdditionalProperties(requestBody); apiInstance.TestInlineAdditionalProperties(param);
} }
catch (Exception e) catch (Exception e)
{ {
@ -712,7 +712,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Dictionary&lt;string, string&gt;**](string.md)| request body | **param** | [**Dictionary&lt;string, string&gt;**](string.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testclassname"></a> <a name="testclassname"></a>
# **TestClassname** # **TestClassname**
> ModelClient TestClassname (ModelClient modelClient) > ModelClient TestClassname (ModelClient body)
To test class name in snake case To test class name in snake case
@ -35,12 +35,12 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer"); // Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
var apiInstance = new FakeClassnameTags123Api(); var apiInstance = new FakeClassnameTags123Api();
var modelClient = new ModelClient(); // ModelClient | client model var body = new ModelClient(); // ModelClient | client model
try try
{ {
// To test class name in snake case // To test class name in snake case
ModelClient result = apiInstance.TestClassname(modelClient); ModelClient result = apiInstance.TestClassname(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -56,7 +56,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**modelClient** | [**ModelClient**](ModelClient.md)| client model | **body** | [**ModelClient**](ModelClient.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addpet"></a> <a name="addpet"></a>
# **AddPet** # **AddPet**
> void AddPet (Pet pet) > void AddPet (Pet body)
Add a new pet to the store Add a new pet to the store
@ -39,12 +39,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); 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 try
{ {
// Add a new pet to the store // Add a new pet to the store
apiInstance.AddPet(pet); apiInstance.AddPet(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -59,7 +59,7 @@ namespace Example
Name | Type | Description | Notes 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 ### Return type
@ -335,7 +335,7 @@ Name | Type | Description | Notes
<a name="updatepet"></a> <a name="updatepet"></a>
# **UpdatePet** # **UpdatePet**
> void UpdatePet (Pet pet) > void UpdatePet (Pet body)
Update an existing pet Update an existing pet
@ -357,12 +357,12 @@ namespace Example
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new PetApi(); 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 try
{ {
// Update an existing pet // Update an existing pet
apiInstance.UpdatePet(pet); apiInstance.UpdatePet(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -377,7 +377,7 @@ namespace Example
Name | Type | Description | Notes 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 ### Return type

View File

@ -195,7 +195,7 @@ No authorization required
<a name="placeorder"></a> <a name="placeorder"></a>
# **PlaceOrder** # **PlaceOrder**
> Order PlaceOrder (Order order) > Order PlaceOrder (Order body)
Place an order for a pet Place an order for a pet
@ -214,12 +214,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new StoreApi(); 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 try
{ {
// Place an order for a pet // Place an order for a pet
Order result = apiInstance.PlaceOrder(order); Order result = apiInstance.PlaceOrder(body);
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -235,7 +235,7 @@ namespace Example
Name | Type | Description | Notes 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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createuser"></a> <a name="createuser"></a>
# **CreateUser** # **CreateUser**
> void CreateUser (User user) > void CreateUser (User body)
Create user Create user
@ -37,12 +37,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var user = new User(); // User | Created user object var body = new User(); // User | Created user object
try try
{ {
// Create user // Create user
apiInstance.CreateUser(user); apiInstance.CreateUser(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -57,7 +57,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -76,7 +76,7 @@ No authorization required
<a name="createuserswitharrayinput"></a> <a name="createuserswitharrayinput"></a>
# **CreateUsersWithArrayInput** # **CreateUsersWithArrayInput**
> void CreateUsersWithArrayInput (List<User> user) > void CreateUsersWithArrayInput (List<User> body)
Creates list of users with given input array Creates list of users with given input array
@ -95,12 +95,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); 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 try
{ {
// Creates list of users with given input array // Creates list of users with given input array
apiInstance.CreateUsersWithArrayInput(user); apiInstance.CreateUsersWithArrayInput(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -115,7 +115,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -134,7 +134,7 @@ No authorization required
<a name="createuserswithlistinput"></a> <a name="createuserswithlistinput"></a>
# **CreateUsersWithListInput** # **CreateUsersWithListInput**
> void CreateUsersWithListInput (List<User> user) > void CreateUsersWithListInput (List<User> body)
Creates list of users with given input array Creates list of users with given input array
@ -153,12 +153,12 @@ namespace Example
public void main() public void main()
{ {
var apiInstance = new UserApi(); 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 try
{ {
// Creates list of users with given input array // Creates list of users with given input array
apiInstance.CreateUsersWithListInput(user); apiInstance.CreateUsersWithListInput(body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -173,7 +173,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -426,7 +426,7 @@ No authorization required
<a name="updateuser"></a> <a name="updateuser"></a>
# **UpdateUser** # **UpdateUser**
> void UpdateUser (string username, User user) > void UpdateUser (string username, User body)
Updated user Updated user
@ -448,12 +448,12 @@ namespace Example
{ {
var apiInstance = new UserApi(); var apiInstance = new UserApi();
var username = username_example; // string | name that need to be deleted 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 try
{ {
// Updated user // Updated user
apiInstance.UpdateUser(username, user); apiInstance.UpdateUser(username, body);
} }
catch (Exception e) catch (Exception e)
{ {
@ -469,7 +469,7 @@ namespace Example
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **string**| name that need to be deleted | **username** | **string**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ModelClient</returns>
ModelClient Call123TestSpecialTags (ModelClient modelClient); ModelClient Call123TestSpecialTags (ModelClient body);
/// <summary> /// <summary>
/// To test special tags /// To test special tags
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> Call123TestSpecialTagsWithHttpInfo (ModelClient body);
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> Call123TestSpecialTagsAsync (ModelClient body);
/// <summary> /// <summary>
/// To test special tags /// To test special tags
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
/// To test special tags and operation ID starting with number /// To test special tags and operation ID starting with number
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 #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 /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; 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 /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient modelClient) public ApiResponse< ModelClient > Call123TestSpecialTagsWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
var localVarPath = "/another-fake/dummy"; var localVarPath = "/another-fake/dummy";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; 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 /// To test special tags To test special tags and operation ID starting with number
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); throw new ApiException(400, "Missing required parameter 'body' when calling AnotherFakeApi->Call123TestSpecialTags");
var localVarPath = "/another-fake/dummy"; var localVarPath = "/another-fake/dummy";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -300,13 +300,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = modelClient; // byte array localVarPostBody = body; // byte array
} }

View File

@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>OuterComposite</returns>
OuterComposite FakeOuterCompositeSerialize (OuterComposite outerComposite = null); OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of OuterComposite</returns>
ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null); ApiResponse<OuterComposite> FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -115,9 +115,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass); void TestBodyWithFileSchema (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
@ -126,9 +126,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass fileSchemaTestClass); ApiResponse<Object> TestBodyWithFileSchemaWithHttpInfo (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -137,9 +137,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
void TestBodyWithQueryParams (string query, User user); void TestBodyWithQueryParams (string query, User body);
/// <summary> /// <summary>
/// ///
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User user); ApiResponse<Object> TestBodyWithQueryParamsWithHttpInfo (string query, User body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </summary> /// </summary>
@ -159,9 +159,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ModelClient</returns>
ModelClient TestClientModel (ModelClient modelClient); ModelClient TestClientModel (ModelClient body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
@ -170,9 +170,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> TestClientModelWithHttpInfo (ModelClient body);
/// <summary> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/// </summary> /// </summary>
@ -293,9 +293,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void TestInlineAdditionalProperties (Dictionary<string, string> requestBody); void TestInlineAdditionalProperties (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
@ -304,9 +304,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> requestBody); ApiResponse<Object> TestInlineAdditionalPropertiesWithHttpInfo (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test json serialization of form data /// test json serialization of form data
/// </summary> /// </summary>
@ -360,9 +360,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of OuterComposite</returns>
System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite outerComposite = null); System.Threading.Tasks.Task<OuterComposite> FakeOuterCompositeSerializeAsync (OuterComposite body = null);
/// <summary> /// <summary>
/// ///
@ -371,9 +371,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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>
/// ///
/// </summary> /// </summary>
@ -423,9 +423,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass fileSchemaTestClass); System.Threading.Tasks.Task TestBodyWithFileSchemaAsync (FileSchemaTestClass body);
/// <summary> /// <summary>
/// ///
@ -434,9 +434,9 @@ namespace Org.OpenAPITools.Api
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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>
/// ///
/// </summary> /// </summary>
@ -445,9 +445,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User user); System.Threading.Tasks.Task TestBodyWithQueryParamsAsync (string query, User body);
/// <summary> /// <summary>
/// ///
@ -457,9 +457,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <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> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </summary> /// </summary>
@ -467,9 +467,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> TestClientModelAsync (ModelClient body);
/// <summary> /// <summary>
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
@ -478,9 +478,9 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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> /// <summary>
/// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
/// </summary> /// </summary>
@ -601,9 +601,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> requestBody); System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync (Dictionary<string, string> param);
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
@ -612,9 +612,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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> /// <summary>
/// test json serialization of form data /// test json serialization of form data
/// </summary> /// </summary>
@ -894,11 +894,11 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -906,9 +906,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of OuterComposite</returns>
public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite outerComposite = null) public ApiResponse< OuterComposite > FakeOuterCompositeSerializeWithHttpInfo (OuterComposite body = null)
{ {
var localVarPath = "/fake/outer/composite"; var localVarPath = "/fake/outer/composite";
@ -932,13 +932,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -977,9 +977,9 @@ namespace Org.OpenAPITools.Api
/// Test serialization of object with outer number type /// Test serialization of object with outer number type
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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"; var localVarPath = "/fake/outer/composite";
@ -1003,13 +1003,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileSchemaTestClass"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
public void TestBodyWithFileSchema (FileSchemaTestClass fileSchemaTestClass) public void TestBodyWithFileSchema (FileSchemaTestClass body)
{ {
TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); TestBodyWithFileSchemaWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// For this test, the body for this request much reference a schema named &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
var localVarPath = "/fake/body-with-file-schema"; var localVarPath = "/fake/body-with-file-schema";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1357,13 +1357,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 &#x60;File&#x60;. /// For this test, the body for this request much reference a schema named &#x60;File&#x60;.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithFileSchema");
var localVarPath = "/fake/body-with-file-schema"; var localVarPath = "/fake/body-with-file-schema";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1430,13 +1430,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = fileSchemaTestClass; // byte array localVarPostBody = body; // byte array
} }
@ -1463,11 +1463,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns></returns> /// <returns></returns>
public void TestBodyWithQueryParams (string query, User user) public void TestBodyWithQueryParams (string query, User body)
{ {
TestBodyWithQueryParamsWithHttpInfo(query, user); TestBodyWithQueryParamsWithHttpInfo(query, body);
} }
/// <summary> /// <summary>
@ -1475,16 +1475,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>ApiResponse of Object(void)</returns> /// <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 // verify the required parameter 'query' is set
if (query == null) if (query == null)
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
var localVarPath = "/fake/body-with-query-params"; var localVarPath = "/fake/body-with-query-params";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1508,13 +1508,13 @@ namespace Org.OpenAPITools.Api
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter 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 else
{ {
localVarPostBody = user; // byte array localVarPostBody = body; // byte array
} }
@ -1541,11 +1541,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of void</returns> /// <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> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="query"></param> /// <param name="query"></param>
/// <param name="user"></param> /// <param name="body"></param>
/// <returns>Task of ApiResponse</returns> /// <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 // verify the required parameter 'query' is set
if (query == null) if (query == null)
throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams"); throw new ApiException(400, "Missing required parameter 'query' when calling FakeApi->TestBodyWithQueryParams");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestBodyWithQueryParams");
var localVarPath = "/fake/body-with-query-params"; var localVarPath = "/fake/body-with-query-params";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1587,13 +1587,13 @@ namespace Org.OpenAPITools.Api
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (query != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "query", query)); // query parameter 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 else
{ {
localVarPostBody = user; // byte array localVarPostBody = body; // byte array
} }
@ -1619,11 +1619,11 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -1631,13 +1631,13 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient modelClient) public ApiResponse< ModelClient > TestClientModelWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
var localVarPath = "/fake"; var localVarPath = "/fake";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1661,13 +1661,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = modelClient; // byte array localVarPostBody = body; // byte array
} }
@ -1693,11 +1693,11 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -1706,13 +1706,13 @@ namespace Org.OpenAPITools.Api
/// To test \&quot;client\&quot; model To test \&quot;client\&quot; model /// To test \&quot;client\&quot; model To test \&quot;client\&quot; model
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeApi->TestClientModel");
var localVarPath = "/fake"; var localVarPath = "/fake";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1736,13 +1736,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = modelClient; // byte array localVarPostBody = body; // byte array
} }
@ -2345,24 +2345,24 @@ namespace Org.OpenAPITools.Api
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void TestInlineAdditionalProperties (Dictionary<string, string> requestBody) public void TestInlineAdditionalProperties (Dictionary<string, string> param)
{ {
TestInlineAdditionalPropertiesWithHttpInfo(requestBody); TestInlineAdditionalPropertiesWithHttpInfo(param);
} }
/// <summary> /// <summary>
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'param' is set
if (requestBody == null) if (param == null)
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
var localVarPath = "/fake/inline-additionalProperties"; var localVarPath = "/fake/inline-additionalProperties";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -2385,13 +2385,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = requestBody; // byte array localVarPostBody = param; // byte array
} }
@ -2417,11 +2417,11 @@ namespace Org.OpenAPITools.Api
/// test inline additionalProperties /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 /// test inline additionalProperties
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'param' is set
if (requestBody == null) if (param == null)
throw new ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); throw new ApiException(400, "Missing required parameter 'param' when calling FakeApi->TestInlineAdditionalProperties");
var localVarPath = "/fake/inline-additionalProperties"; var localVarPath = "/fake/inline-additionalProperties";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -2458,13 +2458,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = requestBody; // byte array localVarPostBody = param; // byte array
} }

View File

@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ModelClient</returns>
ModelClient TestClassname (ModelClient modelClient); ModelClient TestClassname (ModelClient body);
/// <summary> /// <summary>
/// To test class name in snake case /// To test class name in snake case
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient modelClient); ApiResponse<ModelClient> TestClassnameWithHttpInfo (ModelClient body);
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@ -54,9 +54,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ModelClient</returns>
System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient modelClient); System.Threading.Tasks.Task<ModelClient> TestClassnameAsync (ModelClient body);
/// <summary> /// <summary>
/// To test class name in snake case /// To test class name in snake case
@ -65,9 +65,9 @@ namespace Org.OpenAPITools.Api
/// To test class name in snake case /// To test class name in snake case
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 #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 /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; 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 /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of ModelClient</returns>
public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient modelClient) public ApiResponse< ModelClient > TestClassnameWithHttpInfo (ModelClient body)
{ {
// verify the required parameter 'modelClient' is set // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
var localVarPath = "/fake_classname_test"; var localVarPath = "/fake_classname_test";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -225,13 +225,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = modelClient; // byte array localVarPostBody = body; // byte array
} }
// authentication (api_key_query) required // 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 /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; 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 /// To test class name in snake case To test class name in snake case
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (modelClient == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); throw new ApiException(400, "Missing required parameter 'body' when calling FakeClassnameTags123Api->TestClassname");
var localVarPath = "/fake_classname_test"; var localVarPath = "/fake_classname_test";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -305,13 +305,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = modelClient; // byte array localVarPostBody = body; // byte array
} }
// authentication (api_key_query) required // authentication (api_key_query) required

View File

@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void AddPet (Pet pet); void AddPet (Pet body);
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> AddPetWithHttpInfo (Pet pet); ApiResponse<Object> AddPetWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
/// </summary> /// </summary>
@ -138,9 +138,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void UpdatePet (Pet pet); void UpdatePet (Pet body);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
@ -149,9 +149,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdatePetWithHttpInfo (Pet pet); ApiResponse<Object> UpdatePetWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
/// </summary> /// </summary>
@ -236,9 +236,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task AddPetAsync (Pet pet); System.Threading.Tasks.Task AddPetAsync (Pet body);
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
@ -247,9 +247,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet pet); System.Threading.Tasks.Task<ApiResponse<Object>> AddPetAsyncWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Deletes a pet /// Deletes a pet
/// </summary> /// </summary>
@ -343,9 +343,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdatePetAsync (Pet pet); System.Threading.Tasks.Task UpdatePetAsync (Pet body);
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
@ -354,9 +354,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet pet); System.Threading.Tasks.Task<ApiResponse<Object>> UpdatePetAsyncWithHttpInfo (Pet body);
/// <summary> /// <summary>
/// Updates a pet in the store with form data /// Updates a pet in the store with form data
/// </summary> /// </summary>
@ -547,24 +547,24 @@ namespace Org.OpenAPITools.Api
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void AddPet (Pet pet) public void AddPet (Pet body)
{ {
AddPetWithHttpInfo(pet); AddPetWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -588,13 +588,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = pet; // byte array localVarPostBody = body; // byte array
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
@ -626,11 +626,11 @@ namespace Org.OpenAPITools.Api
/// Add a new pet to the store /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 /// Add a new pet to the store
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->AddPet");
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -668,13 +668,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = pet; // byte array localVarPostBody = body; // byte array
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
@ -1292,24 +1292,24 @@ namespace Org.OpenAPITools.Api
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void UpdatePet (Pet pet) public void UpdatePet (Pet body)
{ {
UpdatePetWithHttpInfo(pet); UpdatePetWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1333,13 +1333,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = pet; // byte array localVarPostBody = body; // byte array
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required
@ -1371,11 +1371,11 @@ namespace Org.OpenAPITools.Api
/// Update an existing pet /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 /// Update an existing pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (pet == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); throw new ApiException(400, "Missing required parameter 'body' when calling PetApi->UpdatePet");
var localVarPath = "/pet"; var localVarPath = "/pet";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1413,13 +1413,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = pet; // byte array localVarPostBody = body; // byte array
} }
// authentication (petstore_auth) required // authentication (petstore_auth) required

View File

@ -92,9 +92,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Order</returns>
Order PlaceOrder (Order order); Order PlaceOrder (Order body);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
@ -103,9 +103,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Order</returns>
ApiResponse<Order> PlaceOrderWithHttpInfo (Order order); ApiResponse<Order> PlaceOrderWithHttpInfo (Order body);
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@ -176,9 +176,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of Order</returns>
System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order order); System.Threading.Tasks.Task<Order> PlaceOrderAsync (Order body);
/// <summary> /// <summary>
/// Place an order for a pet /// Place an order for a pet
@ -187,9 +187,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 #endregion Asynchronous Operations
} }
@ -700,11 +700,11 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -712,13 +712,13 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Order</returns>
public ApiResponse< Order > PlaceOrderWithHttpInfo (Order order) public ApiResponse< Order > PlaceOrderWithHttpInfo (Order body)
{ {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
var localVarPath = "/store/order"; var localVarPath = "/store/order";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -742,13 +742,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = order; // byte array localVarPostBody = body; // byte array
} }
@ -774,11 +774,11 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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; return localVarResponse.Data;
} }
@ -787,13 +787,13 @@ namespace Org.OpenAPITools.Api
/// Place an order for a pet /// Place an order for a pet
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (order == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); throw new ApiException(400, "Missing required parameter 'body' when calling StoreApi->PlaceOrder");
var localVarPath = "/store/order"; var localVarPath = "/store/order";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -817,13 +817,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = order; // byte array localVarPostBody = body; // byte array
} }

View File

@ -31,9 +31,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void CreateUser (User user); void CreateUser (User body);
/// <summary> /// <summary>
/// Create user /// Create user
@ -42,9 +42,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUserWithHttpInfo (User user); ApiResponse<Object> CreateUserWithHttpInfo (User body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -52,9 +52,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void CreateUsersWithArrayInput (List<User> user); void CreateUsersWithArrayInput (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -63,9 +63,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> user); ApiResponse<Object> CreateUsersWithArrayInputWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -73,9 +73,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
void CreateUsersWithListInput (List<User> user); void CreateUsersWithListInput (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -84,9 +84,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> user); ApiResponse<Object> CreateUsersWithListInputWithHttpInfo (List<User> body);
/// <summary> /// <summary>
/// Delete user /// Delete user
/// </summary> /// </summary>
@ -179,9 +179,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns></returns> /// <returns></returns>
void UpdateUser (string username, User user); void UpdateUser (string username, User body);
/// <summary> /// <summary>
/// Updated user /// Updated user
@ -191,9 +191,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> UpdateUserWithHttpInfo (string username, User user); ApiResponse<Object> UpdateUserWithHttpInfo (string username, User body);
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
@ -203,9 +203,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUserAsync (User user); System.Threading.Tasks.Task CreateUserAsync (User body);
/// <summary> /// <summary>
/// Create user /// Create user
@ -214,9 +214,9 @@ namespace Org.OpenAPITools.Api
/// This can only be done by the logged in user. /// This can only be done by the logged in user.
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User user); System.Threading.Tasks.Task<ApiResponse<Object>> CreateUserAsyncWithHttpInfo (User body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -224,9 +224,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> user); System.Threading.Tasks.Task CreateUsersWithArrayInputAsync (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -235,9 +235,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
@ -245,9 +245,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> user); System.Threading.Tasks.Task CreateUsersWithListInputAsync (List<User> body);
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
@ -256,9 +256,9 @@ namespace Org.OpenAPITools.Api
/// ///
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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> /// <summary>
/// Delete user /// Delete user
/// </summary> /// </summary>
@ -351,9 +351,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <returns>Task of void</returns>
System.Threading.Tasks.Task UpdateUserAsync (string username, User user); System.Threading.Tasks.Task UpdateUserAsync (string username, User body);
/// <summary> /// <summary>
/// Updated user /// Updated user
@ -363,9 +363,9 @@ namespace Org.OpenAPITools.Api
/// </remarks> /// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <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 #endregion Asynchronous Operations
} }
@ -481,24 +481,24 @@ namespace Org.OpenAPITools.Api
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void CreateUser (User user) public void CreateUser (User body)
{ {
CreateUserWithHttpInfo(user); CreateUserWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Create user This can only be done by the logged in user. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
var localVarPath = "/user"; var localVarPath = "/user";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -520,13 +520,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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. /// Create user This can only be done by the logged in user.
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUser");
var localVarPath = "/user"; var localVarPath = "/user";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -592,13 +592,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void CreateUsersWithArrayInput (List<User> user) public void CreateUsersWithArrayInput (List<User> body)
{ {
CreateUsersWithArrayInputWithHttpInfo(user); CreateUsersWithArrayInputWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
var localVarPath = "/user/createWithArray"; var localVarPath = "/user/createWithArray";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -663,13 +663,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithArrayInput");
var localVarPath = "/user/createWithArray"; var localVarPath = "/user/createWithArray";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -735,13 +735,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <returns></returns>
public void CreateUsersWithListInput (List<User> user) public void CreateUsersWithListInput (List<User> body)
{ {
CreateUsersWithListInputWithHttpInfo(user); CreateUsersWithListInputWithHttpInfo(body);
} }
/// <summary> /// <summary>
/// Creates list of users with given input array /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
var localVarPath = "/user/createWithList"; var localVarPath = "/user/createWithList";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -806,13 +806,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 /// Creates list of users with given input array
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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> /// <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 // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->CreateUsersWithListInput");
var localVarPath = "/user/createWithList"; var localVarPath = "/user/createWithList";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -878,13 +878,13 @@ namespace Org.OpenAPITools.Api
if (localVarHttpHeaderAccept != null) if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 else
{ {
localVarPostBody = user; // byte array localVarPostBody = body; // byte array
} }
@ -1439,11 +1439,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="username">name that need to be deleted</param>
/// <param name="user">Updated user object</param> /// <param name="body">Updated user object</param>
/// <returns></returns> /// <returns></returns>
public void UpdateUser (string username, User user) public void UpdateUser (string username, User body)
{ {
UpdateUserWithHttpInfo(username, user); UpdateUserWithHttpInfo(username, body);
} }
/// <summary> /// <summary>
@ -1451,16 +1451,16 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <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 // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser"); throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1483,13 +1483,13 @@ namespace Org.OpenAPITools.Api
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter 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 else
{ {
localVarPostBody = user; // byte array localVarPostBody = body; // byte array
} }
@ -1516,11 +1516,11 @@ namespace Org.OpenAPITools.Api
/// </summary> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <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> /// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception> /// <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="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> /// <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 // verify the required parameter 'username' is set
if (username == null) if (username == null)
throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser"); throw new ApiException(400, "Missing required parameter 'username' when calling UserApi->UpdateUser");
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) if (body == null)
throw new ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); throw new ApiException(400, "Missing required parameter 'body' when calling UserApi->UpdateUser");
var localVarPath = "/user/{username}"; var localVarPath = "/user/{username}";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -1561,13 +1561,13 @@ namespace Org.OpenAPITools.Api
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (username != null) localVarPathParams.Add("username", this.Configuration.ApiClient.ParameterToString(username)); // path parameter 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 else
{ {
localVarPostBody = user; // byte array localVarPostBody = body; // byte array
} }

View File

@ -42,6 +42,7 @@ paths:
summary: Add a new pet to the store summary: Add a new pet to the store
tags: tags:
- pet - pet
x-codegen-request-body-name: body
put: put:
operationId: updatePet operationId: updatePet
requestBody: requestBody:
@ -71,6 +72,7 @@ paths:
summary: Update an existing pet summary: Update an existing pet
tags: tags:
- pet - pet
x-codegen-request-body-name: body
/pet/findByStatus: /pet/findByStatus:
get: get:
description: Multiple status values can be provided with comma separated strings description: Multiple status values can be provided with comma separated strings
@ -327,6 +329,7 @@ paths:
summary: Place an order for a pet summary: Place an order for a pet
tags: tags:
- store - store
x-codegen-request-body-name: body
/store/order/{order_id}: /store/order/{order_id}:
delete: delete:
description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors 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 summary: Create user
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/createWithArray: /user/createWithArray:
post: post:
operationId: createUsersWithArrayInput operationId: createUsersWithArrayInput
@ -417,6 +421,7 @@ paths:
summary: Creates list of users with given input array summary: Creates list of users with given input array
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/createWithList: /user/createWithList:
post: post:
operationId: createUsersWithListInput operationId: createUsersWithListInput
@ -436,6 +441,7 @@ paths:
summary: Creates list of users with given input array summary: Creates list of users with given input array
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/login: /user/login:
get: get:
operationId: loginUser operationId: loginUser
@ -565,6 +571,7 @@ paths:
summary: Updated user summary: Updated user
tags: tags:
- user - user
x-codegen-request-body-name: body
/fake_classname_test: /fake_classname_test:
patch: patch:
description: To test class name in snake case description: To test class name in snake case
@ -588,6 +595,7 @@ paths:
summary: To test class name in snake case summary: To test class name in snake case
tags: tags:
- fake_classname_tags 123#$%^ - fake_classname_tags 123#$%^
x-codegen-request-body-name: body
/fake: /fake:
delete: delete:
description: Fake endpoint to test group parameters (optional) description: Fake endpoint to test group parameters (optional)
@ -756,6 +764,7 @@ paths:
summary: To test "client" model summary: To test "client" model
tags: tags:
- fake - fake
x-codegen-request-body-name: body
post: post:
description: | description: |
Fake endpoint for testing various parameters Fake endpoint for testing various parameters
@ -874,6 +883,7 @@ paths:
description: Output number description: Output number
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/string: /fake/outer/string:
post: post:
description: Test serialization of outer string types description: Test serialization of outer string types
@ -894,6 +904,7 @@ paths:
description: Output string description: Output string
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/boolean: /fake/outer/boolean:
post: post:
description: Test serialization of outer boolean types description: Test serialization of outer boolean types
@ -914,6 +925,7 @@ paths:
description: Output boolean description: Output boolean
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/composite: /fake/outer/composite:
post: post:
description: Test serialization of object with outer number type description: Test serialization of object with outer number type
@ -934,6 +946,7 @@ paths:
description: Output composite description: Output composite
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/jsonFormData: /fake/jsonFormData:
get: get:
operationId: testJsonFormData operationId: testJsonFormData
@ -978,6 +991,7 @@ paths:
summary: test inline additionalProperties summary: test inline additionalProperties
tags: tags:
- fake - fake
x-codegen-request-body-name: param
/fake/body-with-query-params: /fake/body-with-query-params:
put: put:
operationId: testBodyWithQueryParams operationId: testBodyWithQueryParams
@ -999,6 +1013,7 @@ paths:
description: Success description: Success
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/another-fake/dummy: /another-fake/dummy:
patch: patch:
description: To test special tags and operation ID starting with number description: To test special tags and operation ID starting with number
@ -1020,6 +1035,7 @@ paths:
summary: To test special tags summary: To test special tags
tags: tags:
- $another-fake? - $another-fake?
x-codegen-request-body-name: body
/fake/body-with-file-schema: /fake/body-with-file-schema:
put: put:
description: For this test, the body for this request much reference a schema named `File`. description: For this test, the body for this request much reference a schema named `File`.
@ -1036,6 +1052,7 @@ paths:
description: Success description: Success
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/{petId}/uploadImageWithRequiredFile: /fake/{petId}/uploadImageWithRequiredFile:
post: post:
operationId: uploadFileWithRequiredFile operationId: uploadFileWithRequiredFile

View File

@ -28,10 +28,10 @@ type AnotherFakeApiService service
AnotherFakeApiService To test special tags AnotherFakeApiService To test special tags
To test special tags and operation ID starting with number 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 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 @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 ( var (
localVarHttpMethod = strings.ToUpper("Patch") localVarHttpMethod = strings.ToUpper("Patch")
localVarPostBody interface{} localVarPostBody interface{}
@ -66,7 +66,7 @@ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, clie
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &client localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return localVarReturnValue, nil, err return localVarReturnValue, nil, err

View File

@ -129,12 +129,12 @@ FakeApiService
Test serialization of object with outer number type 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 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 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 @return OuterComposite
*/ */
type FakeOuterCompositeSerializeOpts struct { type FakeOuterCompositeSerializeOpts struct {
OuterComposite optional.Interface Body optional.Interface
} }
func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error) { 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 localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
if localVarOptionals != nil && localVarOptionals.OuterComposite.IsSet() { if localVarOptionals != nil && localVarOptionals.Body.IsSet() {
localVarOptionalOuterComposite, localVarOptionalOuterCompositeok := localVarOptionals.OuterComposite.Value().(OuterComposite) localVarOptionalBody, localVarOptionalBodyok := localVarOptionals.Body.Value().(OuterComposite)
if !localVarOptionalOuterCompositeok { if !localVarOptionalBodyok {
return localVarReturnValue, nil, reportError("outerComposite should be OuterComposite") 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) 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 FakeApiService
For this test, the body for this request much reference a schema named &#x60;File&#x60;. For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @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 ( var (
localVarHttpMethod = strings.ToUpper("Put") localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{} localVarPostBody interface{}
@ -462,7 +462,7 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &fileSchemaTestClass localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err
@ -494,9 +494,9 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, fileSchemaT
FakeApiService FakeApiService
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param query * @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 ( var (
localVarHttpMethod = strings.ToUpper("Put") localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{} localVarPostBody interface{}
@ -531,7 +531,7 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &user localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err
@ -563,10 +563,10 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query stri
FakeApiService To test \"client\" model FakeApiService To test \"client\" model
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @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 @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 ( var (
localVarHttpMethod = strings.ToUpper("Patch") localVarHttpMethod = strings.ToUpper("Patch")
localVarPostBody interface{} localVarPostBody interface{}
@ -601,7 +601,7 @@ func (a *FakeApiService) TestClientModel(ctx context.Context, client Client) (Cl
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &client localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return localVarReturnValue, nil, err return localVarReturnValue, nil, err
@ -1004,9 +1004,9 @@ func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredString
/* /*
FakeApiService test inline additionalProperties FakeApiService test inline additionalProperties
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -1040,7 +1040,7 @@ func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, req
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &requestBody localVarPostBody = &param
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@ -28,10 +28,10 @@ type FakeClassnameTags123ApiService service
FakeClassnameTags123ApiService To test class name in snake case FakeClassnameTags123ApiService To test class name in snake case
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 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 @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 ( var (
localVarHttpMethod = strings.ToUpper("Patch") localVarHttpMethod = strings.ToUpper("Patch")
localVarPostBody interface{} localVarPostBody interface{}
@ -66,7 +66,7 @@ func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, clie
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &client localVarPostBody = &body
if ctx != nil { if ctx != nil {
// API Key Authentication // API Key Authentication
if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {

View File

@ -30,9 +30,9 @@ type PetApiService service
/* /*
PetApiService Add a new pet to the store 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 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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -66,7 +66,7 @@ func (a *PetApiService) AddPet(ctx context.Context, pet Pet) (*http.Response, er
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &pet localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err
@ -450,9 +450,9 @@ func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http
/* /*
PetApiService Update an existing pet PetApiService Update an existing pet
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @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 ( var (
localVarHttpMethod = strings.ToUpper("Put") localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{} localVarPostBody interface{}
@ -486,7 +486,7 @@ func (a *PetApiService) UpdatePet(ctx context.Context, pet Pet) (*http.Response,
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &pet localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@ -288,10 +288,10 @@ func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Orde
/* /*
StoreApiService Place an order for a pet 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 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 @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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -326,7 +326,7 @@ func (a *StoreApiService) PlaceOrder(ctx context.Context, order Order) (Order, *
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &order localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return localVarReturnValue, nil, err return localVarReturnValue, nil, err

View File

@ -29,9 +29,9 @@ type UserApiService service
UserApiService Create user UserApiService Create user
This can only be done by the logged in 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 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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -65,7 +65,7 @@ func (a *UserApiService) CreateUser(ctx context.Context, user User) (*http.Respo
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &user localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err 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 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 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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -132,7 +132,7 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, user []U
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &user localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err 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 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 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 ( var (
localVarHttpMethod = strings.ToUpper("Post") localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{} localVarPostBody interface{}
@ -199,7 +199,7 @@ func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, user []Us
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &user localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err
@ -539,9 +539,9 @@ UserApiService Updated user
This can only be done by the logged in 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 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 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 ( var (
localVarHttpMethod = strings.ToUpper("Put") localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{} localVarPostBody interface{}
@ -576,7 +576,7 @@ func (a *UserApiService) UpdateUser(ctx context.Context, username string, user U
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
} }
// body params // body params
localVarPostBody = &user localVarPostBody = &body
r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
if err != nil { if err != nil {
return nil, err return nil, err

View File

@ -8,7 +8,7 @@ Method | HTTP request | Description
# **Call123TestSpecialTags** # **Call123TestSpecialTags**
> Client Call123TestSpecialTags(ctx, client) > Client Call123TestSpecialTags(ctx, body)
To test special tags To test special tags
To test special tags and operation ID starting with number 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 Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### Return type

View File

@ -71,7 +71,7 @@ Optional parameters are passed through a pointer to a FakeOuterCompositeSerializ
Name | Type | Description | Notes 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 ### 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) [[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**
> TestBodyWithFileSchema(ctx, fileSchemaTestClass) > TestBodyWithFileSchema(ctx, body)
For this test, the body for this request much reference a schema named `File`. 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 Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### 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) [[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**
> TestBodyWithQueryParams(ctx, query, user) > TestBodyWithQueryParams(ctx, query, body)
### Required Parameters ### Required Parameters
@ -196,7 +196,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**query** | **string**| | **query** | **string**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### 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) [[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** # **TestClientModel**
> Client TestClientModel(ctx, client) > Client TestClientModel(ctx, body)
To test \"client\" model To test \"client\" model
To test \"client\" model To test \"client\" model
@ -224,7 +224,7 @@ To test \"client\" model
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### 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) [[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**
> TestInlineAdditionalProperties(ctx, requestBody) > TestInlineAdditionalProperties(ctx, param)
test inline additionalProperties test inline additionalProperties
### Required Parameters ### Required Parameters
@ -387,7 +387,7 @@ test inline additionalProperties
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### Return type

View File

@ -8,7 +8,7 @@ Method | HTTP request | Description
# **TestClassname** # **TestClassname**
> Client TestClassname(ctx, client) > Client TestClassname(ctx, body)
To test class name in snake case To test class name in snake case
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 Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
# **AddPet** # **AddPet**
> AddPet(ctx, pet) > AddPet(ctx, body)
Add a new pet to the store Add a new pet to the store
### Required Parameters ### Required Parameters
@ -24,7 +24,7 @@ Add a new pet to the store
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### 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) [[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**
> UpdatePet(ctx, pet) > UpdatePet(ctx, body)
Update an existing pet Update an existing pet
### Required Parameters ### Required Parameters
@ -169,7 +169,7 @@ Update an existing pet
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### Return type

View File

@ -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) [[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** # **PlaceOrder**
> Order PlaceOrder(ctx, order) > Order PlaceOrder(ctx, body)
Place an order for a pet Place an order for a pet
### Required Parameters ### Required Parameters
@ -99,7 +99,7 @@ Place an order for a pet
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### Return type

View File

@ -15,7 +15,7 @@ Method | HTTP request | Description
# **CreateUser** # **CreateUser**
> CreateUser(ctx, user) > CreateUser(ctx, body)
Create user Create user
This can only be done by the logged in 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 Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### 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) [[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**
> CreateUsersWithArrayInput(ctx, user) > CreateUsersWithArrayInput(ctx, body)
Creates list of users with given input array Creates list of users with given input array
### Required Parameters ### Required Parameters
@ -51,7 +51,7 @@ Creates list of users with given input array
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### 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) [[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**
> CreateUsersWithListInput(ctx, user) > CreateUsersWithListInput(ctx, body)
Creates list of users with given input array Creates list of users with given input array
### Required Parameters ### Required Parameters
@ -77,7 +77,7 @@ Creates list of users with given input array
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **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 ### 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) [[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**
> UpdateUser(ctx, username, user) > UpdateUser(ctx, username, body)
Updated user Updated user
This can only be done by the logged in 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. **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**username** | **string**| name that need to be deleted | **username** | **string**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -67,15 +67,15 @@ import qualified Prelude as P
-- --
op123testSpecialTags op123testSpecialTags
:: (Consumes Op123testSpecialTags MimeJSON, MimeRender MimeJSON Client) :: (Consumes Op123testSpecialTags MimeJSON, MimeRender MimeJSON Client)
=> Client -- ^ "client" - client model => Client -- ^ "body" - client model
-> OpenAPIPetstoreRequest Op123testSpecialTags MimeJSON Client MimeJSON -> OpenAPIPetstoreRequest Op123testSpecialTags MimeJSON Client MimeJSON
op123testSpecialTags client = op123testSpecialTags body =
_mkRequest "PATCH" ["/another-fake/dummy"] _mkRequest "PATCH" ["/another-fake/dummy"]
`setBodyParam` client `setBodyParam` body
data Op123testSpecialTags data Op123testSpecialTags
-- | /Body Param/ "Client" - client model -- | /Body Param/ "body" - client model
instance HasBodyParam Op123testSpecialTags Client instance HasBodyParam Op123testSpecialTags Client
-- | @application/json@ -- | @application/json@

View File

@ -96,7 +96,7 @@ fakeOuterCompositeSerialize _ _ =
data FakeOuterCompositeSerialize data FakeOuterCompositeSerialize
-- | /Body Param/ "OuterComposite" - Input composite as post body -- | /Body Param/ "body" - Input composite as post body
instance HasBodyParam FakeOuterCompositeSerialize OuterComposite instance HasBodyParam FakeOuterCompositeSerialize OuterComposite
-- | @*/*@ -- | @*/*@
@ -120,7 +120,7 @@ fakeOuterNumberSerialize _ _ =
data FakeOuterNumberSerialize data FakeOuterNumberSerialize
-- | /Body Param/ "body" - Input number as post body -- | /Body Param/ "body" - Input number as post body
instance HasBodyParam FakeOuterNumberSerialize Body instance HasBodyParam FakeOuterNumberSerialize BodyDouble
-- | @*/*@ -- | @*/*@
instance MimeType mtype => Produces FakeOuterNumberSerialize mtype instance MimeType mtype => Produces FakeOuterNumberSerialize mtype
@ -157,11 +157,11 @@ instance MimeType mtype => Produces FakeOuterStringSerialize mtype
-- --
testBodyWithFileSchema testBodyWithFileSchema
:: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass) :: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass)
=> FileSchemaTestClass -- ^ "fileSchemaTestClass" => FileSchemaTestClass -- ^ "body"
-> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent -> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent
testBodyWithFileSchema fileSchemaTestClass = testBodyWithFileSchema body =
_mkRequest "PUT" ["/fake/body-with-file-schema"] _mkRequest "PUT" ["/fake/body-with-file-schema"]
`setBodyParam` fileSchemaTestClass `setBodyParam` body
data TestBodyWithFileSchema data TestBodyWithFileSchema
instance HasBodyParam TestBodyWithFileSchema FileSchemaTestClass instance HasBodyParam TestBodyWithFileSchema FileSchemaTestClass
@ -178,12 +178,12 @@ instance Produces TestBodyWithFileSchema MimeNoContent
-- --
testBodyWithQueryParams testBodyWithQueryParams
:: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User) :: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User)
=> User -- ^ "user" => User -- ^ "body"
-> Query -- ^ "query" -> Query -- ^ "query"
-> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent -> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent
testBodyWithQueryParams user (Query query) = testBodyWithQueryParams body (Query query) =
_mkRequest "PUT" ["/fake/body-with-query-params"] _mkRequest "PUT" ["/fake/body-with-query-params"]
`setBodyParam` user `setBodyParam` body
`setQuery` toQuery ("query", Just query) `setQuery` toQuery ("query", Just query)
data TestBodyWithQueryParams data TestBodyWithQueryParams
@ -205,15 +205,15 @@ instance Produces TestBodyWithQueryParams MimeNoContent
-- --
testClientModel testClientModel
:: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) :: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client)
=> Client -- ^ "client" - client model => Client -- ^ "body" - client model
-> OpenAPIPetstoreRequest TestClientModel MimeJSON Client MimeJSON -> OpenAPIPetstoreRequest TestClientModel MimeJSON Client MimeJSON
testClientModel client = testClientModel body =
_mkRequest "PATCH" ["/fake"] _mkRequest "PATCH" ["/fake"]
`setBodyParam` client `setBodyParam` body
data TestClientModel data TestClientModel
-- | /Body Param/ "Client" - client model -- | /Body Param/ "body" - client model
instance HasBodyParam TestClientModel Client instance HasBodyParam TestClientModel Client
-- | @application/json@ -- | @application/json@
@ -414,17 +414,17 @@ instance Produces TestGroupParameters MimeNoContent
-- test inline additionalProperties -- test inline additionalProperties
-- --
testInlineAdditionalProperties testInlineAdditionalProperties
:: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON RequestBody) :: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON ParamMapMapStringText)
=> RequestBody -- ^ "requestBody" - request body => ParamMapMapStringText -- ^ "param" - request body
-> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent -> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent
testInlineAdditionalProperties requestBody = testInlineAdditionalProperties param =
_mkRequest "POST" ["/fake/inline-additionalProperties"] _mkRequest "POST" ["/fake/inline-additionalProperties"]
`setBodyParam` requestBody `setBodyParam` param
data TestInlineAdditionalProperties data TestInlineAdditionalProperties
-- | /Body Param/ "request_body" - request body -- | /Body Param/ "param" - request body
instance HasBodyParam TestInlineAdditionalProperties RequestBody instance HasBodyParam TestInlineAdditionalProperties ParamMapMapStringText
-- | @application/json@ -- | @application/json@
instance Consumes TestInlineAdditionalProperties MimeJSON instance Consumes TestInlineAdditionalProperties MimeJSON

View File

@ -69,16 +69,16 @@ import qualified Prelude as P
-- --
testClassname testClassname
:: (Consumes TestClassname MimeJSON, MimeRender MimeJSON Client) :: (Consumes TestClassname MimeJSON, MimeRender MimeJSON Client)
=> Client -- ^ "client" - client model => Client -- ^ "body" - client model
-> OpenAPIPetstoreRequest TestClassname MimeJSON Client MimeJSON -> OpenAPIPetstoreRequest TestClassname MimeJSON Client MimeJSON
testClassname client = testClassname body =
_mkRequest "PATCH" ["/fake_classname_test"] _mkRequest "PATCH" ["/fake_classname_test"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyApiKeyQuery) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyApiKeyQuery)
`setBodyParam` client `setBodyParam` body
data TestClassname data TestClassname
-- | /Body Param/ "Client" - client model -- | /Body Param/ "body" - client model
instance HasBodyParam TestClassname Client instance HasBodyParam TestClassname Client
-- | @application/json@ -- | @application/json@

View File

@ -68,16 +68,16 @@ import qualified Prelude as P
addPet addPet
:: (Consumes AddPet contentType, MimeRender contentType Pet) :: (Consumes AddPet contentType, MimeRender contentType Pet)
=> ContentType contentType -- ^ request content-type ('MimeType') => 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 -> OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent
addPet _ pet = addPet _ body =
_mkRequest "POST" ["/pet"] _mkRequest "POST" ["/pet"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth)
`setBodyParam` pet `setBodyParam` body
data AddPet 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 instance HasBodyParam AddPet Pet
-- | @application/xml@ -- | @application/xml@
@ -204,16 +204,16 @@ instance Produces GetPetById MimeJSON
updatePet updatePet
:: (Consumes UpdatePet contentType, MimeRender contentType Pet) :: (Consumes UpdatePet contentType, MimeRender contentType Pet)
=> ContentType contentType -- ^ request content-type ('MimeType') => 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 -> OpenAPIPetstoreRequest UpdatePet contentType NoContent MimeNoContent
updatePet _ pet = updatePet _ body =
_mkRequest "PUT" ["/pet"] _mkRequest "PUT" ["/pet"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthOAuthPetstoreAuth)
`setBodyParam` pet `setBodyParam` body
data UpdatePet 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 instance HasBodyParam UpdatePet Pet
-- | @application/xml@ -- | @application/xml@

View File

@ -131,15 +131,15 @@ placeOrder
:: (Consumes PlaceOrder contentType, MimeRender contentType Order) :: (Consumes PlaceOrder contentType, MimeRender contentType Order)
=> ContentType contentType -- ^ request content-type ('MimeType') => ContentType contentType -- ^ request content-type ('MimeType')
-> Accept accept -- ^ request accept ('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 -> OpenAPIPetstoreRequest PlaceOrder contentType Order accept
placeOrder _ _ order = placeOrder _ _ body =
_mkRequest "POST" ["/store/order"] _mkRequest "POST" ["/store/order"]
`setBodyParam` order `setBodyParam` body
data PlaceOrder data PlaceOrder
-- | /Body Param/ "Order" - order placed for purchasing the pet -- | /Body Param/ "body" - order placed for purchasing the pet
instance HasBodyParam PlaceOrder Order instance HasBodyParam PlaceOrder Order
-- | @application/xml@ -- | @application/xml@

View File

@ -68,15 +68,15 @@ import qualified Prelude as P
createUser createUser
:: (Consumes CreateUser contentType, MimeRender contentType User) :: (Consumes CreateUser contentType, MimeRender contentType User)
=> ContentType contentType -- ^ request content-type ('MimeType') => ContentType contentType -- ^ request content-type ('MimeType')
-> User -- ^ "user" - Created user object -> User -- ^ "body" - Created user object
-> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent -> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent
createUser _ user = createUser _ body =
_mkRequest "POST" ["/user"] _mkRequest "POST" ["/user"]
`setBodyParam` user `setBodyParam` body
data CreateUser data CreateUser
-- | /Body Param/ "User" - Created user object -- | /Body Param/ "body" - Created user object
instance HasBodyParam CreateUser User instance HasBodyParam CreateUser User
instance Produces CreateUser MimeNoContent instance Produces CreateUser MimeNoContent
@ -89,18 +89,18 @@ instance Produces CreateUser MimeNoContent
-- Creates list of users with given input array -- Creates list of users with given input array
-- --
createUsersWithArrayInput createUsersWithArrayInput
:: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType User2) :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body)
=> ContentType contentType -- ^ request content-type ('MimeType') => ContentType contentType -- ^ request content-type ('MimeType')
-> User2 -- ^ "user" - List of user object -> Body -- ^ "body" - List of user object
-> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent -> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent
createUsersWithArrayInput _ user = createUsersWithArrayInput _ body =
_mkRequest "POST" ["/user/createWithArray"] _mkRequest "POST" ["/user/createWithArray"]
`setBodyParam` user `setBodyParam` body
data CreateUsersWithArrayInput data CreateUsersWithArrayInput
-- | /Body Param/ "User" - List of user object -- | /Body Param/ "body" - List of user object
instance HasBodyParam CreateUsersWithArrayInput User2 instance HasBodyParam CreateUsersWithArrayInput Body
instance Produces CreateUsersWithArrayInput MimeNoContent instance Produces CreateUsersWithArrayInput MimeNoContent
@ -112,18 +112,18 @@ instance Produces CreateUsersWithArrayInput MimeNoContent
-- Creates list of users with given input array -- Creates list of users with given input array
-- --
createUsersWithListInput createUsersWithListInput
:: (Consumes CreateUsersWithListInput contentType, MimeRender contentType User2) :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body)
=> ContentType contentType -- ^ request content-type ('MimeType') => ContentType contentType -- ^ request content-type ('MimeType')
-> User2 -- ^ "user" - List of user object -> Body -- ^ "body" - List of user object
-> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent -> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent
createUsersWithListInput _ user = createUsersWithListInput _ body =
_mkRequest "POST" ["/user/createWithList"] _mkRequest "POST" ["/user/createWithList"]
`setBodyParam` user `setBodyParam` body
data CreateUsersWithListInput data CreateUsersWithListInput
-- | /Body Param/ "User" - List of user object -- | /Body Param/ "body" - List of user object
instance HasBodyParam CreateUsersWithListInput User2 instance HasBodyParam CreateUsersWithListInput Body
instance Produces CreateUsersWithListInput MimeNoContent instance Produces CreateUsersWithListInput MimeNoContent
@ -219,16 +219,16 @@ instance Produces LogoutUser MimeNoContent
updateUser updateUser
:: (Consumes UpdateUser contentType, MimeRender contentType User) :: (Consumes UpdateUser contentType, MimeRender contentType User)
=> ContentType contentType -- ^ request content-type ('MimeType') => ContentType contentType -- ^ request content-type ('MimeType')
-> User -- ^ "user" - Updated user object -> User -- ^ "body" - Updated user object
-> Username -- ^ "username" - name that need to be deleted -> Username -- ^ "username" - name that need to be deleted
-> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent -> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent
updateUser _ user (Username username) = updateUser _ body (Username username) =
_mkRequest "PUT" ["/user/",toPath username] _mkRequest "PUT" ["/user/",toPath username]
`setBodyParam` user `setBodyParam` body
data UpdateUser data UpdateUser
-- | /Body Param/ "User" - Updated user object -- | /Body Param/ "body" - Updated user object
instance HasBodyParam UpdateUser User instance HasBodyParam UpdateUser User
instance Produces UpdateUser MimeNoContent instance Produces UpdateUser MimeNoContent

View File

@ -73,11 +73,14 @@ newtype AdditionalMetadata = AdditionalMetadata { unAdditionalMetadata :: Text }
newtype ApiKey = ApiKey { unApiKey :: Text } deriving (P.Eq, P.Show) newtype ApiKey = ApiKey { unApiKey :: Text } deriving (P.Eq, P.Show)
-- ** Body -- ** 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 -- ** BodyBool
newtype BodyBool = BodyBool { unBodyBool :: Bool } deriving (P.Eq, P.Show, A.ToJSON) 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 -- ** BodyText
newtype BodyText = BodyText { unBodyText :: Text } deriving (P.Eq, P.Show, A.ToJSON) 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 -- ** ParamInteger
newtype ParamInteger = ParamInteger { unParamInteger :: Int } deriving (P.Eq, P.Show) 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 -- ** ParamString
newtype ParamString = ParamString { unParamString :: Text } deriving (P.Eq, P.Show) 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 -- ** Query
newtype Query = Query { unQuery :: Text } deriving (P.Eq, P.Show) 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 -- ** RequiredBooleanGroup
newtype RequiredBooleanGroup = RequiredBooleanGroup { unRequiredBooleanGroup :: Bool } deriving (P.Eq, P.Show) 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 -- ** Tags
newtype Tags = Tags { unTags :: [Text] } deriving (P.Eq, P.Show) newtype Tags = Tags { unTags :: [Text] } deriving (P.Eq, P.Show)
-- ** User2
newtype User2 = User2 { unUser2 :: [User] } deriving (P.Eq, P.Show, A.ToJSON)
-- ** Username -- ** Username
newtype Username = Username { unUsername :: Text } deriving (P.Eq, P.Show) newtype Username = Username { unUsername :: Text } deriving (P.Eq, P.Show)

View File

@ -42,6 +42,7 @@ paths:
summary: Add a new pet to the store summary: Add a new pet to the store
tags: tags:
- pet - pet
x-codegen-request-body-name: body
put: put:
operationId: updatePet operationId: updatePet
requestBody: requestBody:
@ -71,6 +72,7 @@ paths:
summary: Update an existing pet summary: Update an existing pet
tags: tags:
- pet - pet
x-codegen-request-body-name: body
/pet/findByStatus: /pet/findByStatus:
get: get:
description: Multiple status values can be provided with comma separated strings description: Multiple status values can be provided with comma separated strings
@ -327,6 +329,7 @@ paths:
summary: Place an order for a pet summary: Place an order for a pet
tags: tags:
- store - store
x-codegen-request-body-name: body
/store/order/{order_id}: /store/order/{order_id}:
delete: delete:
description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors 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 summary: Create user
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/createWithArray: /user/createWithArray:
post: post:
operationId: createUsersWithArrayInput operationId: createUsersWithArrayInput
@ -417,6 +421,7 @@ paths:
summary: Creates list of users with given input array summary: Creates list of users with given input array
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/createWithList: /user/createWithList:
post: post:
operationId: createUsersWithListInput operationId: createUsersWithListInput
@ -436,6 +441,7 @@ paths:
summary: Creates list of users with given input array summary: Creates list of users with given input array
tags: tags:
- user - user
x-codegen-request-body-name: body
/user/login: /user/login:
get: get:
operationId: loginUser operationId: loginUser
@ -565,6 +571,7 @@ paths:
summary: Updated user summary: Updated user
tags: tags:
- user - user
x-codegen-request-body-name: body
/fake_classname_test: /fake_classname_test:
patch: patch:
description: To test class name in snake case description: To test class name in snake case
@ -588,6 +595,7 @@ paths:
summary: To test class name in snake case summary: To test class name in snake case
tags: tags:
- fake_classname_tags 123#$%^ - fake_classname_tags 123#$%^
x-codegen-request-body-name: body
/fake: /fake:
delete: delete:
description: Fake endpoint to test group parameters (optional) description: Fake endpoint to test group parameters (optional)
@ -756,6 +764,7 @@ paths:
summary: To test "client" model summary: To test "client" model
tags: tags:
- fake - fake
x-codegen-request-body-name: body
post: post:
description: | description: |
Fake endpoint for testing various parameters Fake endpoint for testing various parameters
@ -874,6 +883,7 @@ paths:
description: Output number description: Output number
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/string: /fake/outer/string:
post: post:
description: Test serialization of outer string types description: Test serialization of outer string types
@ -894,6 +904,7 @@ paths:
description: Output string description: Output string
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/boolean: /fake/outer/boolean:
post: post:
description: Test serialization of outer boolean types description: Test serialization of outer boolean types
@ -914,6 +925,7 @@ paths:
description: Output boolean description: Output boolean
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/outer/composite: /fake/outer/composite:
post: post:
description: Test serialization of object with outer number type description: Test serialization of object with outer number type
@ -934,6 +946,7 @@ paths:
description: Output composite description: Output composite
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/jsonFormData: /fake/jsonFormData:
get: get:
operationId: testJsonFormData operationId: testJsonFormData
@ -978,6 +991,7 @@ paths:
summary: test inline additionalProperties summary: test inline additionalProperties
tags: tags:
- fake - fake
x-codegen-request-body-name: param
/fake/body-with-query-params: /fake/body-with-query-params:
put: put:
operationId: testBodyWithQueryParams operationId: testBodyWithQueryParams
@ -999,6 +1013,7 @@ paths:
description: Success description: Success
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/another-fake/dummy: /another-fake/dummy:
patch: patch:
description: To test special tags and operation ID starting with number description: To test special tags and operation ID starting with number
@ -1020,6 +1035,7 @@ paths:
summary: To test special tags summary: To test special tags
tags: tags:
- $another-fake? - $another-fake?
x-codegen-request-body-name: body
/fake/body-with-file-schema: /fake/body-with-file-schema:
put: put:
description: For this test, the body for this request much reference a schema named `File`. description: For this test, the body for this request much reference a schema named `File`.
@ -1036,6 +1052,7 @@ paths:
description: Success description: Success
tags: tags:
- fake - fake
x-codegen-request-body-name: body
/fake/{petId}/uploadImageWithRequiredFile: /fake/{petId}/uploadImageWithRequiredFile:
post: post:
operationId: uploadFileWithRequiredFile operationId: uploadFileWithRequiredFile

View File

@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
*/ */
@RequestLine("PATCH /another-fake/dummy") @RequestLine("PATCH /another-fake/dummy")
@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client call123testSpecialTags(Client client); Client call123testSpecialTags(Client body);
} }

View File

@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* *
* Test serialization of object with outer number type * 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 * @return OuterComposite
*/ */
@RequestLine("POST /fake/outer/composite") @RequestLine("POST /fake/outer/composite")
@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: */*", "Content-Type: */*",
"Accept: */*", "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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
*/ */
@RequestLine("PUT /fake/body-with-file-schema") @RequestLine("PUT /fake/body-with-file-schema")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); void testBodyWithFileSchema(FileSchemaTestClass body);
/** /**
* *
* *
* @param query (required) * @param query (required)
* @param user (required) * @param body (required)
*/ */
@RequestLine("PUT /fake/body-with-query-params?query={query}") @RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: 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 * is convenient for services with optional query parameters, especially when
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for * used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
* building up this map in a fluent style. * building up this map in a fluent style.
* @param user (required) * @param body (required)
* @param queryParams Map of query parameters as name-value pairs * @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p> * <p>The following elements may be specified in the query map:</p>
* <ul> * <ul>
@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: 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 * A convenience class for generating query parameters for the
@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
*/ */
@RequestLine("PATCH /fake") @RequestLine("PATCH /fake")
@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client testClientModel(Client client); Client testClientModel(Client body);
/** /**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
*/ */
@RequestLine("POST /fake/inline-additionalProperties") @RequestLine("POST /fake/inline-additionalProperties")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void testInlineAdditionalProperties(Map<String, String> requestBody); void testInlineAdditionalProperties(Map<String, String> param);
/** /**
* test json serialization of form data * test json serialization of form data

View File

@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
/** /**
* To test class name in snake case * To test class name in snake case
* 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 * @return Client
*/ */
@RequestLine("PATCH /fake_classname_test") @RequestLine("PATCH /fake_classname_test")
@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client testClassname(Client client); Client testClassname(Client body);
} }

View File

@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
/** /**
* Add a new pet to the store * 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") @RequestLine("POST /pet")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void addPet(Pet pet); void addPet(Pet body);
/** /**
* Deletes a pet * Deletes a pet
@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
/** /**
* Update an existing pet * 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") @RequestLine("PUT /pet")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void updatePet(Pet pet); void updatePet(Pet body);
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data

View File

@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
/** /**
* Place an order for a pet * 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 * @return Order
*/ */
@RequestLine("POST /store/order") @RequestLine("POST /store/order")
@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
Order placeOrder(Order order); Order placeOrder(Order body);
} }

View File

@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
/** /**
* Create user * Create user
* This can only be done by the logged in 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") @RequestLine("POST /user")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUser(User user); void createUser(User body);
/** /**
* Creates list of users with given input array * 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") @RequestLine("POST /user/createWithArray")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUsersWithArrayInput(List<User> user); void createUsersWithArrayInput(List<User> body);
/** /**
* Creates list of users with given input array * 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") @RequestLine("POST /user/createWithList")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUsersWithListInput(List<User> user); void createUsersWithListInput(List<User> body);
/** /**
* Delete user * Delete user
@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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}") @RequestLine("PUT /user/{username}")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void updateUser(@Param("username") String username, User user); void updateUser(@Param("username") String username, User body);
} }

View File

@ -18,7 +18,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
*/ */
@RequestLine("PATCH /another-fake/dummy") @RequestLine("PATCH /another-fake/dummy")
@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client call123testSpecialTags(Client client); Client call123testSpecialTags(Client body);
} }

View File

@ -38,7 +38,7 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* *
* Test serialization of object with outer number type * 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 * @return OuterComposite
*/ */
@RequestLine("POST /fake/outer/composite") @RequestLine("POST /fake/outer/composite")
@ -46,7 +46,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: */*", "Content-Type: */*",
"Accept: */*", "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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
*/ */
@RequestLine("PUT /fake/body-with-file-schema") @RequestLine("PUT /fake/body-with-file-schema")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); void testBodyWithFileSchema(FileSchemaTestClass body);
/** /**
* *
* *
* @param query (required) * @param query (required)
* @param user (required) * @param body (required)
*/ */
@RequestLine("PUT /fake/body-with-query-params?query={query}") @RequestLine("PUT /fake/body-with-query-params?query={query}")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: 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 * is convenient for services with optional query parameters, especially when
* used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for * used with the {@link TestBodyWithQueryParamsQueryParams} class that allows for
* building up this map in a fluent style. * building up this map in a fluent style.
* @param user (required) * @param body (required)
* @param queryParams Map of query parameters as name-value pairs * @param queryParams Map of query parameters as name-value pairs
* <p>The following elements may be specified in the query map:</p> * <p>The following elements may be specified in the query map:</p>
* <ul> * <ul>
@ -119,7 +119,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: 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 * A convenience class for generating query parameters for the
@ -135,7 +135,7 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
*/ */
@RequestLine("PATCH /fake") @RequestLine("PATCH /fake")
@ -143,7 +143,7 @@ public interface FakeApi extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client testClientModel(Client client); Client testClientModel(Client body);
/** /**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -319,14 +319,14 @@ public interface FakeApi extends ApiClient.Api {
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
*/ */
@RequestLine("POST /fake/inline-additionalProperties") @RequestLine("POST /fake/inline-additionalProperties")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void testInlineAdditionalProperties(Map<String, String> requestBody); void testInlineAdditionalProperties(Map<String, String> param);
/** /**
* test json serialization of form data * test json serialization of form data

View File

@ -18,7 +18,7 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
/** /**
* To test class name in snake case * To test class name in snake case
* 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 * @return Client
*/ */
@RequestLine("PATCH /fake_classname_test") @RequestLine("PATCH /fake_classname_test")
@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
Client testClassname(Client client); Client testClassname(Client body);
} }

View File

@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
/** /**
* Add a new pet to the store * 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") @RequestLine("POST /pet")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void addPet(Pet pet); void addPet(Pet body);
/** /**
* Deletes a pet * Deletes a pet
@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
/** /**
* Update an existing pet * 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") @RequestLine("PUT /pet")
@Headers({ @Headers({
"Content-Type: application/json", "Content-Type: application/json",
"Accept: application/json", "Accept: application/json",
}) })
void updatePet(Pet pet); void updatePet(Pet body);
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data

View File

@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
/** /**
* Place an order for a pet * 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 * @return Order
*/ */
@RequestLine("POST /store/order") @RequestLine("POST /store/order")
@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
Order placeOrder(Order order); Order placeOrder(Order body);
} }

View File

@ -18,38 +18,38 @@ public interface UserApi extends ApiClient.Api {
/** /**
* Create user * Create user
* This can only be done by the logged in 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") @RequestLine("POST /user")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUser(User user); void createUser(User body);
/** /**
* Creates list of users with given input array * 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") @RequestLine("POST /user/createWithArray")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUsersWithArrayInput(List<User> user); void createUsersWithArrayInput(List<User> body);
/** /**
* Creates list of users with given input array * 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") @RequestLine("POST /user/createWithList")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void createUsersWithListInput(List<User> user); void createUsersWithListInput(List<User> body);
/** /**
* Delete user * Delete user
@ -138,12 +138,12 @@ public interface UserApi extends ApiClient.Api {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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}") @RequestLine("PUT /user/{username}")
@Headers({ @Headers({
"Content-Type: */*", "Content-Type: */*",
"Accept: application/json", "Accept: application/json",
}) })
void updateUser(@Param("username") String username, User user); void updateUser(@Param("username") String username, User body);
} }

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a> <a name="call123testSpecialTags"></a>
# **call123testSpecialTags** # **call123testSpecialTags**
> Client call123testSpecialTags(client) > Client call123testSpecialTags(body)
To test special tags To test special tags
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi(); AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(client); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite) > OuterComposite fakeOuterCompositeSerialize(body)
@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi(); 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 { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a> <a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema** # **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(body)
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace(); e.printStackTrace();
@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a> <a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams** # **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, body)
@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String | String query = "query_example"; // String |
User user = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, user); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace(); e.printStackTrace();
@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(client) > Client testClientModel(body)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(client); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -524,7 +524,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi(); 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 { try {
apiInstance.testInlineAdditionalProperties(requestBody); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace(); e.printStackTrace();
@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body | **param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(client) > Client testClassname(body)
To test class name in snake case To test class name in snake case
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token"); //api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(client); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(pet) > addPet(body)
Add a new pet to the store 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"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.addPet(pet); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace(); e.printStackTrace();
@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(pet) > updatePet(body)
Update an existing pet Update an existing pet
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.updatePet(pet); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace(); e.printStackTrace();
@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -152,7 +152,7 @@ No authorization required
<a name="placeOrder"></a> <a name="placeOrder"></a>
# **placeOrder** # **placeOrder**
> Order placeOrder(order) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
@ -164,9 +164,9 @@ Place an order for a pet
StoreApi apiInstance = new StoreApi(); 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 { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");
@ -178,7 +178,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a> <a name="createUser"></a>
# **createUser** # **createUser**
> createUser(user) > createUser(body)
Create user Create user
@ -30,9 +30,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(user); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace(); e.printStackTrace();
@ -43,7 +43,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -60,7 +60,7 @@ No authorization required
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput** # **createUsersWithArrayInput**
> createUsersWithArrayInput(user) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -72,9 +72,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithArrayInput(user); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace(); e.printStackTrace();
@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -102,7 +102,7 @@ No authorization required
<a name="createUsersWithListInput"></a> <a name="createUsersWithListInput"></a>
# **createUsersWithListInput** # **createUsersWithListInput**
> createUsersWithListInput(user) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -114,9 +114,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithListInput(user); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace(); e.printStackTrace();
@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -314,7 +314,7 @@ No authorization required
<a name="updateUser"></a> <a name="updateUser"></a>
# **updateUser** # **updateUser**
> updateUser(username, user) > updateUser(username, body)
Updated user Updated user
@ -329,9 +329,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted 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 { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace(); e.printStackTrace();
@ -343,7 +343,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -44,12 +44,12 @@ public class AnotherFakeApi {
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation * <p><b>200</b> - successful operation
* @param client client model * @param body client model
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client call123testSpecialTags(Client client) throws IOException { public Client call123testSpecialTags(Client body) throws IOException {
HttpResponse response = call123testSpecialTagsForHttpResponse(client); HttpResponse response = call123testSpecialTagsForHttpResponse(body);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
@ -58,51 +58,51 @@ public class AnotherFakeApi {
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation * <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. * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client call123testSpecialTags(Client client, Map<String, Object> params) throws IOException { public Client call123testSpecialTags(Client body, Map<String, Object> params) throws IOException {
HttpResponse response = call123testSpecialTagsForHttpResponse(client, params); HttpResponse response = call123testSpecialTagsForHttpResponse(body, params);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
public HttpResponse call123testSpecialTagsForHttpResponse(Client client) throws IOException { public HttpResponse call123testSpecialTagsForHttpResponse(Client body) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = client == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse call123testSpecialTagsForHttpResponse(Client client, Map<String, Object> params) throws IOException { public HttpResponse call123testSpecialTagsForHttpResponse(Client body, Map<String, Object> params) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling call123testSpecialTags");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
@ -127,7 +127,7 @@ public class AnotherFakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }

View File

@ -130,12 +130,12 @@ public class FakeApi {
/** /**
* Test serialization of object with outer number type * Test serialization of object with outer number type
* <p><b>200</b> - Output composite * <p><b>200</b> - Output composite
* @param outerComposite Input composite as post body * @param body Input composite as post body
* @return OuterComposite * @return OuterComposite
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws IOException { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws IOException {
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite); HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body);
TypeReference typeRef = new TypeReference<OuterComposite>() {}; TypeReference typeRef = new TypeReference<OuterComposite>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
@ -147,37 +147,37 @@ public class FakeApi {
* @return OuterComposite * @return OuterComposite
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite, Map<String, Object> params) throws IOException { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body, Map<String, Object> params) throws IOException {
HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite, params); HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body, params);
TypeReference typeRef = new TypeReference<OuterComposite>() {}; TypeReference typeRef = new TypeReference<OuterComposite>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); 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"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = outerComposite == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); 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"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
@ -202,7 +202,7 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* <p><b>200</b> - Success * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws IOException { public void testBodyWithFileSchema(FileSchemaTestClass body) throws IOException {
testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass); testBodyWithFileSchemaForHttpResponse(body);
} }
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* <p><b>200</b> - Success * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Map<String, Object> params) throws IOException { public void testBodyWithFileSchema(FileSchemaTestClass body, Map<String, Object> params) throws IOException {
testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass, params); testBodyWithFileSchemaForHttpResponse(body, params);
} }
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass) throws IOException { public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body) throws IOException {
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream fileSchemaTestClass, String mediaType) throws IOException { public HttpResponse testBodyWithFileSchemaForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = fileSchemaTestClass == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass fileSchemaTestClass, Map<String, Object> params) throws IOException { public HttpResponse testBodyWithFileSchemaForHttpResponse(FileSchemaTestClass body, Map<String, Object> params) throws IOException {
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-file-schema");
@ -446,7 +446,7 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
@ -454,31 +454,31 @@ public class FakeApi {
/** /**
* <p><b>200</b> - Success * <p><b>200</b> - Success
* @param query The query parameter * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void testBodyWithQueryParams(String query, User user) throws IOException { public void testBodyWithQueryParams(String query, User body) throws IOException {
testBodyWithQueryParamsForHttpResponse(query, user); testBodyWithQueryParamsForHttpResponse(query, body);
} }
/** /**
* <p><b>200</b> - Success * <p><b>200</b> - Success
* @param query The query parameter * @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. * @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 * @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 { public void testBodyWithQueryParams(String query, User body, Map<String, Object> params) throws IOException {
testBodyWithQueryParamsForHttpResponse(query, user, params); 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 // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
if (query != null) { if (query != null) {
@ -496,17 +496,17 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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 // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
if (query != null) { if (query != null) {
@ -524,19 +524,19 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = user == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); 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 // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
@ -563,7 +563,7 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
@ -572,12 +572,12 @@ public class FakeApi {
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* <p><b>200</b> - successful operation * <p><b>200</b> - successful operation
* @param client client model * @param body client model
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client testClientModel(Client client) throws IOException { public Client testClientModel(Client body) throws IOException {
HttpResponse response = testClientModelForHttpResponse(client); HttpResponse response = testClientModelForHttpResponse(body);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
@ -586,51 +586,51 @@ public class FakeApi {
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* <p><b>200</b> - successful operation * <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. * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client testClientModel(Client client, Map<String, Object> params) throws IOException { public Client testClientModel(Client body, Map<String, Object> params) throws IOException {
HttpResponse response = testClientModelForHttpResponse(client, params); HttpResponse response = testClientModelForHttpResponse(body, params);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
public HttpResponse testClientModelForHttpResponse(Client client) throws IOException { public HttpResponse testClientModelForHttpResponse(Client body) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse testClientModelForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { public HttpResponse testClientModelForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = client == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse testClientModelForHttpResponse(Client client, Map<String, Object> params) throws IOException { public HttpResponse testClientModelForHttpResponse(Client body, Map<String, Object> params) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClientModel"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClientModel");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake");
@ -655,7 +655,7 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
@ -1016,58 +1016,58 @@ public class FakeApi {
/** /**
* test inline additionalProperties * test inline additionalProperties
* <p><b>200</b> - successful operation * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws IOException { public void testInlineAdditionalProperties(Map<String, String> param) throws IOException {
testInlineAdditionalPropertiesForHttpResponse(requestBody); testInlineAdditionalPropertiesForHttpResponse(param);
} }
/** /**
* test inline additionalProperties * test inline additionalProperties
* <p><b>200</b> - successful operation * <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. * @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 * @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 { public void testInlineAdditionalProperties(Map<String, String> param, Map<String, Object> params) throws IOException {
testInlineAdditionalPropertiesForHttpResponse(requestBody, params); testInlineAdditionalPropertiesForHttpResponse(param, params);
} }
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> requestBody) throws IOException { public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> param) throws IOException {
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream requestBody, String mediaType) throws IOException { public HttpResponse testInlineAdditionalPropertiesForHttpResponse(java.io.InputStream param, String mediaType) throws IOException {
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = requestBody == null ? HttpContent content = param == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> requestBody, Map<String, Object> params) throws IOException { public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map<String, String> param, Map<String, Object> params) throws IOException {
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new IllegalArgumentException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new IllegalArgumentException("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/inline-additionalProperties");
@ -1092,7 +1092,7 @@ public class FakeApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }

View File

@ -44,12 +44,12 @@ public class FakeClassnameTags123Api {
* To test class name in snake case * To test class name in snake case
* To test class name in snake case * To test class name in snake case
* <p><b>200</b> - successful operation * <p><b>200</b> - successful operation
* @param client client model * @param body client model
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client testClassname(Client client) throws IOException { public Client testClassname(Client body) throws IOException {
HttpResponse response = testClassnameForHttpResponse(client); HttpResponse response = testClassnameForHttpResponse(body);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); 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
* To test class name in snake case * To test class name in snake case
* <p><b>200</b> - successful operation * <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. * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @return Client * @return Client
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Client testClassname(Client client, Map<String, Object> params) throws IOException { public Client testClassname(Client body, Map<String, Object> params) throws IOException {
HttpResponse response = testClassnameForHttpResponse(client, params); HttpResponse response = testClassnameForHttpResponse(body, params);
TypeReference typeRef = new TypeReference<Client>() {}; TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
public HttpResponse testClassnameForHttpResponse(Client client) throws IOException { public HttpResponse testClassnameForHttpResponse(Client body) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse testClassnameForHttpResponse(java.io.InputStream client, String mediaType) throws IOException { public HttpResponse testClassnameForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = client == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }
public HttpResponse testClassnameForHttpResponse(Client client, Map<String, Object> params) throws IOException { public HttpResponse testClassnameForHttpResponse(Client body, Map<String, Object> params) throws IOException {
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testClassname"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling testClassname");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake_classname_test");
@ -127,7 +127,7 @@ public class FakeClassnameTags123Api {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
} }

View File

@ -45,58 +45,58 @@ public class PetApi {
/** /**
* Add a new pet to the store * Add a new pet to the store
* <p><b>405</b> - Invalid input * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void addPet(Pet pet) throws IOException { public void addPet(Pet body) throws IOException {
addPetForHttpResponse(pet); addPetForHttpResponse(body);
} }
/** /**
* Add a new pet to the store * Add a new pet to the store
* <p><b>405</b> - Invalid input * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void addPet(Pet pet, Map<String, Object> params) throws IOException { public void addPet(Pet body, Map<String, Object> params) throws IOException {
addPetForHttpResponse(pet, params); addPetForHttpResponse(body, params);
} }
public HttpResponse addPetForHttpResponse(Pet pet) throws IOException { public HttpResponse addPetForHttpResponse(Pet body) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse addPetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException { public HttpResponse addPetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = pet == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse addPetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException { public HttpResponse addPetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
@ -121,7 +121,7 @@ public class PetApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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>400</b> - Invalid ID supplied
* <p><b>404</b> - Pet not found * <p><b>404</b> - Pet not found
* <p><b>405</b> - Validation exception * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void updatePet(Pet pet) throws IOException { public void updatePet(Pet body) throws IOException {
updatePetForHttpResponse(pet); updatePetForHttpResponse(body);
} }
/** /**
@ -486,48 +486,48 @@ public class PetApi {
* <p><b>400</b> - Invalid ID supplied * <p><b>400</b> - Invalid ID supplied
* <p><b>404</b> - Pet not found * <p><b>404</b> - Pet not found
* <p><b>405</b> - Validation exception * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void updatePet(Pet pet, Map<String, Object> params) throws IOException { public void updatePet(Pet body, Map<String, Object> params) throws IOException {
updatePetForHttpResponse(pet, params); updatePetForHttpResponse(body, params);
} }
public HttpResponse updatePetForHttpResponse(Pet pet) throws IOException { public HttpResponse updatePetForHttpResponse(Pet body) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
public HttpResponse updatePetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException { public HttpResponse updatePetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = pet == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }
public HttpResponse updatePetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException { public HttpResponse updatePetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
@ -552,7 +552,7 @@ public class PetApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }

View File

@ -276,12 +276,12 @@ public class StoreApi {
* Place an order for a pet * Place an order for a pet
* <p><b>200</b> - successful operation * <p><b>200</b> - successful operation
* <p><b>400</b> - Invalid Order * <p><b>400</b> - Invalid Order
* @param order order placed for purchasing the pet * @param body order placed for purchasing the pet
* @return Order * @return Order
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Order placeOrder(Order order) throws IOException { public Order placeOrder(Order body) throws IOException {
HttpResponse response = placeOrderForHttpResponse(order); HttpResponse response = placeOrderForHttpResponse(body);
TypeReference typeRef = new TypeReference<Order>() {}; TypeReference typeRef = new TypeReference<Order>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
@ -290,51 +290,51 @@ public class StoreApi {
* Place an order for a pet * Place an order for a pet
* <p><b>200</b> - successful operation * <p><b>200</b> - successful operation
* <p><b>400</b> - Invalid Order * <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. * @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @return Order * @return Order
* @throws IOException if an error occurs while attempting to invoke the API * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public Order placeOrder(Order order, Map<String, Object> params) throws IOException { public Order placeOrder(Order body, Map<String, Object> params) throws IOException {
HttpResponse response = placeOrderForHttpResponse(order, params); HttpResponse response = placeOrderForHttpResponse(body, params);
TypeReference typeRef = new TypeReference<Order>() {}; TypeReference typeRef = new TypeReference<Order>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
} }
public HttpResponse placeOrderForHttpResponse(Order order) throws IOException { public HttpResponse placeOrderForHttpResponse(Order body) throws IOException {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse placeOrderForHttpResponse(java.io.InputStream order, String mediaType) throws IOException { public HttpResponse placeOrderForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = order == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse placeOrderForHttpResponse(Order order, Map<String, Object> params) throws IOException { public HttpResponse placeOrderForHttpResponse(Order body, Map<String, Object> params) throws IOException {
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'order' when calling placeOrder"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling placeOrder");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/store/order");
@ -359,7 +359,7 @@ public class StoreApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }

View File

@ -44,59 +44,59 @@ public class UserApi {
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* <p><b>0</b> - successful operation * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUser(User user) throws IOException { public void createUser(User body) throws IOException {
createUserForHttpResponse(user); createUserForHttpResponse(body);
} }
/** /**
* Create user * Create user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* <p><b>0</b> - successful operation * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUser(User user, Map<String, Object> params) throws IOException { public void createUser(User body, Map<String, Object> params) throws IOException {
createUserForHttpResponse(user, params); createUserForHttpResponse(body, params);
} }
public HttpResponse createUserForHttpResponse(User user) throws IOException { public HttpResponse createUserForHttpResponse(User body) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUserForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { public HttpResponse createUserForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = user == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUserForHttpResponse(User user, Map<String, Object> params) throws IOException { public HttpResponse createUserForHttpResponse(User body, Map<String, Object> params) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUser");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user");
@ -121,7 +121,7 @@ public class UserApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
@ -129,58 +129,58 @@ public class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* <p><b>0</b> - successful operation * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUsersWithArrayInput(List<User> user) throws IOException { public void createUsersWithArrayInput(List<User> body) throws IOException {
createUsersWithArrayInputForHttpResponse(user); createUsersWithArrayInputForHttpResponse(body);
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* <p><b>0</b> - successful operation * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUsersWithArrayInput(List<User> user, Map<String, Object> params) throws IOException { public void createUsersWithArrayInput(List<User> body, Map<String, Object> params) throws IOException {
createUsersWithArrayInputForHttpResponse(user, params); createUsersWithArrayInputForHttpResponse(body, params);
} }
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> user) throws IOException { public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> body) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { public HttpResponse createUsersWithArrayInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = user == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> user, Map<String, Object> params) throws IOException { public HttpResponse createUsersWithArrayInputForHttpResponse(List<User> body, Map<String, Object> params) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithArray");
@ -205,7 +205,7 @@ public class UserApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
@ -213,58 +213,58 @@ public class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* <p><b>0</b> - successful operation * <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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUsersWithListInput(List<User> user) throws IOException { public void createUsersWithListInput(List<User> body) throws IOException {
createUsersWithListInputForHttpResponse(user); createUsersWithListInputForHttpResponse(body);
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* <p><b>0</b> - successful operation * <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. * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void createUsersWithListInput(List<User> user, Map<String, Object> params) throws IOException { public void createUsersWithListInput(List<User> body, Map<String, Object> params) throws IOException {
createUsersWithListInputForHttpResponse(user, params); createUsersWithListInputForHttpResponse(body, params);
} }
public HttpResponse createUsersWithListInputForHttpResponse(List<User> user) throws IOException { public HttpResponse createUsersWithListInputForHttpResponse(List<User> body) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream user, String mediaType) throws IOException { public HttpResponse createUsersWithListInputForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = user == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
} }
public HttpResponse createUsersWithListInputForHttpResponse(List<User> user, Map<String, Object> params) throws IOException { public HttpResponse createUsersWithListInputForHttpResponse(List<User> body, Map<String, Object> params) throws IOException {
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling createUsersWithListInput"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling createUsersWithListInput");
} }
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList"); UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/user/createWithList");
@ -289,7 +289,7 @@ public class UserApi {
String url = uriBuilder.build().toString(); String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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>400</b> - Invalid user supplied
* <p><b>404</b> - User not found * <p><b>404</b> - User not found
* @param username name that need to be deleted * @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 * @throws IOException if an error occurs while attempting to invoke the API
**/ **/
public void updateUser(String username, User user) throws IOException { public void updateUser(String username, User body) throws IOException {
updateUserForHttpResponse(username, user); updateUserForHttpResponse(username, body);
} }
/** /**
@ -644,21 +644,21 @@ public class UserApi {
* <p><b>400</b> - Invalid user supplied * <p><b>400</b> - Invalid user supplied
* <p><b>404</b> - User not found * <p><b>404</b> - User not found
* @param username name that need to be deleted * @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. * @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 * @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 { public void updateUser(String username, User body, Map<String, Object> params) throws IOException {
updateUserForHttpResponse(username, user, params); 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 // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
} }
// create a map of path variables // create a map of path variables
final Map<String, Object> uriVariables = new HashMap<String, Object>(); final Map<String, Object> uriVariables = new HashMap<String, Object>();
@ -668,17 +668,17 @@ public class UserApi {
String url = uriBuilder.buildFromMap(uriVariables).toString(); String url = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); 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 // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
} }
// create a map of path variables // create a map of path variables
final Map<String, Object> uriVariables = new HashMap<String, Object>(); final Map<String, Object> uriVariables = new HashMap<String, Object>();
@ -688,19 +688,19 @@ public class UserApi {
String url = uriBuilder.buildFromMap(uriVariables).toString(); String url = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(url); GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = user == null ? HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(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(); 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 // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'username' when calling updateUser");
}// verify the required parameter 'user' is set }// verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'user' when calling updateUser"); throw new IllegalArgumentException("Missing the required parameter 'body' when calling updateUser");
} }
// create a map of path variables // create a map of path variables
final Map<String, Object> uriVariables = new HashMap<String, Object>(); final Map<String, Object> uriVariables = new HashMap<String, Object>();
@ -728,7 +728,7 @@ public class UserApi {
String url = uriBuilder.buildFromMap(uriVariables).toString(); String url = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(url); 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(); return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
} }

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a> <a name="call123testSpecialTags"></a>
# **call123testSpecialTags** # **call123testSpecialTags**
> Client call123testSpecialTags(client) > Client call123testSpecialTags(body)
To test special tags To test special tags
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi(); AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(client); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite) > OuterComposite fakeOuterCompositeSerialize(body)
@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi(); 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 { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a> <a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema** # **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(body)
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace(); e.printStackTrace();
@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a> <a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams** # **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, body)
@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String | String query = "query_example"; // String |
User user = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, user); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace(); e.printStackTrace();
@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(client) > Client testClientModel(body)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(client); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -524,7 +524,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi(); 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 { try {
apiInstance.testInlineAdditionalProperties(requestBody); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace(); e.printStackTrace();
@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body | **param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(client) > Client testClassname(body)
To test class name in snake case To test class name in snake case
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token"); //api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(client); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(pet) > addPet(body)
Add a new pet to the store 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"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.addPet(pet); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace(); e.printStackTrace();
@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(pet) > updatePet(body)
Update an existing pet Update an existing pet
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.updatePet(pet); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace(); e.printStackTrace();
@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -152,7 +152,7 @@ No authorization required
<a name="placeOrder"></a> <a name="placeOrder"></a>
# **placeOrder** # **placeOrder**
> Order placeOrder(order) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
@ -164,9 +164,9 @@ Place an order for a pet
StoreApi apiInstance = new StoreApi(); 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 { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");
@ -178,7 +178,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a> <a name="createUser"></a>
# **createUser** # **createUser**
> createUser(user) > createUser(body)
Create user Create user
@ -30,9 +30,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(user); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace(); e.printStackTrace();
@ -43,7 +43,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -60,7 +60,7 @@ No authorization required
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput** # **createUsersWithArrayInput**
> createUsersWithArrayInput(user) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -72,9 +72,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithArrayInput(user); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace(); e.printStackTrace();
@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -102,7 +102,7 @@ No authorization required
<a name="createUsersWithListInput"></a> <a name="createUsersWithListInput"></a>
# **createUsersWithListInput** # **createUsersWithListInput**
> createUsersWithListInput(user) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -114,9 +114,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithListInput(user); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace(); e.printStackTrace();
@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -314,7 +314,7 @@ No authorization required
<a name="updateUser"></a> <a name="updateUser"></a>
# **updateUser** # **updateUser**
> updateUser(username, user) > updateUser(username, body)
Updated user Updated user
@ -329,9 +329,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted 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 { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace(); e.printStackTrace();
@ -343,7 +343,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -51,16 +51,16 @@ public class AnotherFakeApi {
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client call123testSpecialTags(Client client) throws ApiException { public Client call123testSpecialTags(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
} }
// create path and map variables // create path and map variables

View File

@ -95,12 +95,12 @@ public class FakeApi {
/** /**
* *
* Test serialization of object with outer number type * 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 * @return OuterComposite
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
Object localVarPostBody = outerComposite; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/fake/outer/composite"; 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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException { public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
Object localVarPostBody = fileSchemaTestClass; Object localVarPostBody = body;
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
// create path and map variables // create path and map variables
@ -248,20 +248,20 @@ public class FakeApi {
* *
* *
* @param query (required) * @param query (required)
* @param user (required) * @param body (required)
* @throws ApiException if fails to make API call * @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 {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
// create path and map variables // create path and map variables
@ -295,16 +295,16 @@ public class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClientModel(Client client) throws ApiException { public Client testClientModel(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
} }
// create path and map variables // create path and map variables
@ -553,15 +553,15 @@ if (booleanGroup != null)
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
* @throws ApiException if fails to make API call * @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 {
Object localVarPostBody = requestBody; Object localVarPostBody = param;
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
// create path and map variables // create path and map variables

View File

@ -51,16 +51,16 @@ public class FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case
* 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 * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClassname(Client client) throws ApiException { public Client testClassname(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
} }
// create path and map variables // create path and map variables

View File

@ -53,15 +53,15 @@ public class PetApi {
/** /**
* Add a new pet to the store * 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 * @throws ApiException if fails to make API call
*/ */
public void addPet(Pet pet) throws ApiException { public void addPet(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
} }
// create path and map variables // create path and map variables
@ -270,15 +270,15 @@ public class PetApi {
/** /**
* Update an existing pet * 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 * @throws ApiException if fails to make API call
*/ */
public void updatePet(Pet pet) throws ApiException { public void updatePet(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
} }
// create path and map variables // create path and map variables

View File

@ -172,16 +172,16 @@ public class StoreApi {
/** /**
* Place an order for a pet * 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 * @return Order
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Order placeOrder(Order order) throws ApiException { public Order placeOrder(Order body) throws ApiException {
Object localVarPostBody = order; Object localVarPostBody = body;
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
} }
// create path and map variables // create path and map variables

View File

@ -51,15 +51,15 @@ public class UserApi {
/** /**
* Create user * Create user
* This can only be done by the logged in 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 * @throws ApiException if fails to make API call
*/ */
public void createUser(User user) throws ApiException { public void createUser(User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
} }
// create path and map variables // create path and map variables
@ -92,15 +92,15 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @throws ApiException if fails to make API call
*/ */
public void createUsersWithArrayInput(List<User> user) throws ApiException { public void createUsersWithArrayInput(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
// create path and map variables // create path and map variables
@ -133,15 +133,15 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @throws ApiException if fails to make API call
*/ */
public void createUsersWithListInput(List<User> user) throws ApiException { public void createUsersWithListInput(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
} }
// create path and map variables // create path and map variables
@ -345,20 +345,20 @@ public class UserApi {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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 * @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 {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
} }
// create path and map variables // create path and map variables

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a> <a name="call123testSpecialTags"></a>
# **call123testSpecialTags** # **call123testSpecialTags**
> Client call123testSpecialTags(client) > Client call123testSpecialTags(body)
To test special tags To test special tags
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi(); AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(client); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite) > OuterComposite fakeOuterCompositeSerialize(body)
@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi(); 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 { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a> <a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema** # **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(body)
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace(); e.printStackTrace();
@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a> <a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams** # **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, body)
@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String | String query = "query_example"; // String |
User user = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, user); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace(); e.printStackTrace();
@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(client) > Client testClientModel(body)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(client); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -524,7 +524,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi(); 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 { try {
apiInstance.testInlineAdditionalProperties(requestBody); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace(); e.printStackTrace();
@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body | **param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(client) > Client testClassname(body)
To test class name in snake case To test class name in snake case
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token"); //api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(client); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(pet) > addPet(body)
Add a new pet to the store 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"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.addPet(pet); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace(); e.printStackTrace();
@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(pet) > updatePet(body)
Update an existing pet Update an existing pet
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.updatePet(pet); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace(); e.printStackTrace();
@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -152,7 +152,7 @@ No authorization required
<a name="placeOrder"></a> <a name="placeOrder"></a>
# **placeOrder** # **placeOrder**
> Order placeOrder(order) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
@ -164,9 +164,9 @@ Place an order for a pet
StoreApi apiInstance = new StoreApi(); 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 { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");
@ -178,7 +178,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a> <a name="createUser"></a>
# **createUser** # **createUser**
> createUser(user) > createUser(body)
Create user Create user
@ -30,9 +30,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(user); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace(); e.printStackTrace();
@ -43,7 +43,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -60,7 +60,7 @@ No authorization required
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput** # **createUsersWithArrayInput**
> createUsersWithArrayInput(user) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -72,9 +72,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithArrayInput(user); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace(); e.printStackTrace();
@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -102,7 +102,7 @@ No authorization required
<a name="createUsersWithListInput"></a> <a name="createUsersWithListInput"></a>
# **createUsersWithListInput** # **createUsersWithListInput**
> createUsersWithListInput(user) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -114,9 +114,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithListInput(user); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace(); e.printStackTrace();
@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -314,7 +314,7 @@ No authorization required
<a name="updateUser"></a> <a name="updateUser"></a>
# **updateUser** # **updateUser**
> updateUser(username, user) > updateUser(username, body)
Updated user Updated user
@ -329,9 +329,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted 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 { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace(); e.printStackTrace();
@ -343,7 +343,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -38,27 +38,27 @@ public class AnotherFakeApi {
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client call123testSpecialTags(Client client) throws ApiException { public Client call123testSpecialTags(Client body) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData(); return call123testSpecialTagsWithHttpInfo(body).getData();
} }
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
} }
// create path and map variables // create path and map variables

View File

@ -92,23 +92,23 @@ public class FakeApi {
/** /**
* *
* Test serialization of object with outer number type * 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 * @return OuterComposite
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); return fakeOuterCompositeSerializeWithHttpInfo(body).getData();
} }
/** /**
* *
* Test serialization of object with outer number type * 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&lt;OuterComposite&gt; * @return ApiResponse&lt;OuterComposite&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
Object localVarPostBody = outerComposite; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/fake/outer/composite"; 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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
* @throws ApiException if fails to make API call * @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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
Object localVarPostBody = fileSchemaTestClass; Object localVarPostBody = body;
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
// create path and map variables // create path and map variables
@ -285,32 +285,32 @@ public class FakeApi {
* *
* *
* @param query (required) * @param query (required)
* @param user (required) * @param body (required)
* @throws ApiException if fails to make API call * @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 query (required)
* @param user (required) * @param body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
// create path and map variables // create path and map variables
@ -343,27 +343,27 @@ public class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClientModel(Client client) throws ApiException { public Client testClientModel(Client body) throws ApiException {
return testClientModelWithHttpInfo(client).getData(); return testClientModelWithHttpInfo(body).getData();
} }
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
} }
// create path and map variables // create path and map variables
@ -666,26 +666,26 @@ if (booleanGroup != null)
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
* @throws ApiException if fails to make API call * @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 * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException { public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
Object localVarPostBody = requestBody; Object localVarPostBody = param;
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
// create path and map variables // create path and map variables

View File

@ -38,27 +38,27 @@ public class FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case
* 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 * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClassname(Client client) throws ApiException { public Client testClassname(Client body) throws ApiException {
return testClassnameWithHttpInfo(client).getData(); return testClassnameWithHttpInfo(body).getData();
} }
/** /**
* To test class name in snake case * To test class name in snake case
* 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&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
} }
// create path and map variables // create path and map variables

View File

@ -40,26 +40,26 @@ public class PetApi {
/** /**
* Add a new pet to the store * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
} }
// create path and map variables // create path and map variables
@ -310,26 +310,26 @@ public class PetApi {
/** /**
* Update an existing pet * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
} }
// create path and map variables // create path and map variables

View File

@ -188,27 +188,27 @@ public class StoreApi {
/** /**
* Place an order for a pet * 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 * @return Order
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Order placeOrder(Order order) throws ApiException { public Order placeOrder(Order body) throws ApiException {
return placeOrderWithHttpInfo(order).getData(); return placeOrderWithHttpInfo(body).getData();
} }
/** /**
* Place an order for a pet * 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&lt;Order&gt; * @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException { public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
Object localVarPostBody = order; Object localVarPostBody = body;
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
} }
// create path and map variables // create path and map variables

View File

@ -38,26 +38,26 @@ public class UserApi {
/** /**
* Create user * Create user
* This can only be done by the logged in 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 * @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 * Create user
* This can only be done by the logged in 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException { public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
} }
// create path and map variables // create path and map variables
@ -89,26 +89,26 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException { public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
// create path and map variables // create path and map variables
@ -140,26 +140,26 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException { public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
} }
// create path and map variables // create path and map variables
@ -402,32 +402,32 @@ public class UserApi {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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 * @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 * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException { public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
} }
// create path and map variables // create path and map variables

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a> <a name="call123testSpecialTags"></a>
# **call123testSpecialTags** # **call123testSpecialTags**
> Client call123testSpecialTags(client) > Client call123testSpecialTags(body)
To test special tags To test special tags
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi(); AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(client); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite) > OuterComposite fakeOuterCompositeSerialize(body)
@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi(); 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 { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a> <a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema** # **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(body)
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace(); e.printStackTrace();
@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a> <a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams** # **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, body)
@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String | String query = "query_example"; // String |
User user = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, user); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace(); e.printStackTrace();
@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(client) > Client testClientModel(body)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(client); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -524,7 +524,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi(); 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 { try {
apiInstance.testInlineAdditionalProperties(requestBody); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace(); e.printStackTrace();
@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body | **param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(client) > Client testClassname(body)
To test class name in snake case To test class name in snake case
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token"); //api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(client); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(pet) > addPet(body)
Add a new pet to the store 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"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.addPet(pet); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace(); e.printStackTrace();
@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(pet) > updatePet(body)
Update an existing pet Update an existing pet
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.updatePet(pet); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace(); e.printStackTrace();
@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -152,7 +152,7 @@ No authorization required
<a name="placeOrder"></a> <a name="placeOrder"></a>
# **placeOrder** # **placeOrder**
> Order placeOrder(order) > Order placeOrder(body)
Place an order for a pet Place an order for a pet
@ -164,9 +164,9 @@ Place an order for a pet
StoreApi apiInstance = new StoreApi(); 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 { try {
Order result = apiInstance.placeOrder(order); Order result = apiInstance.placeOrder(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder"); System.err.println("Exception when calling StoreApi#placeOrder");
@ -178,7 +178,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

View File

@ -16,7 +16,7 @@ Method | HTTP request | Description
<a name="createUser"></a> <a name="createUser"></a>
# **createUser** # **createUser**
> createUser(user) > createUser(body)
Create user Create user
@ -30,9 +30,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
User user = new User(); // User | Created user object User body = new User(); // User | Created user object
try { try {
apiInstance.createUser(user); apiInstance.createUser(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser"); System.err.println("Exception when calling UserApi#createUser");
e.printStackTrace(); e.printStackTrace();
@ -43,7 +43,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **body** | [**User**](User.md)| Created user object |
### Return type ### Return type
@ -60,7 +60,7 @@ No authorization required
<a name="createUsersWithArrayInput"></a> <a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput** # **createUsersWithArrayInput**
> createUsersWithArrayInput(user) > createUsersWithArrayInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -72,9 +72,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithArrayInput(user); apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput"); System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace(); e.printStackTrace();
@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -102,7 +102,7 @@ No authorization required
<a name="createUsersWithListInput"></a> <a name="createUsersWithListInput"></a>
# **createUsersWithListInput** # **createUsersWithListInput**
> createUsersWithListInput(user) > createUsersWithListInput(body)
Creates list of users with given input array Creates list of users with given input array
@ -114,9 +114,9 @@ Creates list of users with given input array
UserApi apiInstance = new UserApi(); 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 { try {
apiInstance.createUsersWithListInput(user); apiInstance.createUsersWithListInput(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput"); System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace(); e.printStackTrace();
@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**List&lt;User&gt;**](List.md)| List of user object | **body** | [**List&lt;User&gt;**](List.md)| List of user object |
### Return type ### Return type
@ -314,7 +314,7 @@ No authorization required
<a name="updateUser"></a> <a name="updateUser"></a>
# **updateUser** # **updateUser**
> updateUser(username, user) > updateUser(username, body)
Updated user Updated user
@ -329,9 +329,9 @@ This can only be done by the logged in user.
UserApi apiInstance = new UserApi(); UserApi apiInstance = new UserApi();
String username = "username_example"; // String | name that need to be deleted 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 { try {
apiInstance.updateUser(username, user); apiInstance.updateUser(username, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser"); System.err.println("Exception when calling UserApi#updateUser");
e.printStackTrace(); e.printStackTrace();
@ -343,7 +343,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object | **body** | [**User**](User.md)| Updated user object |
### Return type ### Return type

View File

@ -38,27 +38,27 @@ public class AnotherFakeApi {
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client call123testSpecialTags(Client client) throws ApiException { public Client call123testSpecialTags(Client body) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData(); return call123testSpecialTagsWithHttpInfo(body).getData();
} }
/** /**
* To test special tags * To test special tags
* To test special tags and operation ID starting with number * To test special tags and operation ID starting with number
* @param client client model (required) * @param body client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags"); throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
} }
// create path and map variables // create path and map variables

View File

@ -92,23 +92,23 @@ public class FakeApi {
/** /**
* *
* Test serialization of object with outer number type * 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 * @return OuterComposite
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData(); return fakeOuterCompositeSerializeWithHttpInfo(body).getData();
} }
/** /**
* *
* Test serialization of object with outer number type * 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&lt;OuterComposite&gt; * @return ApiResponse&lt;OuterComposite&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException { public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
Object localVarPostBody = outerComposite; Object localVarPostBody = body;
// create path and map variables // create path and map variables
String localVarPath = "/fake/outer/composite"; 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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
* @throws ApiException if fails to make API call * @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 &#x60;File&#x60;. * For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required) * @param body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException { public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
Object localVarPostBody = fileSchemaTestClass; Object localVarPostBody = body;
// verify the required parameter 'fileSchemaTestClass' is set // verify the required parameter 'body' is set
if (fileSchemaTestClass == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
// create path and map variables // create path and map variables
@ -285,32 +285,32 @@ public class FakeApi {
* *
* *
* @param query (required) * @param query (required)
* @param user (required) * @param body (required)
* @throws ApiException if fails to make API call * @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 query (required)
* @param user (required) * @param body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException { public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query == null) { if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams"); throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
// create path and map variables // create path and map variables
@ -343,27 +343,27 @@ public class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return Client * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClientModel(Client client) throws ApiException { public Client testClientModel(Client body) throws ApiException {
return testClientModelWithHttpInfo(client).getData(); return testClientModelWithHttpInfo(body).getData();
} }
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* @param client client model (required) * @param body client model (required)
* @return ApiResponse&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
} }
// create path and map variables // create path and map variables
@ -666,26 +666,26 @@ if (booleanGroup != null)
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
* @throws ApiException if fails to make API call * @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 * test inline additionalProperties
* *
* @param requestBody request body (required) * @param param request body (required)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException { public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
Object localVarPostBody = requestBody; Object localVarPostBody = param;
// verify the required parameter 'requestBody' is set // verify the required parameter 'param' is set
if (requestBody == null) { if (param == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties"); throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
// create path and map variables // create path and map variables

View File

@ -38,27 +38,27 @@ public class FakeClassnameTags123Api {
/** /**
* To test class name in snake case * To test class name in snake case
* 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 * @return Client
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Client testClassname(Client client) throws ApiException { public Client testClassname(Client body) throws ApiException {
return testClassnameWithHttpInfo(client).getData(); return testClassnameWithHttpInfo(body).getData();
} }
/** /**
* To test class name in snake case * To test class name in snake case
* 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&lt;Client&gt; * @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException { public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
Object localVarPostBody = client; Object localVarPostBody = body;
// verify the required parameter 'client' is set // verify the required parameter 'body' is set
if (client == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname"); throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
} }
// create path and map variables // create path and map variables

View File

@ -40,26 +40,26 @@ public class PetApi {
/** /**
* Add a new pet to the store * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet"); throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
} }
// create path and map variables // create path and map variables
@ -310,26 +310,26 @@ public class PetApi {
/** /**
* Update an existing pet * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException { public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
Object localVarPostBody = pet; Object localVarPostBody = body;
// verify the required parameter 'pet' is set // verify the required parameter 'body' is set
if (pet == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet"); throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
} }
// create path and map variables // create path and map variables

View File

@ -188,27 +188,27 @@ public class StoreApi {
/** /**
* Place an order for a pet * 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 * @return Order
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public Order placeOrder(Order order) throws ApiException { public Order placeOrder(Order body) throws ApiException {
return placeOrderWithHttpInfo(order).getData(); return placeOrderWithHttpInfo(body).getData();
} }
/** /**
* Place an order for a pet * 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&lt;Order&gt; * @return ApiResponse&lt;Order&gt;
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException { public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
Object localVarPostBody = order; Object localVarPostBody = body;
// verify the required parameter 'order' is set // verify the required parameter 'body' is set
if (order == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder"); throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
} }
// create path and map variables // create path and map variables

View File

@ -38,26 +38,26 @@ public class UserApi {
/** /**
* Create user * Create user
* This can only be done by the logged in 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 * @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 * Create user
* This can only be done by the logged in 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException { public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
} }
// create path and map variables // create path and map variables
@ -89,26 +89,26 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException { public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
// create path and map variables // create path and map variables
@ -140,26 +140,26 @@ public class UserApi {
/** /**
* Creates list of users with given input array * 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 * @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 * 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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException { public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput"); throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
} }
// create path and map variables // create path and map variables
@ -402,32 +402,32 @@ public class UserApi {
* Updated user * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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 * @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 * Updated user
* This can only be done by the logged in user. * This can only be done by the logged in user.
* @param username name that need to be deleted (required) * @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 * @throws ApiException if fails to make API call
*/ */
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException { public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
Object localVarPostBody = user; Object localVarPostBody = body;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username == null) { if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'user' is set // verify the required parameter 'body' is set
if (user == null) { if (body == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser"); throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
} }
// create path and map variables // create path and map variables

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a> <a name="call123testSpecialTags"></a>
# **call123testSpecialTags** # **call123testSpecialTags**
> Client call123testSpecialTags(client) > Client call123testSpecialTags(body)
To test special tags To test special tags
@ -23,9 +23,9 @@ To test special tags and operation ID starting with number
AnotherFakeApi apiInstance = new AnotherFakeApi(); AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.call123testSpecialTags(client); Client result = apiInstance.call123testSpecialTags(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags"); System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@ -37,7 +37,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -65,7 +65,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a> <a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize** # **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite) > OuterComposite fakeOuterCompositeSerialize(body)
@ -79,9 +79,9 @@ Test serialization of object with outer number type
FakeApi apiInstance = new FakeApi(); 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 { try {
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite); OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize"); System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@ -93,7 +93,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -200,7 +200,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a> <a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema** # **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(body)
@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named &#x60;Fil
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass | FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try { try {
apiInstance.testBodyWithFileSchema(fileSchemaTestClass); apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema"); System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace(); e.printStackTrace();
@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type ### Return type
@ -244,7 +244,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a> <a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams** # **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, body)
@ -257,9 +257,9 @@ No authorization required
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
String query = "query_example"; // String | String query = "query_example"; // String |
User user = new User(); // User | User body = new User(); // User |
try { try {
apiInstance.testBodyWithQueryParams(query, user); apiInstance.testBodyWithQueryParams(query, body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams"); System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
e.printStackTrace(); e.printStackTrace();
@ -271,7 +271,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
**user** | [**User**](User.md)| | **body** | [**User**](User.md)| |
### Return type ### Return type
@ -288,7 +288,7 @@ No authorization required
<a name="testClientModel"></a> <a name="testClientModel"></a>
# **testClientModel** # **testClientModel**
> Client testClientModel(client) > Client testClientModel(body)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -302,9 +302,9 @@ To test \&quot;client\&quot; model
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClientModel(client); Client result = apiInstance.testClientModel(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel"); System.err.println("Exception when calling FakeApi#testClientModel");
@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type
@ -524,7 +524,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a> <a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties** # **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(param)
test inline additionalProperties test inline additionalProperties
@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi(); 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 { try {
apiInstance.testInlineAdditionalProperties(requestBody); apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties"); System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace(); e.printStackTrace();
@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**Map&lt;String, String&gt;**](String.md)| request body | **param** | [**Map&lt;String, String&gt;**](String.md)| request body |
### Return type ### Return type

View File

@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a> <a name="testClassname"></a>
# **testClassname** # **testClassname**
> Client testClassname(client) > Client testClassname(body)
To test class name in snake case To test class name in snake case
@ -33,9 +33,9 @@ api_key_query.setApiKey("YOUR API KEY");
//api_key_query.setApiKeyPrefix("Token"); //api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(); FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api();
Client client = new Client(); // Client | client model Client body = new Client(); // Client | client model
try { try {
Client result = apiInstance.testClassname(client); Client result = apiInstance.testClassname(body);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname"); System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@ -47,7 +47,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **body** | [**Client**](Client.md)| client model |
### Return type ### Return type

View File

@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a> <a name="addPet"></a>
# **addPet** # **addPet**
> addPet(pet) > addPet(body)
Add a new pet to the store 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"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.addPet(pet); apiInstance.addPet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet"); System.err.println("Exception when calling PetApi#addPet");
e.printStackTrace(); e.printStackTrace();
@ -50,7 +50,7 @@ try {
Name | Type | Description | Notes 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 ### Return type
@ -280,7 +280,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a> <a name="updatePet"></a>
# **updatePet** # **updatePet**
> updatePet(pet) > updatePet(body)
Update an existing pet Update an existing pet
@ -300,9 +300,9 @@ OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
petstore_auth.setAccessToken("YOUR ACCESS TOKEN"); petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(); 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 { try {
apiInstance.updatePet(pet); apiInstance.updatePet(body);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet"); System.err.println("Exception when calling PetApi#updatePet");
e.printStackTrace(); e.printStackTrace();
@ -313,7 +313,7 @@ try {
Name | Type | Description | Notes 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 ### Return type

Some files were not shown because too many files have changed in this diff Show More