[java-client][resteasy][jersey2][google-api-client][okhttp-json] several fixes to make sent requests more accurate (#3703)

This commit is contained in:
Jérémie Bresson
2019-08-22 09:50:47 +02:00
committed by GitHub
parent f6ead7b877
commit 870bb1c858
40 changed files with 168 additions and 141 deletions

View File

@@ -5,6 +5,7 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;

View File

@@ -13,6 +13,7 @@ import org.openapitools.client.model.User;
import org.openapitools.client.model.XmlItem;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;
@@ -807,7 +808,7 @@ public class FakeApi {
String localVarUrl = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -848,7 +849,7 @@ public class FakeApi {
String localVarUrl = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -1362,7 +1363,7 @@ public class FakeApi {
String localVarUrl = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}
@@ -1416,7 +1417,7 @@ public class FakeApi {
String localVarUrl = uriBuilder.build().toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PUT, genericUrl, content).execute();
}

View File

@@ -5,6 +5,7 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Client;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;

View File

@@ -7,6 +7,7 @@ import org.openapitools.client.model.ModelApiResponse;
import org.openapitools.client.model.Pet;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;
@@ -599,7 +600,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -634,7 +635,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -681,7 +682,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -716,7 +717,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -767,7 +768,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}
@@ -805,7 +806,7 @@ public class PetApi {
String localVarUrl = uriBuilder.buildFromMap(uriVariables).toString();
GenericUrl genericUrl = new GenericUrl(localVarUrl);
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpContent content = new EmptyContent();
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content).execute();
}

View File

@@ -5,6 +5,7 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.model.Order;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;

View File

@@ -5,6 +5,7 @@ import org.openapitools.client.ApiClient;
import org.openapitools.client.model.User;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpContent;
import com.google.api.client.http.InputStreamContent;

View File

@@ -688,7 +688,7 @@ public class ApiClient {
}
}
Entity<?> entity = serialize(body, formParams, contentType);
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
Response response = null;
@@ -700,7 +700,7 @@ public class ApiClient {
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
@@ -760,8 +760,13 @@ public class ApiClient {
clientConfig.register(json);
clientConfig.register(JacksonFeature.class);
clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
// turn off compliance validation to be able to send payloads with DELETE calls
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
if (debugging) {
clientConfig.register(new LoggingFilter(java.util.logging.Logger.getLogger(LoggingFilter.class.getName()), true));
} else {
// suppress warnings for payloads with DELETE calls:
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
}
performAdditionalClientConfiguration(clientConfig);
return ClientBuilder.newClient(clientConfig);

View File

@@ -584,7 +584,7 @@ public class FakeApi {
</table>
*/
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'number' is set
if (number == null) {
@@ -705,7 +705,7 @@ if (paramCallback != null)
</table>
*/
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -784,7 +784,7 @@ if (enumFormString != null)
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
@@ -928,7 +928,7 @@ if (booleanGroup != null)
</table>
*/
public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'param' is set
if (param == null) {
@@ -1007,7 +1007,7 @@ if (param2 != null)
</table>
*/
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
if (pipe == null) {

View File

@@ -134,7 +134,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -201,7 +201,7 @@ public class PetApi {
</table>
*/
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'status' is set
if (status == null) {
@@ -270,7 +270,7 @@ public class PetApi {
*/
@Deprecated
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'tags' is set
if (tags == null) {
@@ -337,7 +337,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -472,7 +472,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -543,7 +543,7 @@ if (status != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -614,7 +614,7 @@ if (file != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {

View File

@@ -66,7 +66,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -127,7 +127,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory";
@@ -188,7 +188,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {

View File

@@ -252,7 +252,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -319,7 +319,7 @@ public class UserApi {
</table>
*/
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -386,7 +386,7 @@ public class UserApi {
</table>
*/
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -453,7 +453,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout";

View File

@@ -688,7 +688,7 @@ public class ApiClient {
}
}
Entity<?> entity = serialize(body, formParams, contentType);
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
Response response = null;
@@ -700,7 +700,7 @@ public class ApiClient {
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
@@ -760,11 +760,16 @@ public class ApiClient {
clientConfig.register(json);
clientConfig.register(JacksonFeature.class);
clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
// turn off compliance validation to be able to send payloads with DELETE calls
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
if (debugging) {
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
// Set logger to ALL
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
} else {
// suppress warnings for payloads with DELETE calls:
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
}
performAdditionalClientConfiguration(clientConfig);
return ClientBuilder.newClient(clientConfig);

View File

@@ -584,7 +584,7 @@ public class FakeApi {
</table>
*/
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'number' is set
if (number == null) {
@@ -705,7 +705,7 @@ if (paramCallback != null)
</table>
*/
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -784,7 +784,7 @@ if (enumFormString != null)
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
@@ -928,7 +928,7 @@ if (booleanGroup != null)
</table>
*/
public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'param' is set
if (param == null) {
@@ -1007,7 +1007,7 @@ if (param2 != null)
</table>
*/
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
if (pipe == null) {

View File

@@ -134,7 +134,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -201,7 +201,7 @@ public class PetApi {
</table>
*/
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'status' is set
if (status == null) {
@@ -270,7 +270,7 @@ public class PetApi {
*/
@Deprecated
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'tags' is set
if (tags == null) {
@@ -337,7 +337,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -472,7 +472,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -543,7 +543,7 @@ if (status != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -614,7 +614,7 @@ if (file != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {

View File

@@ -66,7 +66,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -127,7 +127,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory";
@@ -188,7 +188,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {

View File

@@ -252,7 +252,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -319,7 +319,7 @@ public class UserApi {
</table>
*/
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -386,7 +386,7 @@ public class UserApi {
</table>
*/
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -453,7 +453,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout";

View File

@@ -688,7 +688,7 @@ public class ApiClient {
}
}
Entity<?> entity = serialize(body, formParams, contentType);
Entity<?> entity = (body == null) ? Entity.json("") : serialize(body, formParams, contentType);
Response response = null;
@@ -700,7 +700,7 @@ public class ApiClient {
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
@@ -760,11 +760,16 @@ public class ApiClient {
clientConfig.register(json);
clientConfig.register(JacksonFeature.class);
clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
// turn off compliance validation to be able to send payloads with DELETE calls
clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true);
if (debugging) {
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
// Set logger to ALL
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
} else {
// suppress warnings for payloads with DELETE calls:
java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE);
}
performAdditionalClientConfiguration(clientConfig);
return ClientBuilder.newClient(clientConfig);

View File

@@ -584,7 +584,7 @@ public class FakeApi {
</table>
*/
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'number' is set
if (number == null) {
@@ -705,7 +705,7 @@ if (paramCallback != null)
</table>
*/
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -784,7 +784,7 @@ if (enumFormString != null)
</table>
*/
public ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
@@ -928,7 +928,7 @@ if (booleanGroup != null)
</table>
*/
public ApiResponse<Void> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'param' is set
if (param == null) {
@@ -1007,7 +1007,7 @@ if (param2 != null)
</table>
*/
public ApiResponse<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
if (pipe == null) {

View File

@@ -134,7 +134,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -201,7 +201,7 @@ public class PetApi {
</table>
*/
public ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'status' is set
if (status == null) {
@@ -270,7 +270,7 @@ public class PetApi {
*/
@Deprecated
public ApiResponse<List<Pet>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'tags' is set
if (tags == null) {
@@ -337,7 +337,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Pet> getPetByIdWithHttpInfo(Long petId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -472,7 +472,7 @@ public class PetApi {
</table>
*/
public ApiResponse<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -543,7 +543,7 @@ if (status != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File file) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -614,7 +614,7 @@ if (file != null)
</table>
*/
public ApiResponse<ModelApiResponse> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {

View File

@@ -66,7 +66,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Void> deleteOrderWithHttpInfo(String orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -127,7 +127,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Map<String, Integer>> getInventoryWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory";
@@ -188,7 +188,7 @@ public class StoreApi {
</table>
*/
public ApiResponse<Order> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {

View File

@@ -252,7 +252,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> deleteUserWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -319,7 +319,7 @@ public class UserApi {
</table>
*/
public ApiResponse<User> getUserByNameWithHttpInfo(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -386,7 +386,7 @@ public class UserApi {
</table>
*/
public ApiResponse<String> loginUserWithHttpInfo(String username, String password) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -453,7 +453,7 @@ public class UserApi {
</table>
*/
public ApiResponse<Void> logoutUserWithHttpInfo() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout";

View File

@@ -942,7 +942,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1168,7 +1168,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testEnumParametersCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1312,7 +1312,7 @@ public class FakeApi {
return localVarCall;
}
private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1637,7 +1637,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/jsonFormData";
@@ -1762,7 +1762,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testQueryParameterCollectionFormatCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/test-query-paramters";

View File

@@ -180,7 +180,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -297,7 +297,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call findPetsByStatusCall(List<String> status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/findByStatus";
@@ -416,7 +416,7 @@ public class PetApi {
*/
@Deprecated
public okhttp3.Call findPetsByTagsCall(List<String> tags, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/findByTags";
@@ -541,7 +541,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -776,7 +776,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -898,7 +898,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}/uploadImage"
@@ -1024,7 +1024,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/{petId}/uploadImageWithRequiredFile"

View File

@@ -68,7 +68,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/order/{order_id}"
@@ -176,7 +176,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call getInventoryCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory";
@@ -279,7 +279,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/order/{order_id}"

View File

@@ -383,7 +383,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -494,7 +494,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -612,7 +612,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/login";
@@ -739,7 +739,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call logoutUserCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout";

View File

@@ -942,7 +942,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1168,7 +1168,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testEnumParametersCall(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1312,7 +1312,7 @@ public class FakeApi {
return localVarCall;
}
private okhttp3.Call testGroupParametersCall(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake";
@@ -1637,7 +1637,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testJsonFormDataCall(String param, String param2, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/jsonFormData";
@@ -1762,7 +1762,7 @@ public class FakeApi {
</table>
*/
public okhttp3.Call testQueryParameterCollectionFormatCall(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/test-query-paramters";

View File

@@ -180,7 +180,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call deletePetCall(Long petId, String apiKey, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -297,7 +297,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call findPetsByStatusCall(List<String> status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/findByStatus";
@@ -416,7 +416,7 @@ public class PetApi {
*/
@Deprecated
public okhttp3.Call findPetsByTagsCall(List<String> tags, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/findByTags";
@@ -541,7 +541,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call getPetByIdCall(Long petId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -776,7 +776,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call updatePetWithFormCall(Long petId, String name, String status, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}"
@@ -898,7 +898,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call uploadFileCall(Long petId, String additionalMetadata, File file, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/pet/{petId}/uploadImage"
@@ -1024,7 +1024,7 @@ public class PetApi {
</table>
*/
public okhttp3.Call uploadFileWithRequiredFileCall(Long petId, File requiredFile, String additionalMetadata, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake/{petId}/uploadImageWithRequiredFile"

View File

@@ -68,7 +68,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call deleteOrderCall(String orderId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/order/{order_id}"
@@ -176,7 +176,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call getInventoryCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory";
@@ -279,7 +279,7 @@ public class StoreApi {
</table>
*/
public okhttp3.Call getOrderByIdCall(Long orderId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/order/{order_id}"

View File

@@ -383,7 +383,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -494,7 +494,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call getUserByNameCall(String username, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/{username}"
@@ -612,7 +612,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call loginUserCall(String username, String password, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/login";
@@ -739,7 +739,7 @@ public class UserApi {
</table>
*/
public okhttp3.Call logoutUserCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout";

View File

@@ -653,9 +653,9 @@ public class ApiClient {
} else if ("PUT".equals(method)) {
response = invocationBuilder.put(entity);
} else if ("DELETE".equals(method)) {
response = invocationBuilder.delete();
response = invocationBuilder.method("DELETE", entity);
} else if ("PATCH".equals(method)) {
response = invocationBuilder.header("X-HTTP-Method-Override", "PATCH").post(entity);
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("OPTIONS".equals(method)) {

View File

@@ -374,7 +374,7 @@ public class FakeApi {
* @throws ApiException if fails to make API call
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'number' is set
if (number == null) {
@@ -464,7 +464,7 @@ if (paramCallback != null)
* @throws ApiException if fails to make API call
*/
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
@@ -516,7 +516,7 @@ if (enumFormString != null)
* @throws ApiException if fails to make API call
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
@@ -615,7 +615,7 @@ if (booleanGroup != null)
* @throws ApiException if fails to make API call
*/
public void testJsonFormData(String param, String param2) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'param' is set
if (param == null) {
@@ -668,7 +668,7 @@ if (param2 != null)
* @throws ApiException if fails to make API call
*/
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
if (pipe == null) {

View File

@@ -84,7 +84,7 @@ public class PetApi {
* @throws ApiException if fails to make API call
*/
public void deletePet(Long petId, String apiKey) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -128,7 +128,7 @@ public class PetApi {
* @throws ApiException if fails to make API call
*/
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'status' is set
if (status == null) {
@@ -172,7 +172,7 @@ public class PetApi {
*/
@Deprecated
public List<Pet> findPetsByTags(List<String> tags) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'tags' is set
if (tags == null) {
@@ -214,7 +214,7 @@ public class PetApi {
* @throws ApiException if fails to make API call
*/
public Pet getPetById(Long petId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -297,7 +297,7 @@ public class PetApi {
* @throws ApiException if fails to make API call
*/
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -345,7 +345,7 @@ if (status != null)
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File file) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {
@@ -393,7 +393,7 @@ if (file != null)
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
if (petId == null) {

View File

@@ -41,7 +41,7 @@ public class StoreApi {
* @throws ApiException if fails to make API call
*/
public void deleteOrder(String orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {
@@ -82,7 +82,7 @@ public class StoreApi {
* @throws ApiException if fails to make API call
*/
public Map<String, Integer> getInventory() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/store/inventory".replaceAll("\\{format\\}","json");
@@ -118,7 +118,7 @@ public class StoreApi {
* @throws ApiException if fails to make API call
*/
public Order getOrderById(Long orderId) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
if (orderId == null) {

View File

@@ -161,7 +161,7 @@ public class UserApi {
* @throws ApiException if fails to make API call
*/
public void deleteUser(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -203,7 +203,7 @@ public class UserApi {
* @throws ApiException if fails to make API call
*/
public User getUserByName(String username) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -246,7 +246,7 @@ public class UserApi {
* @throws ApiException if fails to make API call
*/
public String loginUser(String username, String password) throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// verify the required parameter 'username' is set
if (username == null) {
@@ -292,7 +292,7 @@ public class UserApi {
* @throws ApiException if fails to make API call
*/
public void logoutUser() throws ApiException {
Object localVarPostBody = new Object();
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/user/logout".replaceAll("\\{format\\}","json");