forked from loafle/openapi-generator-original
add int/long check for @min/@max in java model (#4395)
This commit is contained in:
parent
a13dee7167
commit
a143e9c10c
@ -35,8 +35,18 @@
|
|||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
|
{{#isInteger}}
|
||||||
@Min({{minimum}})
|
@Min({{minimum}})
|
||||||
|
{{/isInteger}}
|
||||||
|
{{#isLong}}
|
||||||
|
@Min({{minimum}})
|
||||||
|
{{/isLong}}
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
|
{{#isInteger}}
|
||||||
@Max({{maximum}})
|
@Max({{maximum}})
|
||||||
{{/maximum}}
|
{{/isInteger}}
|
||||||
|
{{#isLong}}
|
||||||
|
@Max({{maximum}})
|
||||||
|
{{/isLong}}
|
||||||
|
{{/maximum}}
|
||||||
|
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -137,6 +139,8 @@ null (empty response body)
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -151,7 +155,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -171,7 +175,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
|
**enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
|
||||||
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -8,17 +8,17 @@ git_repo_id=$2
|
|||||||
release_note=$3
|
release_note=$3
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id=""
|
git_user_id="GIT_USER_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id=""
|
git_repo_id="GIT_REPO_ID"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$release_note" = "" ]; then
|
if [ "$release_note" = "" ]; then
|
||||||
release_note=""
|
release_note="Minor update"
|
||||||
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<version>${jodatime-version}</version>
|
<version>${jodatime-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -16,7 +16,7 @@ package io.swagger.client;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class ApiException extends Exception {
|
public class ApiException extends Exception {
|
||||||
private int code = 0;
|
private int code = 0;
|
||||||
private Map<String, List<String>> responseHeaders = null;
|
private Map<String, List<String>> responseHeaders = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
private static ApiClient defaultApiClient = new ApiClient();
|
private static ApiClient defaultApiClient = new ApiClient();
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Pair {
|
public class Pair {
|
||||||
private String name = "";
|
private String name = "";
|
||||||
private String value = "";
|
private String value = "";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -9,475 +9,512 @@
|
|||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.client.api;
|
package io.swagger.client.api;
|
||||||
|
|
||||||
import io.swagger.client.ApiCallback;
|
import io.swagger.client.ApiCallback;
|
||||||
import io.swagger.client.ApiClient;
|
import io.swagger.client.ApiClient;
|
||||||
import io.swagger.client.ApiException;
|
import io.swagger.client.ApiException;
|
||||||
import io.swagger.client.ApiResponse;
|
import io.swagger.client.ApiResponse;
|
||||||
import io.swagger.client.Configuration;
|
import io.swagger.client.Configuration;
|
||||||
import io.swagger.client.Pair;
|
import io.swagger.client.Pair;
|
||||||
import io.swagger.client.ProgressRequestBody;
|
import io.swagger.client.ProgressRequestBody;
|
||||||
import io.swagger.client.ProgressResponseBody;
|
import io.swagger.client.ProgressResponseBody;
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import io.swagger.client.model.Client;
|
import java.math.BigDecimal;
|
||||||
import org.joda.time.DateTime;
|
import io.swagger.client.model.Client;
|
||||||
import org.joda.time.LocalDate;
|
import org.joda.time.DateTime;
|
||||||
|
import org.joda.time.LocalDate;
|
||||||
import java.lang.reflect.Type;
|
|
||||||
import java.util.ArrayList;
|
import java.lang.reflect.Type;
|
||||||
import java.util.HashMap;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
public class FakeApi {
|
|
||||||
private ApiClient apiClient;
|
public class FakeApi {
|
||||||
|
private ApiClient apiClient;
|
||||||
public FakeApi() {
|
|
||||||
this(Configuration.getDefaultApiClient());
|
public FakeApi() {
|
||||||
}
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
public FakeApi(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
public FakeApi(ApiClient apiClient) {
|
||||||
}
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
public ApiClient getApiClient() {
|
|
||||||
return apiClient;
|
public ApiClient getApiClient() {
|
||||||
}
|
return apiClient;
|
||||||
|
}
|
||||||
public void setApiClient(ApiClient apiClient) {
|
|
||||||
this.apiClient = apiClient;
|
public void setApiClient(ApiClient apiClient) {
|
||||||
}
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
/* Build call for testClientModel */
|
|
||||||
private com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
/* Build call for testClientModel */
|
||||||
Object localVarPostBody = body;
|
private com.squareup.okhttp.Call testClientModelCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
|
Object localVarPostBody = body;
|
||||||
// verify the required parameter 'body' is set
|
|
||||||
if (body == null) {
|
// create path and map variables
|
||||||
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
|
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
||||||
}
|
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
|
||||||
// create path and map variables
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
"application/json"
|
||||||
|
};
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||||
final String[] localVarAccepts = {
|
|
||||||
"application/json"
|
final String[] localVarContentTypes = {
|
||||||
};
|
"application/json"
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
};
|
||||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||||
final String[] localVarContentTypes = {
|
|
||||||
"application/json"
|
if(progressListener != null) {
|
||||||
};
|
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
@Override
|
||||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||||
|
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||||
if(progressListener != null) {
|
return originalResponse.newBuilder()
|
||||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||||
@Override
|
.build();
|
||||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
}
|
||||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
});
|
||||||
return originalResponse.newBuilder()
|
}
|
||||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
|
||||||
.build();
|
String[] localVarAuthNames = new String[] { };
|
||||||
}
|
return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||||
});
|
}
|
||||||
}
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
String[] localVarAuthNames = new String[] { };
|
private com.squareup.okhttp.Call testClientModelValidateBeforeCall(Client body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
|
||||||
}
|
// verify the required parameter 'body' is set
|
||||||
|
if (body == null) {
|
||||||
/**
|
throw new ApiException("Missing the required parameter 'body' when calling testClientModel(Async)");
|
||||||
* To test \"client\" model
|
}
|
||||||
*
|
|
||||||
* @param body client model (required)
|
|
||||||
* @return Client
|
com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener);
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
return call;
|
||||||
*/
|
|
||||||
public Client testClientModel(Client body) throws ApiException {
|
|
||||||
ApiResponse<Client> resp = testClientModelWithHttpInfo(body);
|
|
||||||
return resp.getData();
|
|
||||||
}
|
|
||||||
|
}
|
||||||
/**
|
|
||||||
* To test \"client\" model
|
/**
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* To test \"client\" model
|
||||||
* @return ApiResponse<Client>
|
* @param body client model (required)
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
* @return Client
|
||||||
*/
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
|
*/
|
||||||
com.squareup.okhttp.Call call = testClientModelCall(body, null, null);
|
public Client testClientModel(Client body) throws ApiException {
|
||||||
Type localVarReturnType = new TypeToken<Client>(){}.getType();
|
ApiResponse<Client> resp = testClientModelWithHttpInfo(body);
|
||||||
return apiClient.execute(call, localVarReturnType);
|
return resp.getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model (asynchronously)
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @param callback The callback to be executed when the API call finishes
|
* @return ApiResponse<Client>
|
||||||
* @return The request call
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
*/
|
||||||
*/
|
public ApiResponse<Client> testClientModelWithHttpInfo(Client body) throws ApiException {
|
||||||
public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
|
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, null, null);
|
||||||
|
Type localVarReturnType = new TypeToken<Client>(){}.getType();
|
||||||
ProgressResponseBody.ProgressListener progressListener = null;
|
return apiClient.execute(call, localVarReturnType);
|
||||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
}
|
||||||
|
|
||||||
if (callback != null) {
|
/**
|
||||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
* To test \"client\" model (asynchronously)
|
||||||
@Override
|
* To test \"client\" model
|
||||||
public void update(long bytesRead, long contentLength, boolean done) {
|
* @param body client model (required)
|
||||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
* @param callback The callback to be executed when the API call finishes
|
||||||
}
|
* @return The request call
|
||||||
};
|
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||||
|
*/
|
||||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
public com.squareup.okhttp.Call testClientModelAsync(Client body, final ApiCallback<Client> callback) throws ApiException {
|
||||||
@Override
|
|
||||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
ProgressResponseBody.ProgressListener progressListener = null;
|
||||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||||
}
|
|
||||||
};
|
if (callback != null) {
|
||||||
}
|
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||||
|
@Override
|
||||||
com.squareup.okhttp.Call call = testClientModelCall(body, progressListener, progressRequestListener);
|
public void update(long bytesRead, long contentLength, boolean done) {
|
||||||
Type localVarReturnType = new TypeToken<Client>(){}.getType();
|
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||||
apiClient.executeAsync(call, localVarReturnType, callback);
|
}
|
||||||
return call;
|
};
|
||||||
}
|
|
||||||
/* Build call for testEndpointParameters */
|
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||||
private com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
@Override
|
||||||
Object localVarPostBody = null;
|
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
|
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||||
// verify the required parameter 'number' is set
|
}
|
||||||
if (number == null) {
|
};
|
||||||
throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)");
|
}
|
||||||
}
|
|
||||||
|
com.squareup.okhttp.Call call = testClientModelValidateBeforeCall(body, progressListener, progressRequestListener);
|
||||||
// verify the required parameter '_double' is set
|
Type localVarReturnType = new TypeToken<Client>(){}.getType();
|
||||||
if (_double == null) {
|
apiClient.executeAsync(call, localVarReturnType, callback);
|
||||||
throw new ApiException("Missing the required parameter '_double' when calling testEndpointParameters(Async)");
|
return call;
|
||||||
}
|
}
|
||||||
|
/* Build call for testEndpointParameters */
|
||||||
// verify the required parameter 'patternWithoutDelimiter' is set
|
private com.squareup.okhttp.Call testEndpointParametersCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
if (patternWithoutDelimiter == null) {
|
Object localVarPostBody = null;
|
||||||
throw new ApiException("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters(Async)");
|
|
||||||
}
|
// create path and map variables
|
||||||
|
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
||||||
// verify the required parameter '_byte' is set
|
|
||||||
if (_byte == null) {
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
throw new ApiException("Missing the required parameter '_byte' when calling testEndpointParameters(Async)");
|
|
||||||
}
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
// create path and map variables
|
if (integer != null)
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
localVarFormParams.put("integer", integer);
|
||||||
|
if (int32 != null)
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
localVarFormParams.put("int32", int32);
|
||||||
|
if (int64 != null)
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
localVarFormParams.put("int64", int64);
|
||||||
|
if (number != null)
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
localVarFormParams.put("number", number);
|
||||||
if (integer != null)
|
if (_float != null)
|
||||||
localVarFormParams.put("integer", integer);
|
localVarFormParams.put("float", _float);
|
||||||
if (int32 != null)
|
if (_double != null)
|
||||||
localVarFormParams.put("int32", int32);
|
localVarFormParams.put("double", _double);
|
||||||
if (int64 != null)
|
if (string != null)
|
||||||
localVarFormParams.put("int64", int64);
|
localVarFormParams.put("string", string);
|
||||||
if (number != null)
|
if (patternWithoutDelimiter != null)
|
||||||
localVarFormParams.put("number", number);
|
localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
|
||||||
if (_float != null)
|
if (_byte != null)
|
||||||
localVarFormParams.put("float", _float);
|
localVarFormParams.put("byte", _byte);
|
||||||
if (_double != null)
|
if (binary != null)
|
||||||
localVarFormParams.put("double", _double);
|
localVarFormParams.put("binary", binary);
|
||||||
if (string != null)
|
if (date != null)
|
||||||
localVarFormParams.put("string", string);
|
localVarFormParams.put("date", date);
|
||||||
if (patternWithoutDelimiter != null)
|
if (dateTime != null)
|
||||||
localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
|
localVarFormParams.put("dateTime", dateTime);
|
||||||
if (_byte != null)
|
if (password != null)
|
||||||
localVarFormParams.put("byte", _byte);
|
localVarFormParams.put("password", password);
|
||||||
if (binary != null)
|
if (paramCallback != null)
|
||||||
localVarFormParams.put("binary", binary);
|
localVarFormParams.put("callback", paramCallback);
|
||||||
if (date != null)
|
|
||||||
localVarFormParams.put("date", date);
|
final String[] localVarAccepts = {
|
||||||
if (dateTime != null)
|
"application/xml; charset=utf-8", "application/json; charset=utf-8"
|
||||||
localVarFormParams.put("dateTime", dateTime);
|
};
|
||||||
if (password != null)
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
localVarFormParams.put("password", password);
|
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||||
if (paramCallback != null)
|
|
||||||
localVarFormParams.put("callback", paramCallback);
|
final String[] localVarContentTypes = {
|
||||||
|
"application/xml; charset=utf-8", "application/json; charset=utf-8"
|
||||||
final String[] localVarAccepts = {
|
};
|
||||||
"application/xml; charset=utf-8", "application/json; charset=utf-8"
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
};
|
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
|
||||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
if(progressListener != null) {
|
||||||
|
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||||
final String[] localVarContentTypes = {
|
@Override
|
||||||
"application/xml; charset=utf-8", "application/json; charset=utf-8"
|
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||||
};
|
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
return originalResponse.newBuilder()
|
||||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||||
|
.build();
|
||||||
if(progressListener != null) {
|
}
|
||||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
});
|
||||||
@Override
|
}
|
||||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
|
||||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
String[] localVarAuthNames = new String[] { "http_basic_test" };
|
||||||
return originalResponse.newBuilder()
|
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
}
|
||||||
.build();
|
|
||||||
}
|
@SuppressWarnings("rawtypes")
|
||||||
});
|
private com.squareup.okhttp.Call testEndpointParametersValidateBeforeCall(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
}
|
|
||||||
|
// verify the required parameter 'number' is set
|
||||||
String[] localVarAuthNames = new String[] { "http_basic_test" };
|
if (number == null) {
|
||||||
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
throw new ApiException("Missing the required parameter 'number' when calling testEndpointParameters(Async)");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// verify the required parameter '_double' is set
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
if (_double == null) {
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
throw new ApiException("Missing the required parameter '_double' when calling testEndpointParameters(Async)");
|
||||||
* @param number None (required)
|
}
|
||||||
* @param _double None (required)
|
|
||||||
* @param patternWithoutDelimiter None (required)
|
// verify the required parameter 'patternWithoutDelimiter' is set
|
||||||
* @param _byte None (required)
|
if (patternWithoutDelimiter == null) {
|
||||||
* @param integer None (optional)
|
throw new ApiException("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters(Async)");
|
||||||
* @param int32 None (optional)
|
}
|
||||||
* @param int64 None (optional)
|
|
||||||
* @param _float None (optional)
|
// verify the required parameter '_byte' is set
|
||||||
* @param string None (optional)
|
if (_byte == null) {
|
||||||
* @param binary None (optional)
|
throw new ApiException("Missing the required parameter '_byte' when calling testEndpointParameters(Async)");
|
||||||
* @param date None (optional)
|
}
|
||||||
* @param dateTime None (optional)
|
|
||||||
* @param password None (optional)
|
|
||||||
* @param paramCallback None (optional)
|
com.squareup.okhttp.Call call = testEndpointParametersCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, progressListener, progressRequestListener);
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
return call;
|
||||||
*/
|
|
||||||
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback) throws ApiException {
|
|
||||||
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
}
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
/**
|
||||||
* @param number None (required)
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param _double None (required)
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param patternWithoutDelimiter None (required)
|
* @param number None (required)
|
||||||
* @param _byte None (required)
|
* @param _double None (required)
|
||||||
* @param integer None (optional)
|
* @param patternWithoutDelimiter None (required)
|
||||||
* @param int32 None (optional)
|
* @param _byte None (required)
|
||||||
* @param int64 None (optional)
|
* @param integer None (optional)
|
||||||
* @param _float None (optional)
|
* @param int32 None (optional)
|
||||||
* @param string None (optional)
|
* @param int64 None (optional)
|
||||||
* @param binary None (optional)
|
* @param _float None (optional)
|
||||||
* @param date None (optional)
|
* @param string None (optional)
|
||||||
* @param dateTime None (optional)
|
* @param binary None (optional)
|
||||||
* @param password None (optional)
|
* @param date None (optional)
|
||||||
* @param paramCallback None (optional)
|
* @param dateTime None (optional)
|
||||||
* @return ApiResponse<Void>
|
* @param password None (optional)
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
* @param paramCallback None (optional)
|
||||||
*/
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback) throws ApiException {
|
*/
|
||||||
com.squareup.okhttp.Call call = testEndpointParametersCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null, null);
|
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback) throws ApiException {
|
||||||
return apiClient.execute(call);
|
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 (asynchronously)
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param number None (required)
|
* @param number None (required)
|
||||||
* @param _double None (required)
|
* @param _double None (required)
|
||||||
* @param patternWithoutDelimiter None (required)
|
* @param patternWithoutDelimiter None (required)
|
||||||
* @param _byte None (required)
|
* @param _byte None (required)
|
||||||
* @param integer None (optional)
|
* @param integer None (optional)
|
||||||
* @param int32 None (optional)
|
* @param int32 None (optional)
|
||||||
* @param int64 None (optional)
|
* @param int64 None (optional)
|
||||||
* @param _float None (optional)
|
* @param _float None (optional)
|
||||||
* @param string None (optional)
|
* @param string None (optional)
|
||||||
* @param binary None (optional)
|
* @param binary None (optional)
|
||||||
* @param date None (optional)
|
* @param date None (optional)
|
||||||
* @param dateTime None (optional)
|
* @param dateTime None (optional)
|
||||||
* @param password None (optional)
|
* @param password None (optional)
|
||||||
* @param paramCallback None (optional)
|
* @param paramCallback None (optional)
|
||||||
* @param callback The callback to be executed when the API call finishes
|
* @return ApiResponse<Void>
|
||||||
* @return The request call
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
*/
|
||||||
*/
|
public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback) throws ApiException {
|
||||||
public com.squareup.okhttp.Call testEndpointParametersAsync(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ApiCallback<Void> callback) throws ApiException {
|
com.squareup.okhttp.Call call = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, null, null);
|
||||||
|
return apiClient.execute(call);
|
||||||
ProgressResponseBody.ProgressListener progressListener = null;
|
}
|
||||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
|
||||||
|
/**
|
||||||
if (callback != null) {
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 (asynchronously)
|
||||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
@Override
|
* @param number None (required)
|
||||||
public void update(long bytesRead, long contentLength, boolean done) {
|
* @param _double None (required)
|
||||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
* @param patternWithoutDelimiter None (required)
|
||||||
}
|
* @param _byte None (required)
|
||||||
};
|
* @param integer None (optional)
|
||||||
|
* @param int32 None (optional)
|
||||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
* @param int64 None (optional)
|
||||||
@Override
|
* @param _float None (optional)
|
||||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
* @param string None (optional)
|
||||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
* @param binary None (optional)
|
||||||
}
|
* @param date None (optional)
|
||||||
};
|
* @param dateTime None (optional)
|
||||||
}
|
* @param password None (optional)
|
||||||
|
* @param paramCallback None (optional)
|
||||||
com.squareup.okhttp.Call call = testEndpointParametersCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, progressListener, progressRequestListener);
|
* @param callback The callback to be executed when the API call finishes
|
||||||
apiClient.executeAsync(call, callback);
|
* @return The request call
|
||||||
return call;
|
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||||
}
|
*/
|
||||||
/* Build call for testEnumParameters */
|
public com.squareup.okhttp.Call testEndpointParametersAsync(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, DateTime dateTime, String password, String paramCallback, final ApiCallback<Void> callback) throws ApiException {
|
||||||
private com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
|
||||||
Object localVarPostBody = null;
|
ProgressResponseBody.ProgressListener progressListener = null;
|
||||||
|
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||||
|
|
||||||
// create path and map variables
|
if (callback != null) {
|
||||||
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||||
|
@Override
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
public void update(long bytesRead, long contentLength, boolean done) {
|
||||||
if (enumQueryStringArray != null)
|
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
|
}
|
||||||
if (enumQueryString != null)
|
};
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_string", enumQueryString));
|
|
||||||
if (enumQueryInteger != null)
|
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger));
|
@Override
|
||||||
|
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||||
if (enumHeaderStringArray != null)
|
}
|
||||||
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
|
};
|
||||||
if (enumHeaderString != null)
|
}
|
||||||
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
|
|
||||||
|
com.squareup.okhttp.Call call = testEndpointParametersValidateBeforeCall(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, progressListener, progressRequestListener);
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
apiClient.executeAsync(call, callback);
|
||||||
if (enumFormStringArray != null)
|
return call;
|
||||||
localVarFormParams.put("enum_form_string_array", enumFormStringArray);
|
}
|
||||||
if (enumFormString != null)
|
/* Build call for testEnumParameters */
|
||||||
localVarFormParams.put("enum_form_string", enumFormString);
|
private com.squareup.okhttp.Call testEnumParametersCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
if (enumQueryDouble != null)
|
Object localVarPostBody = null;
|
||||||
localVarFormParams.put("enum_query_double", enumQueryDouble);
|
|
||||||
|
// create path and map variables
|
||||||
final String[] localVarAccepts = {
|
String localVarPath = "/fake".replaceAll("\\{format\\}","json");
|
||||||
"*/*"
|
|
||||||
};
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
if (enumQueryStringArray != null)
|
||||||
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
|
||||||
|
if (enumQueryString != null)
|
||||||
final String[] localVarContentTypes = {
|
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_string", enumQueryString));
|
||||||
"*/*"
|
if (enumQueryInteger != null)
|
||||||
};
|
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger));
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
|
||||||
localVarHeaderParams.put("Content-Type", localVarContentType);
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
if (enumHeaderStringArray != null)
|
||||||
if(progressListener != null) {
|
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
|
||||||
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
if (enumHeaderString != null)
|
||||||
@Override
|
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
|
||||||
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
|
||||||
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
return originalResponse.newBuilder()
|
if (enumFormStringArray != null)
|
||||||
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
localVarFormParams.put("enum_form_string_array", enumFormStringArray);
|
||||||
.build();
|
if (enumFormString != null)
|
||||||
}
|
localVarFormParams.put("enum_form_string", enumFormString);
|
||||||
});
|
if (enumQueryDouble != null)
|
||||||
}
|
localVarFormParams.put("enum_query_double", enumQueryDouble);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
final String[] localVarAccepts = {
|
||||||
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
"*/*"
|
||||||
}
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
/**
|
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
|
||||||
* To test enum parameters
|
|
||||||
*
|
final String[] localVarContentTypes = {
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
"*/*"
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
};
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
localVarHeaderParams.put("Content-Type", localVarContentType);
|
||||||
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
|
||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
if(progressListener != null) {
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
@Override
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
|
||||||
*/
|
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
|
||||||
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
return originalResponse.newBuilder()
|
||||||
testEnumParametersWithHttpInfo(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
|
||||||
}
|
.build();
|
||||||
|
}
|
||||||
/**
|
});
|
||||||
* To test enum parameters
|
}
|
||||||
*
|
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
String[] localVarAuthNames = new String[] { };
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
}
|
||||||
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
|
||||||
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
@SuppressWarnings("rawtypes")
|
||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
private com.squareup.okhttp.Call testEnumParametersValidateBeforeCall(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
|
||||||
* @return ApiResponse<Void>
|
com.squareup.okhttp.Call call = testEnumParametersCall(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, progressListener, progressRequestListener);
|
||||||
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
return call;
|
||||||
*/
|
|
||||||
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
|
||||||
com.squareup.okhttp.Call call = testEnumParametersCall(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, null, null);
|
|
||||||
return apiClient.execute(call);
|
|
||||||
}
|
|
||||||
|
}
|
||||||
/**
|
|
||||||
* To test enum parameters (asynchronously)
|
/**
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* To test enum parameters
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param callback The callback to be executed when the API call finishes
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
* @return The request call
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
*/
|
||||||
*/
|
public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
||||||
public com.squareup.okhttp.Call testEnumParametersAsync(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble, final ApiCallback<Void> callback) throws ApiException {
|
testEnumParametersWithHttpInfo(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
|
}
|
||||||
ProgressResponseBody.ProgressListener progressListener = null;
|
|
||||||
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
/**
|
||||||
|
* To test enum parameters
|
||||||
if (callback != null) {
|
* To test enum parameters
|
||||||
progressListener = new ProgressResponseBody.ProgressListener() {
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
@Override
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
public void update(long bytesRead, long contentLength, boolean done) {
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
callback.onDownloadProgress(bytesRead, contentLength, done);
|
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
||||||
}
|
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
||||||
};
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
@Override
|
* @return ApiResponse<Void>
|
||||||
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
|
||||||
callback.onUploadProgress(bytesWritten, contentLength, done);
|
*/
|
||||||
}
|
public ApiResponse<Void> testEnumParametersWithHttpInfo(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) throws ApiException {
|
||||||
};
|
com.squareup.okhttp.Call call = testEnumParametersValidateBeforeCall(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, null, null);
|
||||||
}
|
return apiClient.execute(call);
|
||||||
|
}
|
||||||
com.squareup.okhttp.Call call = testEnumParametersCall(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, progressListener, progressRequestListener);
|
|
||||||
apiClient.executeAsync(call, callback);
|
/**
|
||||||
return call;
|
* To test enum parameters (asynchronously)
|
||||||
}
|
* To test enum parameters
|
||||||
}
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
|
* @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
|
||||||
|
* @param enumQueryStringArray Query parameter enum test (string array) (optional)
|
||||||
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
|
* @param callback The callback to be executed when the API call finishes
|
||||||
|
* @return The request call
|
||||||
|
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
|
||||||
|
*/
|
||||||
|
public com.squareup.okhttp.Call testEnumParametersAsync(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, final ApiCallback<Void> callback) throws ApiException {
|
||||||
|
|
||||||
|
ProgressResponseBody.ProgressListener progressListener = null;
|
||||||
|
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
|
||||||
|
|
||||||
|
if (callback != null) {
|
||||||
|
progressListener = new ProgressResponseBody.ProgressListener() {
|
||||||
|
@Override
|
||||||
|
public void update(long bytesRead, long contentLength, boolean done) {
|
||||||
|
callback.onDownloadProgress(bytesRead, contentLength, done);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
|
||||||
|
@Override
|
||||||
|
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
|
callback.onUploadProgress(bytesWritten, contentLength, done);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
com.squareup.okhttp.Call call = testEnumParametersValidateBeforeCall(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, progressListener, progressRequestListener);
|
||||||
|
apiClient.executeAsync(call, callback);
|
||||||
|
return call;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -18,7 +18,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class ApiKeyAuth implements Authentication {
|
public class ApiKeyAuth implements Authentication {
|
||||||
private final String location;
|
private final String location;
|
||||||
private final String paramName;
|
private final String paramName;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -18,7 +18,7 @@ import io.swagger.client.Pair;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class OAuth implements Authentication {
|
public class OAuth implements Authentication {
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
|
@ -32,7 +32,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -19,10 +19,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A category for a pet
|
* Category
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A category for a pet")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Category {
|
public class Category {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -72,8 +72,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@ -92,8 +92,8 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -19,10 +19,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes the result of uploading an image resource
|
* ModelApiResponse
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Describes the result of uploading an image resource")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
@SerializedName("code")
|
@SerializedName("code")
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -20,10 +20,9 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An order for a pets from the pet store
|
* Order
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "An order for a pets from the pet store")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Order {
|
public class Order {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -23,10 +23,9 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A pet for sale in the pet store
|
* Pet
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A pet for sale in the pet store")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -19,10 +19,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A tag for a pet
|
* Tag
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A tag for a pet")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
@ -19,10 +19,9 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A User who is purchasing from the pet store
|
* User
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "A User who is purchasing from the pet store")
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-11-12T23:31:10.007+01:00")
|
|
||||||
public class User {
|
public class User {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# FakeApi
|
# FakeApi
|
||||||
|
|
||||||
All URIs are relative to **
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
@ -15,6 +15,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -138,6 +140,8 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```java
|
```java
|
||||||
// Import classes:
|
// Import classes:
|
||||||
@ -152,7 +156,7 @@ List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_exampl
|
|||||||
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
|
||||||
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
List<String> enumQueryStringArray = Arrays.asList("enumQueryStringArray_example"); // List<String> | Query parameter enum test (string array)
|
||||||
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
String enumQueryString = "-efg"; // String | Query parameter enum test (string)
|
||||||
BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | Query parameter enum test (double)
|
Integer enumQueryInteger = 56; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 3.4D; // Double | Query parameter enum test (double)
|
||||||
try {
|
try {
|
||||||
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
Void result = apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
@ -173,7 +177,7 @@ Name | Type | Description | Notes
|
|||||||
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
|
**enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $]
|
||||||
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
**enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
|
||||||
**enumQueryInteger** | **BigDecimal**| Query parameter enum test (double) | [optional]
|
**enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional]
|
||||||
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# PetApi
|
# PetApi
|
||||||
|
|
||||||
All URIs are relative to **
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# StoreApi
|
# StoreApi
|
||||||
|
|
||||||
All URIs are relative to **
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# UserApi
|
# UserApi
|
||||||
|
|
||||||
All URIs are relative to **
|
All URIs are relative to *http://petstore.swagger.io/v2*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Pair {
|
public class Pair {
|
||||||
private String name = "";
|
private String name = "";
|
||||||
private String value = "";
|
private String value = "";
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
package io.swagger.client;
|
package io.swagger.client;
|
||||||
|
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
|
@ -24,7 +24,7 @@ import retrofit2.Response;
|
|||||||
public interface FakeApi {
|
public interface FakeApi {
|
||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
*
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param body client model (required)
|
||||||
* @return Call<Client>
|
* @return Call<Client>
|
||||||
*/
|
*/
|
||||||
@ -65,7 +65,7 @@ public interface FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To test enum parameters
|
* To test enum parameters
|
||||||
*
|
* To test enum parameters
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
* @param enumFormStringArray Form parameter enum test (string array) (optional)
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
* @param enumHeaderStringArray Header parameter enum test (string array) (optional)
|
||||||
@ -80,7 +80,7 @@ public interface FakeApi {
|
|||||||
@retrofit2.http.FormUrlEncoded
|
@retrofit2.http.FormUrlEncoded
|
||||||
@GET("fake")
|
@GET("fake")
|
||||||
F.Promise<Response<Void>> testEnumParameters(
|
F.Promise<Response<Void>> testEnumParameters(
|
||||||
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
@retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") Integer enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Holds ApiKey auth info
|
* Holds ApiKey auth info
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ApiKeyAuth implements Authentication {
|
public class ApiKeyAuth implements Authentication {
|
||||||
private final String location;
|
private final String location;
|
||||||
private final String paramName;
|
private final String paramName;
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* AdditionalPropertiesClass
|
* AdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class AdditionalPropertiesClass {
|
public class AdditionalPropertiesClass {
|
||||||
@JsonProperty("map_property")
|
@JsonProperty("map_property")
|
||||||
private Map<String, String> mapProperty = new HashMap<String, String>();
|
private Map<String, String> mapProperty = new HashMap<String, String>();
|
||||||
|
@ -25,7 +25,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className" )
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className" )
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({
|
||||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||||
})
|
})
|
||||||
|
@ -22,7 +22,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* AnimalFarm
|
* AnimalFarm
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class AnimalFarm extends ArrayList<Animal> {
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -33,7 +33,7 @@ public class AnimalFarm extends ArrayList<Animal> {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayOfArrayOfNumberOnly
|
* ArrayOfArrayOfNumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ArrayOfArrayOfNumberOnly {
|
public class ArrayOfArrayOfNumberOnly {
|
||||||
@JsonProperty("ArrayArrayNumber")
|
@JsonProperty("ArrayArrayNumber")
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayOfNumberOnly
|
* ArrayOfNumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ArrayOfNumberOnly {
|
public class ArrayOfNumberOnly {
|
||||||
@JsonProperty("ArrayNumber")
|
@JsonProperty("ArrayNumber")
|
||||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ArrayTest
|
* ArrayTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ArrayTest {
|
public class ArrayTest {
|
||||||
@JsonProperty("array_of_string")
|
@JsonProperty("array_of_string")
|
||||||
private List<String> arrayOfString = new ArrayList<String>();
|
private List<String> arrayOfString = new ArrayList<String>();
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
@JsonProperty("declawed")
|
@JsonProperty("declawed")
|
||||||
private Boolean declawed = null;
|
private Boolean declawed = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Category {
|
public class Category {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ClassModel {
|
public class ClassModel {
|
||||||
@JsonProperty("_class")
|
@JsonProperty("_class")
|
||||||
private String propertyClass = null;
|
private String propertyClass = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Client
|
* Client
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Client {
|
public class Client {
|
||||||
@JsonProperty("client")
|
@JsonProperty("client")
|
||||||
private String client = null;
|
private String client = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
@JsonProperty("breed")
|
@JsonProperty("breed")
|
||||||
private String breed = null;
|
private String breed = null;
|
||||||
|
@ -25,7 +25,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* EnumArrays
|
* EnumArrays
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class EnumArrays {
|
public class EnumArrays {
|
||||||
/**
|
/**
|
||||||
* Gets or Sets justSymbol
|
* Gets or Sets justSymbol
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
/**
|
/**
|
||||||
* Gets or Sets enumString
|
* Gets or Sets enumString
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* FormatTest
|
* FormatTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
@JsonProperty("integer")
|
@JsonProperty("integer")
|
||||||
private Integer integer = null;
|
private Integer integer = null;
|
||||||
@ -74,12 +74,12 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get integer
|
* Get integer
|
||||||
* minimum: 10.0
|
* minimum: 10
|
||||||
* maximum: 100.0
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
**/
|
**/
|
||||||
//@Min(10.0)
|
@Min(10)
|
||||||
//@Max(100.0)
|
@Max(100)
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
@ -96,12 +96,12 @@ public class FormatTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get int32
|
* Get int32
|
||||||
* minimum: 20.0
|
* minimum: 20
|
||||||
* maximum: 200.0
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
**/
|
**/
|
||||||
//@Min(20.0)
|
@Min(20)
|
||||||
//@Max(200.0)
|
@Max(200)
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
@ -141,8 +141,6 @@ public class FormatTest {
|
|||||||
* @return number
|
* @return number
|
||||||
**/
|
**/
|
||||||
@NotNull
|
@NotNull
|
||||||
//@Min(32.1)
|
|
||||||
//@Max(543.2)
|
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
@ -163,8 +161,6 @@ public class FormatTest {
|
|||||||
* maximum: 987.6
|
* maximum: 987.6
|
||||||
* @return _float
|
* @return _float
|
||||||
**/
|
**/
|
||||||
//@Min(54.3)
|
|
||||||
//@Max(987.6)
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
@ -185,8 +181,6 @@ public class FormatTest {
|
|||||||
* maximum: 123.4
|
* maximum: 123.4
|
||||||
* @return _double
|
* @return _double
|
||||||
**/
|
**/
|
||||||
//@Min(67.8)
|
|
||||||
//@Max(123.4)
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* HasOnlyReadOnly
|
* HasOnlyReadOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class HasOnlyReadOnly {
|
public class HasOnlyReadOnly {
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
private String bar = null;
|
private String bar = null;
|
||||||
|
@ -26,7 +26,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class MapTest {
|
public class MapTest {
|
||||||
@JsonProperty("map_map_of_string")
|
@JsonProperty("map_map_of_string")
|
||||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
@ -28,7 +28,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
* MixedPropertiesAndAdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
@JsonProperty("uuid")
|
@JsonProperty("uuid")
|
||||||
private String uuid = null;
|
private String uuid = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ModelApiResponse
|
* ModelApiResponse
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
@JsonProperty("code")
|
@JsonProperty("code")
|
||||||
private Integer code = null;
|
private Integer code = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
@JsonProperty("return")
|
@JsonProperty("return")
|
||||||
private Integer _return = null;
|
private Integer _return = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
*/
|
*/
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Name {
|
public class Name {
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private Integer name = null;
|
private Integer name = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* NumberOnly
|
* NumberOnly
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class NumberOnly {
|
public class NumberOnly {
|
||||||
@JsonProperty("JustNumber")
|
@JsonProperty("JustNumber")
|
||||||
private BigDecimal justNumber = null;
|
private BigDecimal justNumber = null;
|
||||||
|
@ -24,7 +24,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Order {
|
public class Order {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -27,7 +27,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* ReadOnlyFirst
|
* ReadOnlyFirst
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class ReadOnlyFirst {
|
public class ReadOnlyFirst {
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
private String bar = null;
|
private String bar = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
@JsonProperty("$special[property.name]")
|
@JsonProperty("$special[property.name]")
|
||||||
private Long specialPropertyName = null;
|
private Long specialPropertyName = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
@ -23,7 +23,7 @@ import javax.validation.constraints.*;
|
|||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-09T01:19:10.790+04:00")
|
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-14T17:41:48.242+08:00")
|
||||||
public class User {
|
public class User {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user