Merge remote-tracking branch 'origin/master' into 5.2.x

This commit is contained in:
William Cheng
2021-04-28 17:48:21 +08:00
1666 changed files with 42781 additions and 17405 deletions

View File

@@ -25,7 +25,6 @@ import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.Charset;
import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
@@ -36,6 +35,8 @@ import java.util.StringJoiner;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Configuration and utility class for API clients.
*
@@ -52,8 +53,6 @@ import java.util.stream.Collectors;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient {
private static final Charset UTF_8 = Charset.forName("UTF-8");
private HttpClient.Builder builder;
private ObjectMapper mapper;
private String scheme;
@@ -176,7 +175,7 @@ public class ApiClient {
public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri) {
this.builder = builder;
this.mapper = mapper;
updateBaseUri(baseUri);
updateBaseUri(baseUri != null ? baseUri : getDefaultBaseUri());
interceptor = null;
readTimeout = null;
responseInterceptor = null;

View File

@@ -67,6 +67,14 @@ public class AnotherFakeApi {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* To test special tags
* To test special tags and operation ID starting with number

View File

@@ -75,6 +75,14 @@ public class FakeApi {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* creates an XmlItem
* this route creates an XmlItem

View File

@@ -67,6 +67,14 @@ public class FakeClassnameTags123Api {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* To test class name in snake case
* To test class name in snake case

View File

@@ -70,6 +70,14 @@ public class PetApi {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Add a new pet to the store
*

View File

@@ -67,6 +67,14 @@ public class StoreApi {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors

View File

@@ -67,6 +67,14 @@ public class UserApi {
localVarResponse.body());
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Create user
* This can only be done by the logged in user.

View File

@@ -25,7 +25,6 @@ import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.Charset;
import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;
@@ -36,6 +35,8 @@ import java.util.StringJoiner;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Configuration and utility class for API clients.
*
@@ -52,8 +53,6 @@ import java.util.stream.Collectors;
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiClient {
private static final Charset UTF_8 = Charset.forName("UTF-8");
private HttpClient.Builder builder;
private ObjectMapper mapper;
private String scheme;
@@ -176,7 +175,7 @@ public class ApiClient {
public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri) {
this.builder = builder;
this.mapper = mapper;
updateBaseUri(baseUri);
updateBaseUri(baseUri != null ? baseUri : getDefaultBaseUri());
interceptor = null;
readTimeout = null;
responseInterceptor = null;

View File

@@ -58,6 +58,14 @@ public class AnotherFakeApi {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* To test special tags
* To test special tags and operation ID starting with number
@@ -87,10 +95,7 @@ public class AnotherFakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"call123testSpecialTags call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "call123testSpecialTags call received non-success response");
}
return new ApiResponse<Client>(
localVarResponse.statusCode(),

View File

@@ -66,6 +66,14 @@ public class FakeApi {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* creates an XmlItem
* this route creates an XmlItem
@@ -93,10 +101,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"createXmlItem call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "createXmlItem call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -170,10 +175,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"fakeOuterBooleanSerialize call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "fakeOuterBooleanSerialize call received non-success response");
}
return new ApiResponse<Boolean>(
localVarResponse.statusCode(),
@@ -243,10 +245,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"fakeOuterCompositeSerialize call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "fakeOuterCompositeSerialize call received non-success response");
}
return new ApiResponse<OuterComposite>(
localVarResponse.statusCode(),
@@ -316,10 +315,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"fakeOuterNumberSerialize call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "fakeOuterNumberSerialize call received non-success response");
}
return new ApiResponse<BigDecimal>(
localVarResponse.statusCode(),
@@ -389,10 +385,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"fakeOuterStringSerialize call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "fakeOuterStringSerialize call received non-success response");
}
return new ApiResponse<String>(
localVarResponse.statusCode(),
@@ -460,10 +453,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testBodyWithFileSchema call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testBodyWithFileSchema call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -537,10 +527,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testBodyWithQueryParams call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testBodyWithQueryParams call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -627,10 +614,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testClientModel call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testClientModel call received non-success response");
}
return new ApiResponse<Client>(
localVarResponse.statusCode(),
@@ -728,10 +712,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testEndpointParameters call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testEndpointParameters call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -823,10 +804,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testEnumParameters call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testEnumParameters call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -949,10 +927,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testGroupParameters call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testGroupParameters call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -1121,10 +1096,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testInlineAdditionalProperties call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testInlineAdditionalProperties call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -1198,10 +1170,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testJsonFormData call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testJsonFormData call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -1279,10 +1248,7 @@ public class FakeApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testQueryParameterCollectionFormat call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testQueryParameterCollectionFormat call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),

View File

@@ -58,6 +58,14 @@ public class FakeClassnameTags123Api {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* To test class name in snake case
* To test class name in snake case
@@ -87,10 +95,7 @@ public class FakeClassnameTags123Api {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"testClassname call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "testClassname call received non-success response");
}
return new ApiResponse<Client>(
localVarResponse.statusCode(),

View File

@@ -61,6 +61,14 @@ public class PetApi {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Add a new pet to the store
*
@@ -88,10 +96,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"addPet call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "addPet call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -165,10 +170,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"deletePet call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "deletePet call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -240,10 +242,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"findPetsByStatus call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "findPetsByStatus call received non-success response");
}
return new ApiResponse<List<Pet>>(
localVarResponse.statusCode(),
@@ -324,10 +323,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"findPetsByTags call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "findPetsByTags call received non-success response");
}
return new ApiResponse<Set<Pet>>(
localVarResponse.statusCode(),
@@ -404,10 +400,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"getPetById call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "getPetById call received non-success response");
}
return new ApiResponse<Pet>(
localVarResponse.statusCode(),
@@ -474,10 +467,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"updatePet call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "updatePet call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -553,10 +543,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"updatePetWithForm call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "updatePetWithForm call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -629,10 +616,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"uploadFile call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "uploadFile call received non-success response");
}
return new ApiResponse<ModelApiResponse>(
localVarResponse.statusCode(),
@@ -705,10 +689,7 @@ public class PetApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"uploadFileWithRequiredFile call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "uploadFileWithRequiredFile call received non-success response");
}
return new ApiResponse<ModelApiResponse>(
localVarResponse.statusCode(),

View File

@@ -58,6 +58,14 @@ public class StoreApi {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@@ -85,10 +93,7 @@ public class StoreApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"deleteOrder call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "deleteOrder call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -155,10 +160,7 @@ public class StoreApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"getInventory call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "getInventory call received non-success response");
}
return new ApiResponse<Map<String, Integer>>(
localVarResponse.statusCode(),
@@ -222,10 +224,7 @@ public class StoreApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"getOrderById call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "getOrderById call received non-success response");
}
return new ApiResponse<Order>(
localVarResponse.statusCode(),
@@ -294,10 +293,7 @@ public class StoreApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"placeOrder call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "placeOrder call received non-success response");
}
return new ApiResponse<Order>(
localVarResponse.statusCode(),

View File

@@ -58,6 +58,14 @@ public class UserApi {
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
}
protected ApiException createApiException(HttpResponse<InputStream> response, String msgPrefix) throws IOException {
String body = response.body() == null ? null : new String(response.body().readAllBytes());
if (body != null) {
msgPrefix += ": " + body;
}
return new ApiException(response.statusCode(), msgPrefix, response.headers(), body);
}
/**
* Create user
* This can only be done by the logged in user.
@@ -85,10 +93,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"createUser call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "createUser call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -160,10 +165,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"createUsersWithArrayInput call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "createUsersWithArrayInput call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -235,10 +237,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"createUsersWithListInput call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "createUsersWithListInput call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -310,10 +309,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"deleteUser call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "deleteUser call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -382,10 +378,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"getUserByName call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "getUserByName call received non-success response");
}
return new ApiResponse<User>(
localVarResponse.statusCode(),
@@ -456,10 +449,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"loginUser call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "loginUser call received non-success response");
}
return new ApiResponse<String>(
localVarResponse.statusCode(),
@@ -537,10 +527,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"logoutUser call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "logoutUser call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),
@@ -604,10 +591,7 @@ public class UserApi {
memberVarResponseInterceptor.accept(localVarResponse);
}
if (localVarResponse.statusCode()/ 100 != 2) {
throw new ApiException(localVarResponse.statusCode(),
"updateUser call received non-success response",
localVarResponse.headers(),
localVarResponse.body() == null ? null : new String(localVarResponse.body().readAllBytes()));
throw createApiException(localVarResponse, "updateUser call received non-success response");
}
return new ApiResponse<Void>(
localVarResponse.statusCode(),

View File

@@ -36,8 +36,8 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
@@ -82,8 +82,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
@@ -100,8 +100,8 @@ if(hasProperty('target') && target == 'android') {
dependencies {
implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.7'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.gsonfire:gson-fire:1.8.4'
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'

View File

@@ -36,8 +36,8 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
@@ -82,8 +82,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
@@ -100,8 +100,8 @@ if(hasProperty('target') && target == 'android') {
dependencies {
implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.7'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.gsonfire:gson-fire:1.8.4'
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'

View File

@@ -36,8 +36,8 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Rename the aar correctly
@@ -82,8 +82,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
@@ -100,8 +100,8 @@ if(hasProperty('target') && target == 'android') {
dependencies {
implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.7'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.gsonfire:gson-fire:1.8.4'
implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1'