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

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

View File

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

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
* @param client client model (required)
* @param body client model (required)
* @return Client
*/
@RequestLine("PATCH /fake_classname_test")
@@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client testClassname(Client client);
Client testClassname(Client body);
}

View File

@@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void addPet(Pet pet);
void addPet(Pet body);
/**
* Deletes a pet
@@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void updatePet(Pet pet);
void updatePet(Pet body);
/**
* Updates a pet in the store with form data

View File

@@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
*/
@RequestLine("POST /store/order")
@@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
"Content-Type: */*",
"Accept: application/json",
})
Order placeOrder(Order order);
Order placeOrder(Order body);
}

View File

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

View File

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

View File

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

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
* @param client client model (required)
* @param body client model (required)
* @return Client
*/
@RequestLine("PATCH /fake_classname_test")
@@ -26,5 +26,5 @@ public interface FakeClassnameTags123Api extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client testClassname(Client client);
Client testClassname(Client body);
}

View File

@@ -20,14 +20,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("POST /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void addPet(Pet pet);
void addPet(Pet body);
/**
* Deletes a pet
@@ -145,14 +145,14 @@ public interface PetApi extends ApiClient.Api {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
*/
@RequestLine("PUT /pet")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void updatePet(Pet pet);
void updatePet(Pet body);
/**
* Updates a pet in the store with form data

View File

@@ -52,7 +52,7 @@ public interface StoreApi extends ApiClient.Api {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
*/
@RequestLine("POST /store/order")
@@ -60,5 +60,5 @@ public interface StoreApi extends ApiClient.Api {
"Content-Type: */*",
"Accept: application/json",
})
Order placeOrder(Order order);
Order placeOrder(Order body);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -45,58 +45,58 @@ public class PetApi {
/**
* Add a new pet to the store
* <p><b>405</b> - Invalid input
* @param pet Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
* @throws IOException if an error occurs while attempting to invoke the API
**/
public void addPet(Pet pet) throws IOException {
addPetForHttpResponse(pet);
public void addPet(Pet body) throws IOException {
addPetForHttpResponse(body);
}
/**
* Add a new pet to the store
* <p><b>405</b> - Invalid input
* @param pet Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @throws IOException if an error occurs while attempting to invoke the API
**/
public void addPet(Pet pet, Map<String, Object> params) throws IOException {
addPetForHttpResponse(pet, params);
public void addPet(Pet body, Map<String, Object> params) throws IOException {
addPetForHttpResponse(body, params);
}
public HttpResponse addPetForHttpResponse(Pet pet) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
public HttpResponse addPetForHttpResponse(Pet body) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
public HttpResponse addPetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
public HttpResponse addPetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = pet == null ?
HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(null) :
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet);
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
public HttpResponse addPetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling addPet");
public HttpResponse addPetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling addPet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
@@ -121,7 +121,7 @@ public class PetApi {
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -474,11 +474,11 @@ public class PetApi {
* <p><b>400</b> - Invalid ID supplied
* <p><b>404</b> - Pet not found
* <p><b>405</b> - Validation exception
* @param pet Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
* @throws IOException if an error occurs while attempting to invoke the API
**/
public void updatePet(Pet pet) throws IOException {
updatePetForHttpResponse(pet);
public void updatePet(Pet body) throws IOException {
updatePetForHttpResponse(body);
}
/**
@@ -486,48 +486,48 @@ public class PetApi {
* <p><b>400</b> - Invalid ID supplied
* <p><b>404</b> - Pet not found
* <p><b>405</b> - Validation exception
* @param pet Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @throws IOException if an error occurs while attempting to invoke the API
**/
public void updatePet(Pet pet, Map<String, Object> params) throws IOException {
updatePetForHttpResponse(pet, params);
public void updatePet(Pet body, Map<String, Object> params) throws IOException {
updatePetForHttpResponse(body, params);
}
public HttpResponse updatePetForHttpResponse(Pet pet) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
public HttpResponse updatePetForHttpResponse(Pet body) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}
public HttpResponse updatePetForHttpResponse(java.io.InputStream pet, String mediaType) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
public HttpResponse updatePetForHttpResponse(java.io.InputStream body, String mediaType) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = pet == null ?
HttpContent content = body == null ?
apiClient.new JacksonJsonHttpContent(null) :
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, pet);
new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}
public HttpResponse updatePetForHttpResponse(Pet pet, Map<String, Object> params) throws IOException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new IllegalArgumentException("Missing the required parameter 'pet' when calling updatePet");
public HttpResponse updatePetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {
// verify the required parameter 'body' is set
if (body == null) {
throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/pet");
@@ -552,7 +552,7 @@ public class PetApi {
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
HttpContent content = apiClient.new JacksonJsonHttpContent(pet);
HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -56,14 +56,14 @@ public class AnotherFakeApi {
/**
* Build call for call123testSpecialTags
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/another-fake/dummy";
@@ -103,15 +103,15 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)");
}
com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client call123testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(client);
public Client call123testSpecialTags(Client body) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(body);
return resp.getData();
}
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class AnotherFakeApi {
/**
* To test special tags (asynchronously)
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class AnotherFakeApi {
};
}
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -179,14 +179,14 @@ public class FakeApi {
}
/**
* Build call for fakeOuterCompositeSerialize
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = outerComposite;
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -226,10 +226,10 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(body, progressListener, progressRequestListener);
return call;
}
@@ -237,24 +237,24 @@ public class FakeApi {
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite);
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(body);
return resp.getData();
}
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return ApiResponse&lt;OuterComposite&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null, null);
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -262,12 +262,12 @@ public class FakeApi {
/**
* (asynchronously)
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback<OuterComposite> callback) throws ApiException {
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback<OuterComposite> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -288,7 +288,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -527,14 +527,14 @@ public class FakeApi {
}
/**
* Build call for testBodyWithFileSchema
* @param fileSchemaTestClass (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = fileSchemaTestClass;
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-file-schema";
@@ -574,15 +574,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'fileSchemaTestClass' is set
if (fileSchemaTestClass == null) {
throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)");
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(body, progressListener, progressRequestListener);
return call;
}
@@ -590,34 +590,34 @@ public class FakeApi {
/**
*
* 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 fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body);
}
/**
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null, null);
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* (asynchronously)
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -638,21 +638,21 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testBodyWithQueryParams
* @param query (required)
* @param user (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-query-params";
@@ -696,20 +696,20 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling testBodyWithQueryParams(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)");
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, body, progressListener, progressRequestListener);
return call;
}
@@ -718,23 +718,23 @@ public class FakeApi {
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithQueryParams(String query, User user) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, user);
public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body);
}
/**
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, null, null);
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, null, null);
return apiClient.execute(call);
}
@@ -742,12 +742,12 @@ public class FakeApi {
* (asynchronously)
*
* @param query (required)
* @param user (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -768,20 +768,20 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testClientModel
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClientModelCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake";
@@ -821,15 +821,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
}
com.squareup.okhttp.Call call = testClientModelCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener);
return call;
}
@@ -837,24 +837,24 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClientModel(Client client) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(client);
public Client testClientModel(Client body) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(body);
return resp.getData();
}
/**
* 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;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -862,12 +862,12 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model (asynchronously)
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClientModelAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -888,7 +888,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -1521,14 +1521,14 @@ public class FakeApi {
}
/**
* Build call for testInlineAdditionalProperties
* @param requestBody request body (required)
* @param param request body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = requestBody;
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = param;
// create path and map variables
String localVarPath = "/fake/inline-additionalProperties";
@@ -1568,15 +1568,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)");
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)");
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(param, progressListener, progressRequestListener);
return call;
}
@@ -1584,34 +1584,34 @@ public class FakeApi {
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param);
}
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null, null);
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, null, null);
return apiClient.execute(call);
}
/**
* test inline additionalProperties (asynchronously)
*
* @param requestBody request body (required)
* @param param request body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> requestBody, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> param, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1632,7 +1632,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -56,14 +56,14 @@ public class FakeClassnameTags123Api {
/**
* Build call for testClassname
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClassnameCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClassnameCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake_classname_test";
@@ -103,15 +103,15 @@ public class FakeClassnameTags123Api {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)");
}
com.squareup.okhttp.Call call = testClassnameCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClassname(Client client) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(client);
public Client testClassname(Client body) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(body);
return resp.getData();
}
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case (asynchronously)
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClassnameAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClassnameAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class FakeClassnameTags123Api {
};
}
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -58,14 +58,14 @@ public class PetApi {
/**
* Build call for addPet
* @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)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -105,15 +105,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)");
}
com.squareup.okhttp.Call call = addPetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -121,34 +121,34 @@ public class PetApi {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void addPet(Pet pet) throws ApiException {
addPetWithHttpInfo(pet);
public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body);
}
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Add a new pet to the store (asynchronously)
*
* @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)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call addPetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call addPetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -169,7 +169,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -682,14 +682,14 @@ public class PetApi {
}
/**
* Build call for updatePet
* @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)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -729,15 +729,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)");
}
com.squareup.okhttp.Call call = updatePetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -745,34 +745,34 @@ public class PetApi {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updatePet(Pet pet) throws ApiException {
updatePetWithHttpInfo(pet);
public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body);
}
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Update an existing pet (asynchronously)
*
* @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)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updatePetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updatePetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -793,7 +793,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -408,14 +408,14 @@ public class StoreApi {
}
/**
* Build call for placeOrder
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call placeOrderCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = order;
public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/store/order";
@@ -455,15 +455,15 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'order' is set
if (order == null) {
throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)");
}
com.squareup.okhttp.Call call = placeOrderCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderCall(body, progressListener, progressRequestListener);
return call;
}
@@ -471,24 +471,24 @@ public class StoreApi {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Order placeOrder(Order order) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(order);
public Order placeOrder(Order body) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(body);
return resp.getData();
}
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return ApiResponse&lt;Order&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, null, null);
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -496,12 +496,12 @@ public class StoreApi {
/**
* Place an order for a pet (asynchronously)
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call placeOrderAsync(Order order, final ApiCallback<Order> callback) throws ApiException {
public com.squareup.okhttp.Call placeOrderAsync(Order body, final ApiCallback<Order> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -522,7 +522,7 @@ public class StoreApi {
};
}
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -56,14 +56,14 @@ public class UserApi {
/**
* Build call for createUser
* @param user Created user object (required)
* @param body Created user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUserCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user";
@@ -103,15 +103,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUserValidateBeforeCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUserValidateBeforeCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)");
}
com.squareup.okhttp.Call call = createUserCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,34 +119,34 @@ public class UserApi {
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUser(User user) throws ApiException {
createUserWithHttpInfo(user);
public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body);
}
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Create user (asynchronously)
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUserAsync(User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUserAsync(User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -167,20 +167,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithArrayInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithArray";
@@ -220,15 +220,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -236,34 +236,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithArrayInput(List<User> user) throws ApiException {
createUsersWithArrayInputWithHttpInfo(user);
public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -284,20 +284,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithListInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithList";
@@ -337,15 +337,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithListInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -353,34 +353,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithListInput(List<User> user) throws ApiException {
createUsersWithListInputWithHttpInfo(user);
public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -401,7 +401,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -894,14 +894,14 @@ public class UserApi {
/**
* Build call for updateUser
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updateUserCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -942,20 +942,20 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)");
}
com.squareup.okhttp.Call call = updateUserCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserCall(username, body, progressListener, progressRequestListener);
return call;
}
@@ -964,23 +964,23 @@ public class UserApi {
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updateUser(String username, User user) throws ApiException {
updateUserWithHttpInfo(username, user);
public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body);
}
/**
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, null, null);
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, null, null);
return apiClient.execute(call);
}
@@ -988,12 +988,12 @@ public class UserApi {
* Updated user (asynchronously)
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updateUserAsync(String username, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updateUserAsync(String username, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1014,7 +1014,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -56,14 +56,14 @@ public class AnotherFakeApi {
/**
* Build call for call123testSpecialTags
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/another-fake/dummy";
@@ -103,15 +103,15 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling call123testSpecialTags(Async)");
}
com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client call123testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(client);
public Client call123testSpecialTags(Client body) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(body);
return resp.getData();
}
/**
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class AnotherFakeApi {
/**
* To test special tags (asynchronously)
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class AnotherFakeApi {
};
}
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -179,14 +179,14 @@ public class FakeApi {
}
/**
* Build call for fakeOuterCompositeSerialize
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = outerComposite;
public com.squareup.okhttp.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -226,10 +226,10 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite outerComposite, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call fakeOuterCompositeSerializeValidateBeforeCall(OuterComposite body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeCall(body, progressListener, progressRequestListener);
return call;
}
@@ -237,24 +237,24 @@ public class FakeApi {
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(outerComposite);
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
ApiResponse<OuterComposite> resp = fakeOuterCompositeSerializeWithHttpInfo(body);
return resp.getData();
}
/**
*
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @return ApiResponse&lt;OuterComposite&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, null, null);
public ApiResponse<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -262,12 +262,12 @@ public class FakeApi {
/**
* (asynchronously)
* Test serialization of object with outer number type
* @param outerComposite Input composite as post body (optional)
* @param body Input composite as post body (optional)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite outerComposite, final ApiCallback<OuterComposite> callback) throws ApiException {
public com.squareup.okhttp.Call fakeOuterCompositeSerializeAsync(OuterComposite body, final ApiCallback<OuterComposite> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -288,7 +288,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(outerComposite, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = fakeOuterCompositeSerializeValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<OuterComposite>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -527,14 +527,14 @@ public class FakeApi {
}
/**
* Build call for testBodyWithFileSchema
* @param fileSchemaTestClass (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = fileSchemaTestClass;
public com.squareup.okhttp.Call testBodyWithFileSchemaCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-file-schema";
@@ -574,15 +574,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass fileSchemaTestClass, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithFileSchemaValidateBeforeCall(FileSchemaTestClass body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'fileSchemaTestClass' is set
if (fileSchemaTestClass == null) {
throw new ApiException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithFileSchema(Async)");
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaCall(body, progressListener, progressRequestListener);
return call;
}
@@ -590,34 +590,34 @@ public class FakeApi {
/**
*
* 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 fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
testBodyWithFileSchemaWithHttpInfo(body);
}
/**
*
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, null, null);
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* (asynchronously)
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
* @param fileSchemaTestClass (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithFileSchemaAsync(FileSchemaTestClass body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -638,21 +638,21 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(fileSchemaTestClass, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithFileSchemaValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testBodyWithQueryParams
* @param query (required)
* @param user (required)
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call testBodyWithQueryParamsCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/body-with-query-params";
@@ -696,20 +696,20 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testBodyWithQueryParamsValidateBeforeCall(String query, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException("Missing the required parameter 'query' when calling testBodyWithQueryParams(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling testBodyWithQueryParams(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testBodyWithQueryParams(Async)");
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsCall(query, body, progressListener, progressRequestListener);
return call;
}
@@ -718,23 +718,23 @@ public class FakeApi {
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testBodyWithQueryParams(String query, User user) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, user);
public void testBodyWithQueryParams(String query, User body) throws ApiException {
testBodyWithQueryParamsWithHttpInfo(query, body);
}
/**
*
*
* @param query (required)
* @param user (required)
* @param body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, null, null);
public ApiResponse<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, null, null);
return apiClient.execute(call);
}
@@ -742,12 +742,12 @@ public class FakeApi {
* (asynchronously)
*
* @param query (required)
* @param user (required)
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testBodyWithQueryParamsAsync(String query, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -768,20 +768,20 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testBodyWithQueryParamsValidateBeforeCall(query, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for testClientModel
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClientModelCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake";
@@ -821,15 +821,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClientModel(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
}
com.squareup.okhttp.Call call = testClientModelCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener);
return call;
}
@@ -837,24 +837,24 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClientModel(Client client) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(client);
public Client testClientModel(Client body) throws ApiException {
ApiResponse<Client> resp = testClientModelWithHttpInfo(body);
return resp.getData();
}
/**
* 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;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClientModelWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -862,12 +862,12 @@ public class FakeApi {
/**
* To test \&quot;client\&quot; model (asynchronously)
* To test \&quot;client\&quot; model
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClientModelAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -888,7 +888,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
@@ -1521,14 +1521,14 @@ public class FakeApi {
}
/**
* Build call for testInlineAdditionalProperties
* @param requestBody request body (required)
* @param param request body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = requestBody;
public com.squareup.okhttp.Call testInlineAdditionalPropertiesCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = param;
// create path and map variables
String localVarPath = "/fake/inline-additionalProperties";
@@ -1568,15 +1568,15 @@ public class FakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> requestBody, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testInlineAdditionalPropertiesValidateBeforeCall(Map<String, String> param, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties(Async)");
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException("Missing the required parameter 'param' when calling testInlineAdditionalProperties(Async)");
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesCall(param, progressListener, progressRequestListener);
return call;
}
@@ -1584,34 +1584,34 @@ public class FakeApi {
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
testInlineAdditionalPropertiesWithHttpInfo(param);
}
/**
* test inline additionalProperties
*
* @param requestBody request body (required)
* @param param request body (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, null, null);
public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, null, null);
return apiClient.execute(call);
}
/**
* test inline additionalProperties (asynchronously)
*
* @param requestBody request body (required)
* @param param request body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> requestBody, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call testInlineAdditionalPropertiesAsync(Map<String, String> param, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1632,7 +1632,7 @@ public class FakeApi {
};
}
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(requestBody, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testInlineAdditionalPropertiesValidateBeforeCall(param, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -56,14 +56,14 @@ public class FakeClassnameTags123Api {
/**
* Build call for testClassname
* @param client client model (required)
* @param body client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testClassnameCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
public com.squareup.okhttp.Call testClassnameCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake_classname_test";
@@ -103,15 +103,15 @@ public class FakeClassnameTags123Api {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call testClassnameValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testClassname(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling testClassname(Async)");
}
com.squareup.okhttp.Call call = testClassnameCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,24 +119,24 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testClassname(Client client) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(client);
public Client testClassname(Client body) throws ApiException {
ApiResponse<Client> resp = testClassnameWithHttpInfo(body);
return resp.getData();
}
/**
* To test class name in snake case
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testClassnameWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, null, null);
public ApiResponse<Client> testClassnameWithHttpInfo(Client body) throws ApiException {
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -144,12 +144,12 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case (asynchronously)
* To test class name in snake case
* @param client client model (required)
* @param body client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testClassnameAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call testClassnameAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -170,7 +170,7 @@ public class FakeClassnameTags123Api {
};
}
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = testClassnameValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -58,14 +58,14 @@ public class PetApi {
/**
* Build call for addPet
* @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)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call addPetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call addPetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -105,15 +105,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call addPetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling addPet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling addPet(Async)");
}
com.squareup.okhttp.Call call = addPetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -121,34 +121,34 @@ public class PetApi {
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void addPet(Pet pet) throws ApiException {
addPetWithHttpInfo(pet);
public void addPet(Pet body) throws ApiException {
addPetWithHttpInfo(body);
}
/**
* Add a new pet to the store
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> addPetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> addPetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Add a new pet to the store (asynchronously)
*
* @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)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call addPetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call addPetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -169,7 +169,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = addPetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = addPetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -682,14 +682,14 @@ public class PetApi {
}
/**
* Build call for updatePet
* @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)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updatePetCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = pet;
public com.squareup.okhttp.Call updatePetCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/pet";
@@ -729,15 +729,15 @@ public class PetApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet pet, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updatePetValidateBeforeCall(Pet body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException("Missing the required parameter 'pet' when calling updatePet(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updatePet(Async)");
}
com.squareup.okhttp.Call call = updatePetCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetCall(body, progressListener, progressRequestListener);
return call;
}
@@ -745,34 +745,34 @@ public class PetApi {
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updatePet(Pet pet) throws ApiException {
updatePetWithHttpInfo(pet);
public void updatePet(Pet body) throws ApiException {
updatePetWithHttpInfo(body);
}
/**
* Update an existing pet
*
* @param pet Pet object that needs to be added to the store (required)
* @param body Pet object that needs to be added to the store (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updatePetWithHttpInfo(Pet pet) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, null, null);
public ApiResponse<Void> updatePetWithHttpInfo(Pet body) throws ApiException {
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Update an existing pet (asynchronously)
*
* @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)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updatePetAsync(Pet pet, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updatePetAsync(Pet body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -793,7 +793,7 @@ public class PetApi {
};
}
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(pet, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updatePetValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -408,14 +408,14 @@ public class StoreApi {
}
/**
* Build call for placeOrder
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call placeOrderCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = order;
public com.squareup.okhttp.Call placeOrderCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/store/order";
@@ -455,15 +455,15 @@ public class StoreApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order order, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call placeOrderValidateBeforeCall(Order body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'order' is set
if (order == null) {
throw new ApiException("Missing the required parameter 'order' when calling placeOrder(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling placeOrder(Async)");
}
com.squareup.okhttp.Call call = placeOrderCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderCall(body, progressListener, progressRequestListener);
return call;
}
@@ -471,24 +471,24 @@ public class StoreApi {
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return Order
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Order placeOrder(Order order) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(order);
public Order placeOrder(Order body) throws ApiException {
ApiResponse<Order> resp = placeOrderWithHttpInfo(body);
return resp.getData();
}
/**
* Place an order for a pet
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @return ApiResponse&lt;Order&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Order> placeOrderWithHttpInfo(Order order) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, null, null);
public ApiResponse<Order> placeOrderWithHttpInfo(Order body) throws ApiException {
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -496,12 +496,12 @@ public class StoreApi {
/**
* Place an order for a pet (asynchronously)
*
* @param order order placed for purchasing the pet (required)
* @param body order placed for purchasing the pet (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call placeOrderAsync(Order order, final ApiCallback<Order> callback) throws ApiException {
public com.squareup.okhttp.Call placeOrderAsync(Order body, final ApiCallback<Order> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -522,7 +522,7 @@ public class StoreApi {
};
}
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(order, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = placeOrderValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Order>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@@ -56,14 +56,14 @@ public class UserApi {
/**
* Build call for createUser
* @param user Created user object (required)
* @param body Created user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUserCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUserCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user";
@@ -103,15 +103,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUserValidateBeforeCall(User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUserValidateBeforeCall(User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUser(Async)");
}
com.squareup.okhttp.Call call = createUserCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserCall(body, progressListener, progressRequestListener);
return call;
}
@@ -119,34 +119,34 @@ public class UserApi {
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUser(User user) throws ApiException {
createUserWithHttpInfo(user);
public void createUser(User body) throws ApiException {
createUserWithHttpInfo(body);
}
/**
* Create user
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUserWithHttpInfo(User user) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUserWithHttpInfo(User body) throws ApiException {
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Create user (asynchronously)
* This can only be done by the logged in user.
* @param user Created user object (required)
* @param body Created user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUserAsync(User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUserAsync(User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -167,20 +167,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUserValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUserValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithArrayInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithArrayInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithArray";
@@ -220,15 +220,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithArrayInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithArrayInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithArrayInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -236,34 +236,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithArrayInput(List<User> user) throws ApiException {
createUsersWithArrayInputWithHttpInfo(user);
public void createUsersWithArrayInput(List<User> body) throws ApiException {
createUsersWithArrayInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithArrayInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -284,20 +284,20 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithArrayInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
/**
* Build call for createUsersWithListInput
* @param user List of user object (required)
* @param body List of user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call createUsersWithListInputCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/createWithList";
@@ -337,15 +337,15 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call createUsersWithListInputValidateBeforeCall(List<User> body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUsersWithListInput(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling createUsersWithListInput(Async)");
}
com.squareup.okhttp.Call call = createUsersWithListInputCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputCall(body, progressListener, progressRequestListener);
return call;
}
@@ -353,34 +353,34 @@ public class UserApi {
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void createUsersWithListInput(List<User> user) throws ApiException {
createUsersWithListInputWithHttpInfo(user);
public void createUsersWithListInput(List<User> body) throws ApiException {
createUsersWithListInputWithHttpInfo(body);
}
/**
* Creates list of users with given input array
*
* @param user List of user object (required)
* @param body List of user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, null, null);
public ApiResponse<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws ApiException {
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, null, null);
return apiClient.execute(call);
}
/**
* Creates list of users with given input array (asynchronously)
*
* @param user List of user object (required)
* @param body List of user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call createUsersWithListInputAsync(List<User> body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -401,7 +401,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = createUsersWithListInputValidateBeforeCall(body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}
@@ -894,14 +894,14 @@ public class UserApi {
/**
* Build call for updateUser
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call updateUserCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = user;
public com.squareup.okhttp.Call updateUserCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -942,20 +942,20 @@ public class UserApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User user, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call updateUserValidateBeforeCall(String username, User body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)");
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling updateUser(Async)");
}
com.squareup.okhttp.Call call = updateUserCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserCall(username, body, progressListener, progressRequestListener);
return call;
}
@@ -964,23 +964,23 @@ public class UserApi {
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public void updateUser(String username, User user) throws ApiException {
updateUserWithHttpInfo(username, user);
public void updateUser(String username, User body) throws ApiException {
updateUserWithHttpInfo(username, body);
}
/**
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> updateUserWithHttpInfo(String username, User user) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, null, null);
public ApiResponse<Void> updateUserWithHttpInfo(String username, User body) throws ApiException {
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, null, null);
return apiClient.execute(call);
}
@@ -988,12 +988,12 @@ public class UserApi {
* Updated user (asynchronously)
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
* @param user Updated user object (required)
* @param body Updated user object (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call updateUserAsync(String username, User user, final ApiCallback<Void> callback) throws ApiException {
public com.squareup.okhttp.Call updateUserAsync(String username, User body, final ApiCallback<Void> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -1014,7 +1014,7 @@ public class UserApi {
};
}
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, user, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = updateUserValidateBeforeCall(username, body, progressListener, progressRequestListener);
apiClient.executeAsync(call, callback);
return call;
}

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
> Client call123testSpecialTags(body)
To test special tags
@@ -27,14 +27,14 @@ AnotherFakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSuppl
.setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake();
api.call123testSpecialTags()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type

View File

@@ -61,7 +61,7 @@ No authorization required
<a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
> OuterComposite fakeOuterCompositeSerialize(body)
@@ -85,7 +85,7 @@ api.fakeOuterCompositeSerialize().execute(r -> r.prettyPeek());
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
@@ -184,7 +184,7 @@ No authorization required
<a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass)
> testBodyWithFileSchema(body)
@@ -202,14 +202,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
.setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
api.testBodyWithFileSchema()
.body(fileSchemaTestClass).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -226,7 +226,7 @@ No authorization required
<a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user)
> testBodyWithQueryParams(query, body)
@@ -243,7 +243,7 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
api.testBodyWithQueryParams()
.queryQuery(query)
.body(user).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
@@ -251,7 +251,7 @@ api.testBodyWithQueryParams()
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **String**| |
**user** | [**User**](User.md)| |
**body** | [**User**](User.md)| |
### Return type
@@ -268,7 +268,7 @@ No authorization required
<a name="testClientModel"></a>
# **testClientModel**
> Client testClientModel(client)
> Client testClientModel(body)
To test \&quot;client\&quot; model
@@ -286,14 +286,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
.setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
api.testClientModel()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type
@@ -465,7 +465,7 @@ No authorization required
<a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody)
> testInlineAdditionalProperties(param)
test inline additionalProperties
@@ -481,14 +481,14 @@ FakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
.setBaseUri("http://petstore.swagger.io:80/v2"))).fake();
api.testInlineAdditionalProperties()
.body(requestBody).execute(r -> r.prettyPeek());
.body(param).execute(r -> r.prettyPeek());
```
### Parameters
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

View File

@@ -9,7 +9,7 @@ Method | HTTP request | Description
<a name="testClassname"></a>
# **testClassname**
> Client testClassname(client)
> Client testClassname(body)
To test class name in snake case
@@ -27,14 +27,14 @@ FakeClassnameTags123Api api = ApiClient.api(ApiClient.Config.apiConfig().withReq
.setBaseUri("http://petstore.swagger.io:80/v2"))).fakeClassnameTags123();
api.testClassname()
.body(client).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
**body** | [**Client**](Client.md)| client model |
### Return type

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
<a name="addPet"></a>
# **addPet**
> addPet(pet)
> addPet(body)
Add a new pet to the store
@@ -33,14 +33,14 @@ PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
.setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
api.addPet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
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
@@ -224,7 +224,7 @@ Name | Type | Description | Notes
<a name="updatePet"></a>
# **updatePet**
> updatePet(pet)
> updatePet(body)
Update an existing pet
@@ -240,14 +240,14 @@ PetApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSupplier(
.setBaseUri("http://petstore.swagger.io:80/v2"))).pet();
api.updatePet()
.body(pet).execute(r -> r.prettyPeek());
.body(body).execute(r -> r.prettyPeek());
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type

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