| List of user object
try {
- apiInstance.createUsersWithListInput(user);
+ apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace();
@@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**List<User>**](List.md)| List of user object |
+ **body** | [**List<User>**](List.md)| List of user object |
### Return type
@@ -314,7 +314,7 @@ No authorization required
# **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
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index ab532e85362..b17ee1bb954 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -44,12 +44,12 @@ public class AnotherFakeApi {
* To test special tags
* To test special tags and operation ID starting with number
* 200 - 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() {};
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
* 200 - 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 params) throws IOException {
- HttpResponse response = call123testSpecialTagsForHttpResponse(client, params);
+ public Client call123testSpecialTags(Client body, Map params) throws IOException {
+ HttpResponse response = call123testSpecialTagsForHttpResponse(body, params);
TypeReference typeRef = new TypeReference() {};
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 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 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();
}
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java
index 90a90a5f13c..a78c0a02197 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -130,12 +130,12 @@ public class FakeApi {
/**
* Test serialization of object with outer number type
* 200 - 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() {};
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 params) throws IOException {
- HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(outerComposite, params);
+ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body, Map params) throws IOException {
+ HttpResponse response = fakeOuterCompositeSerializeForHttpResponse(body, params);
TypeReference typeRef = new TypeReference() {};
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 params) throws IOException {
+ public HttpResponse fakeOuterCompositeSerializeForHttpResponse(OuterComposite body, Map params) throws IOException {
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/composite");
@@ -202,7 +202,7 @@ public class FakeApi {
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
- HttpContent content = apiClient.new JacksonJsonHttpContent(outerComposite);
+ HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -370,58 +370,58 @@ public class FakeApi {
/**
* For this test, the body for this request much reference a schema named `File`.
* 200 - Success
- * @param fileSchemaTestClass The fileSchemaTestClass parameter
+ * @param body The body parameter
* @throws IOException if an error occurs while attempting to invoke the API
**/
- public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws IOException {
- testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass);
+ public void testBodyWithFileSchema(FileSchemaTestClass body) throws IOException {
+ testBodyWithFileSchemaForHttpResponse(body);
}
/**
* For this test, the body for this request much reference a schema named `File`.
*
200 - 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 params) throws IOException {
- testBodyWithFileSchemaForHttpResponse(fileSchemaTestClass, params);
+ public void testBodyWithFileSchema(FileSchemaTestClass body, Map 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 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 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 {
/**
* 200 - 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);
}
/**
*
200 - 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 params) throws IOException {
- testBodyWithQueryParamsForHttpResponse(query, user, params);
+ public void testBodyWithQueryParams(String query, User body, Map 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 params) throws IOException {
+ public HttpResponse testBodyWithQueryParamsForHttpResponse(String query, User body, Map params) throws IOException {
// verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling testBodyWithQueryParams");
- }// verify the required parameter 'user' is set
- if (user == null) {
- throw new IllegalArgumentException("Missing the required parameter 'user' when calling testBodyWithQueryParams");
+ }// verify the required parameter 'body' is set
+ if (body == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'body' when calling testBodyWithQueryParams");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/body-with-query-params");
@@ -563,7 +563,7 @@ public class FakeApi {
String url = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(url);
- HttpContent content = apiClient.new JacksonJsonHttpContent(user);
+ HttpContent content = apiClient.new JacksonJsonHttpContent(body);
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}
@@ -572,12 +572,12 @@ public class FakeApi {
* To test \"client\" model
* To test \"client\" model
* 200 - 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() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
}
@@ -586,51 +586,51 @@ public class FakeApi {
* To test \"client\" model
* To test \"client\" model
* 200 - 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 params) throws IOException {
- HttpResponse response = testClientModelForHttpResponse(client, params);
+ public Client testClientModel(Client body, Map params) throws IOException {
+ HttpResponse response = testClientModelForHttpResponse(body, params);
TypeReference typeRef = new TypeReference() {};
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 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 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
* 200 - 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 requestBody) throws IOException {
- testInlineAdditionalPropertiesForHttpResponse(requestBody);
+ public void testInlineAdditionalProperties(Map param) throws IOException {
+ testInlineAdditionalPropertiesForHttpResponse(param);
}
/**
* test inline additionalProperties
* 200 - 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 requestBody, Map params) throws IOException {
- testInlineAdditionalPropertiesForHttpResponse(requestBody, params);
+ public void testInlineAdditionalProperties(Map param, Map params) throws IOException {
+ testInlineAdditionalPropertiesForHttpResponse(param, params);
}
- public HttpResponse testInlineAdditionalPropertiesForHttpResponse(Map 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 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 requestBody, Map 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 param, Map 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();
}
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index 18d814a7906..71e359d2487 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -44,12 +44,12 @@ public class FakeClassnameTags123Api {
* To test class name in snake case
* To test class name in snake case
* 200 - 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() {};
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
* 200 - 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 params) throws IOException {
- HttpResponse response = testClassnameForHttpResponse(client, params);
+ public Client testClassname(Client body, Map params) throws IOException {
+ HttpResponse response = testClassnameForHttpResponse(body, params);
TypeReference typeRef = new TypeReference() {};
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 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 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();
}
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java
index 8691400482e..ef2c90a14a3 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/PetApi.java
@@ -45,58 +45,58 @@ public class PetApi {
/**
* Add a new pet to the store
* 405 - 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
*
405 - 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 params) throws IOException {
- addPetForHttpResponse(pet, params);
+ public void addPet(Pet body, Map 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 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 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 {
* 400 - Invalid ID supplied
*
404 - Pet not found
*
405 - 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 {
*
400 - Invalid ID supplied
*
404 - Pet not found
*
405 - 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 params) throws IOException {
- updatePetForHttpResponse(pet, params);
+ public void updatePet(Pet body, Map 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 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 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();
}
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java
index 87b040d2ce8..403039f991a 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -276,12 +276,12 @@ public class StoreApi {
* Place an order for a pet
* 200 - successful operation
*
400 - 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() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
}
@@ -290,51 +290,51 @@ public class StoreApi {
* Place an order for a pet
* 200 - successful operation
*
400 - 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 params) throws IOException {
- HttpResponse response = placeOrderForHttpResponse(order, params);
+ public Order placeOrder(Order body, Map params) throws IOException {
+ HttpResponse response = placeOrderForHttpResponse(body, params);
TypeReference typeRef = new TypeReference() {};
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 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 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();
}
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java
index 86b81e9b25e..21b7c004ed2 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/UserApi.java
@@ -44,59 +44,59 @@ public class UserApi {
* Create user
* This can only be done by the logged in user.
* 0 - 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.
*
0 - 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 params) throws IOException {
- createUserForHttpResponse(user, params);
+ public void createUser(User body, Map 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 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 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
* 0 - 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) throws IOException {
- createUsersWithArrayInputForHttpResponse(user);
+ public void createUsersWithArrayInput(List body) throws IOException {
+ createUsersWithArrayInputForHttpResponse(body);
}
/**
* Creates list of users with given input array
* 0 - 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, Map params) throws IOException {
- createUsersWithArrayInputForHttpResponse(user, params);
+ public void createUsersWithArrayInput(List body, Map params) throws IOException {
+ createUsersWithArrayInputForHttpResponse(body, params);
}
- public HttpResponse createUsersWithArrayInputForHttpResponse(List 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 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, Map 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 body, Map 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
* 0 - 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) throws IOException {
- createUsersWithListInputForHttpResponse(user);
+ public void createUsersWithListInput(List body) throws IOException {
+ createUsersWithListInputForHttpResponse(body);
}
/**
* Creates list of users with given input array
* 0 - 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, Map params) throws IOException {
- createUsersWithListInputForHttpResponse(user, params);
+ public void createUsersWithListInput(List body, Map params) throws IOException {
+ createUsersWithListInputForHttpResponse(body, params);
}
- public HttpResponse createUsersWithListInputForHttpResponse(List 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 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, Map 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 body, Map 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 {
* 400 - Invalid user supplied
*
404 - 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 {
*
400 - Invalid user supplied
*
404 - 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 params) throws IOException {
- updateUserForHttpResponse(username, user, params);
+ public void updateUser(String username, User body, Map 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 uriVariables = new HashMap();
@@ -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 uriVariables = new HashMap();
@@ -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 params) throws IOException {
+ public HttpResponse updateUserForHttpResponse(String username, User body, Map 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 uriVariables = new HashMap();
@@ -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();
}
diff --git a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
index a618e3928c9..4a8546e0c16 100644
--- a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/client/petstore/java/jersey1/docs/FakeApi.md b/samples/client/petstore/java/jersey1/docs/FakeApi.md
index 62046473c1f..8e3385cc83d 100644
--- a/samples/client/petstore/java/jersey1/docs/FakeApi.md
+++ b/samples/client/petstore/java/jersey1/docs/FakeApi.md
@@ -65,7 +65,7 @@ No authorization required
# **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
# **testBodyWithFileSchema**
-> testBodyWithFileSchema(fileSchemaTestClass)
+> testBodyWithFileSchema(body)
@@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
FakeApi apiInstance = new FakeApi();
-FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
+FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try {
- apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
+ apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace();
@@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
+ **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -244,7 +244,7 @@ No authorization required
# **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
# **testClientModel**
-> Client testClientModel(client)
+> Client testClientModel(body)
To test \"client\" model
@@ -302,9 +302,9 @@ To test \"client\" model
FakeApi apiInstance = new FakeApi();
-Client client = new Client(); // Client | client model
+Client body = new Client(); // Client | client model
try {
- Client result = apiInstance.testClientModel(client);
+ Client result = apiInstance.testClientModel(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
+ **body** | [**Client**](Client.md)| client model |
### Return type
@@ -524,7 +524,7 @@ No authorization required
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(requestBody)
+> testInlineAdditionalProperties(param)
test inline additionalProperties
@@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi();
-Map requestBody = new HashMap(); // Map | request body
+Map param = new HashMap(); // Map | request body
try {
- apiInstance.testInlineAdditionalProperties(requestBody);
+ apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace();
@@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **requestBody** | [**Map<String, String>**](String.md)| request body |
+ **param** | [**Map<String, String>**](String.md)| request body |
### Return type
diff --git a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
index 89cd0fb3f73..873b7493623 100644
--- a/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/jersey1/docs/FakeClassnameTags123Api.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/client/petstore/java/jersey1/docs/PetApi.md b/samples/client/petstore/java/jersey1/docs/PetApi.md
index 8d621d1682a..fa157be7012 100644
--- a/samples/client/petstore/java/jersey1/docs/PetApi.md
+++ b/samples/client/petstore/java/jersey1/docs/PetApi.md
@@ -17,7 +17,7 @@ Method | HTTP request | Description
# **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
# **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
diff --git a/samples/client/petstore/java/jersey1/docs/StoreApi.md b/samples/client/petstore/java/jersey1/docs/StoreApi.md
index 578e086a3e1..30d782f82d9 100644
--- a/samples/client/petstore/java/jersey1/docs/StoreApi.md
+++ b/samples/client/petstore/java/jersey1/docs/StoreApi.md
@@ -152,7 +152,7 @@ No authorization required
# **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
diff --git a/samples/client/petstore/java/jersey1/docs/UserApi.md b/samples/client/petstore/java/jersey1/docs/UserApi.md
index b7b880585f7..5969abd518d 100644
--- a/samples/client/petstore/java/jersey1/docs/UserApi.md
+++ b/samples/client/petstore/java/jersey1/docs/UserApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **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
# **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 = Arrays.asList(null); // List | List of user object
+List body = Arrays.asList(null); // List | List of user object
try {
- apiInstance.createUsersWithArrayInput(user);
+ apiInstance.createUsersWithArrayInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
e.printStackTrace();
@@ -85,7 +85,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**List<User>**](List.md)| List of user object |
+ **body** | [**List<User>**](List.md)| List of user object |
### Return type
@@ -102,7 +102,7 @@ No authorization required
# **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 = Arrays.asList(null); // List | List of user object
+List body = Arrays.asList(null); // List | List of user object
try {
- apiInstance.createUsersWithListInput(user);
+ apiInstance.createUsersWithListInput(body);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
e.printStackTrace();
@@ -127,7 +127,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**List<User>**](List.md)| List of user object |
+ **body** | [**List<User>**](List.md)| List of user object |
### Return type
@@ -314,7 +314,7 @@ No authorization required
# **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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 7d39d56b6c4..86c5a970a41 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java
index f4f7e114907..788ded6e208 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -95,12 +95,12 @@ public class FakeApi {
/**
*
* Test serialization of object with outer number type
- * @param outerComposite Input composite as post body (optional)
+ * @param body Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException if fails to make API call
*/
- public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
- Object localVarPostBody = outerComposite;
+ public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
+ Object localVarPostBody = body;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -206,15 +206,15 @@ public class FakeApi {
/**
*
* For this test, the body for this request much reference a schema named `File`.
- * @param fileSchemaTestClass (required)
+ * @param body (required)
* @throws ApiException if fails to make API call
*/
- public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
- Object localVarPostBody = fileSchemaTestClass;
+ public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
+ Object localVarPostBody = body;
- // verify the required parameter 'fileSchemaTestClass' is set
- if (fileSchemaTestClass == null) {
- throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
}
// create path and map variables
@@ -248,20 +248,20 @@ public class FakeApi {
*
*
* @param query (required)
- * @param user (required)
+ * @param body (required)
* @throws ApiException if fails to make API call
*/
- public void testBodyWithQueryParams(String query, User user) throws ApiException {
- Object localVarPostBody = user;
+ public void testBodyWithQueryParams(String query, User body) throws ApiException {
+ Object localVarPostBody = body;
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
}
- // verify the required parameter 'user' is set
- if (user == null) {
- throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
}
// create path and map variables
@@ -295,16 +295,16 @@ public class FakeApi {
/**
* To test \"client\" model
* To test \"client\" model
- * @param client client model (required)
+ * @param body client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testClientModel(Client client) throws ApiException {
- Object localVarPostBody = client;
+ public Client testClientModel(Client body) throws ApiException {
+ Object localVarPostBody = body;
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
}
// create path and map variables
@@ -553,15 +553,15 @@ if (booleanGroup != null)
/**
* test inline additionalProperties
*
- * @param requestBody request body (required)
+ * @param param request body (required)
* @throws ApiException if fails to make API call
*/
- public void testInlineAdditionalProperties(Map requestBody) throws ApiException {
- Object localVarPostBody = requestBody;
+ public void testInlineAdditionalProperties(Map 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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index e1d2f6cd762..ce73d508cdb 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java
index a2516b11270..db0a20e371d 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/PetApi.java
@@ -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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java
index 59cf7caf1aa..b59fed3e281 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -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
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java
index 22df647c651..c8c731c3d5a 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/UserApi.java
@@ -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) throws ApiException {
- Object localVarPostBody = user;
+ public void createUsersWithArrayInput(List 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) throws ApiException {
- Object localVarPostBody = user;
+ public void createUsersWithListInput(List 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
diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
index a618e3928c9..4a8546e0c16 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
index 62046473c1f..8e3385cc83d 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md
@@ -65,7 +65,7 @@ No authorization required
# **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
# **testBodyWithFileSchema**
-> testBodyWithFileSchema(fileSchemaTestClass)
+> testBodyWithFileSchema(body)
@@ -214,9 +214,9 @@ For this test, the body for this request much reference a schema named `Fil
FakeApi apiInstance = new FakeApi();
-FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
+FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
try {
- apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
+ apiInstance.testBodyWithFileSchema(body);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
e.printStackTrace();
@@ -227,7 +227,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
+ **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -244,7 +244,7 @@ No authorization required
# **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
# **testClientModel**
-> Client testClientModel(client)
+> Client testClientModel(body)
To test \"client\" model
@@ -302,9 +302,9 @@ To test \"client\" model
FakeApi apiInstance = new FakeApi();
-Client client = new Client(); // Client | client model
+Client body = new Client(); // Client | client model
try {
- Client result = apiInstance.testClientModel(client);
+ Client result = apiInstance.testClientModel(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -316,7 +316,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
+ **body** | [**Client**](Client.md)| client model |
### Return type
@@ -524,7 +524,7 @@ No authorization required
# **testInlineAdditionalProperties**
-> testInlineAdditionalProperties(requestBody)
+> testInlineAdditionalProperties(param)
test inline additionalProperties
@@ -536,9 +536,9 @@ test inline additionalProperties
FakeApi apiInstance = new FakeApi();
-Map requestBody = new HashMap(); // Map | request body
+Map param = new HashMap(); // Map | request body
try {
- apiInstance.testInlineAdditionalProperties(requestBody);
+ apiInstance.testInlineAdditionalProperties(param);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
e.printStackTrace();
@@ -549,7 +549,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **requestBody** | [**Map<String, String>**](String.md)| request body |
+ **param** | [**Map<String, String>**](String.md)| request body |
### Return type
diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
index 89cd0fb3f73..873b7493623 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/FakeClassnameTags123Api.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
# **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
diff --git a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
index 8d621d1682a..fa157be7012 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/PetApi.md
@@ -17,7 +17,7 @@ Method | HTTP request | Description
# **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
# **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
diff --git a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
index 578e086a3e1..30d782f82d9 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/StoreApi.md
@@ -152,7 +152,7 @@ No authorization required
# **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
diff --git a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
index b7b880585f7..5969abd518d 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/UserApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **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
# **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 = Arrays.asList(null); // List