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

@@ -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();
}