java: Javadoc fixes

This commit is contained in:
Ville Skyttä
2016-09-01 18:07:35 +03:00
parent e7ec360ba8
commit 0363858672
318 changed files with 806 additions and 559 deletions

View File

@@ -8,7 +8,7 @@ import java.util.Map;
/** /**
* API response returned by API call. * API response returned by API call.
* *
* @param T The type of data that is deserialized from response body * @param <T> The type of data that is deserialized from response body
*/ */
public class ApiResponse<T> { public class ApiResponse<T> {
final private int statusCode; final private int statusCode;

View File

@@ -151,10 +151,9 @@ class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
* *
* @param json Json element * @param json Json element
* @param date Type * @param date Type
* @param typeOfSrc Type
* @param context Json Serialization Context * @param context Json Serialization Context
* @return Date * @return Date
* @throw JsonParseException if fail to parse * @throws JsonParseException if fail to parse
*/ */
@Override @Override
public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException { public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException {

View File

@@ -1,4 +1,4 @@
/** /*
* {{{appName}}} * {{{appName}}}
* {{{appDescription}}} * {{{appDescription}}}
* *

View File

@@ -31,7 +31,7 @@ import java.util.Map;
/** /**
* API response returned by API call. * API response returned by API call.
* *
* @param T The type of data that is deserialized from response body * @param <T> The type of data that is deserialized from response body
*/ */
public class ApiResponse<T> { public class ApiResponse<T> {
final private int statusCode; final private int statusCode;

View File

@@ -164,7 +164,7 @@ class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
* @param typeOfSrc Type * @param typeOfSrc Type
* @param context Json Serialization Context * @param context Json Serialization Context
* @return Date * @return Date
* @throw JsonParseException if fail to parse * @throws JsonParseException if fail to parse
*/ */
@Override @Override
public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException { public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException {

View File

@@ -43,6 +43,8 @@ public class ApiClient {
RequestInterceptor auth; RequestInterceptor auth;
if (authName == "api_key") { if (authName == "api_key") {
auth = new ApiKeyAuth("header", "api_key"); auth = new ApiKeyAuth("header", "api_key");
} else if (authName == "http_basic_test") {
auth = new HttpBasicAuth();
} else if (authName == "petstore_auth") { } else if (authName == "petstore_auth") {
auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets"); auth = new OAuth(OAuthFlow.implicit, "http://petstore.swagger.io/api/oauth/dialog", "", "write:pets, read:pets");
} else { } else {

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -4,8 +4,8 @@ import io.swagger.client.ApiClient;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import org.joda.time.DateTime;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.joda.time.DateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@@ -35,12 +35,13 @@ public interface FakeApi extends ApiClient.Api {
* 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 string 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 binary None (optional) * @param binary None (optional)
* @param date None (optional) * @param date None (optional)
* @param dateTime None (optional) * @param dateTime None (optional)
@@ -52,20 +53,28 @@ public interface FakeApi extends ApiClient.Api {
"Content-type: application/xml; charset&#x3D;utf-8", "Content-type: application/xml; charset&#x3D;utf-8",
"Accept: application/xml; charset&#x3D;utf-8,application/json; charset&#x3D;utf-8", "Accept: application/xml; charset&#x3D;utf-8,application/json; charset&#x3D;utf-8",
}) })
void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("string") String string, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("binary") byte[] binary, @Param("date") LocalDate date, @Param("dateTime") DateTime dateTime, @Param("password") String password); void testEndpointParameters(@Param("number") BigDecimal number, @Param("_double") Double _double, @Param("patternWithoutDelimiter") String patternWithoutDelimiter, @Param("_byte") byte[] _byte, @Param("integer") Integer integer, @Param("int32") Integer int32, @Param("int64") Long int64, @Param("_float") Float _float, @Param("string") String string, @Param("binary") byte[] binary, @Param("date") LocalDate date, @Param("dateTime") DateTime dateTime, @Param("password") String password);
/** /**
* To test enum query parameters * 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 enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional) * @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumQueryDouble Query parameter enum test (double) (optional)
* @return void * @return void
*/ */
@RequestLine("GET /fake?enum_query_integer={enumQueryInteger}") @RequestLine("GET /fake?enum_query_string_array={enumQueryStringArray}&enum_query_string={enumQueryString}&enum_query_integer={enumQueryInteger}")
@Headers({ @Headers({
"Content-type: application/json", "Content-type: application/json",
"Accept: application/json", "Accept: application/json",
"enum_header_string_array: {enumHeaderStringArray}",
"enum_header_string: {enumHeaderString}"
}) })
void testEnumQueryParameters(@Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") BigDecimal enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble); void testEnumParameters(@Param("enumFormStringArray") List<String> enumFormStringArray, @Param("enumFormString") String enumFormString, @Param("enumHeaderStringArray") List<String> enumHeaderStringArray, @Param("enumHeaderString") String enumHeaderString, @Param("enumQueryStringArray") List<String> enumQueryStringArray, @Param("enumQueryString") String enumQueryString, @Param("enumQueryInteger") BigDecimal enumQueryInteger, @Param("enumQueryDouble") Double enumQueryDouble);
} }

View File

@@ -3,8 +3,8 @@ package io.swagger.client.api;
import io.swagger.client.ApiClient; import io.swagger.client.ApiClient;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
@@ -42,7 +42,7 @@ public class Model200Response {
private Integer name = null; private Integer name = null;
@JsonProperty("class") @JsonProperty("class")
private String PropertyClass = null; private String propertyClass = null;
public Model200Response name(Integer name) { public Model200Response name(Integer name) {
this.name = name; this.name = name;
@@ -62,22 +62,22 @@ public class Model200Response {
this.name = name; this.name = name;
} }
public Model200Response PropertyClass(String PropertyClass) { public Model200Response propertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
/** /**
* Get PropertyClass * Get propertyClass
* @return PropertyClass * @return propertyClass
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(example = "null", value = "")
public String getPropertyClass() { public String getPropertyClass() {
return PropertyClass; return propertyClass;
} }
public void setPropertyClass(String PropertyClass) { public void setPropertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
} }
@@ -91,12 +91,12 @@ public class Model200Response {
} }
Model200Response _200Response = (Model200Response) o; Model200Response _200Response = (Model200Response) o;
return Objects.equals(this.name, _200Response.name) && return Objects.equals(this.name, _200Response.name) &&
Objects.equals(this.PropertyClass, _200Response.PropertyClass); Objects.equals(this.propertyClass, _200Response.propertyClass);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(name, PropertyClass); return Objects.hash(name, propertyClass);
} }
@Override @Override
@@ -105,7 +105,7 @@ public class Model200Response {
sb.append("class Model200Response {\n"); sb.append("class Model200Response {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" PropertyClass: ").append(toIndentedString(PropertyClass)).append("\n"); sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumQueryParameters**](FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
<a name="testClientModel"></a> <a name="testClientModel"></a>
@@ -54,7 +54,7 @@ No authorization required
<a name="testEndpointParameters"></a> <a name="testEndpointParameters"></a>
# **testEndpointParameters** # **testEndpointParameters**
> testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password) > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -63,25 +63,35 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException; //import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeApi; //import io.swagger.client.api.FakeApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: http_basic_test
HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
http_basic_test.setUsername("YOUR USERNAME");
http_basic_test.setPassword("YOUR PASSWORD");
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
BigDecimal number = new BigDecimal(); // BigDecimal | None BigDecimal number = new BigDecimal(); // BigDecimal | None
Double _double = 3.4D; // Double | None Double _double = 3.4D; // Double | None
String string = "string_example"; // String | None String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
byte[] _byte = B; // byte[] | None byte[] _byte = B; // byte[] | None
Integer integer = 56; // Integer | None Integer integer = 56; // Integer | None
Integer int32 = 56; // Integer | None Integer int32 = 56; // Integer | None
Long int64 = 789L; // Long | None Long int64 = 789L; // Long | None
Float _float = 3.4F; // Float | None Float _float = 3.4F; // Float | None
String string = "string_example"; // String | None
byte[] binary = B; // byte[] | None byte[] binary = B; // byte[] | None
LocalDate date = new LocalDate(); // LocalDate | None LocalDate date = new LocalDate(); // LocalDate | None
DateTime dateTime = new DateTime(); // DateTime | None DateTime dateTime = new DateTime(); // DateTime | None
String password = "password_example"; // String | None String password = "password_example"; // String | None
try { try {
apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password); apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
e.printStackTrace(); e.printStackTrace();
@@ -94,12 +104,13 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**number** | **BigDecimal**| None | **number** | **BigDecimal**| None |
**_double** | **Double**| None | **_double** | **Double**| None |
**string** | **String**| None | **patternWithoutDelimiter** | **String**| None |
**_byte** | **byte[]**| None | **_byte** | **byte[]**| None |
**integer** | **Integer**| None | [optional] **integer** | **Integer**| None | [optional]
**int32** | **Integer**| None | [optional] **int32** | **Integer**| None | [optional]
**int64** | **Long**| None | [optional] **int64** | **Long**| None | [optional]
**_float** | **Float**| None | [optional] **_float** | **Float**| None | [optional]
**string** | **String**| None | [optional]
**binary** | **byte[]**| None | [optional] **binary** | **byte[]**| None | [optional]
**date** | **LocalDate**| None | [optional] **date** | **LocalDate**| None | [optional]
**dateTime** | **DateTime**| None | [optional] **dateTime** | **DateTime**| None | [optional]
@@ -111,18 +122,18 @@ null (empty response body)
### Authorization ### Authorization
No authorization required [http_basic_test](../README.md#http_basic_test)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
<a name="testEnumQueryParameters"></a> <a name="testEnumParameters"></a>
# **testEnumQueryParameters** # **testEnumParameters**
> testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble) > testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
To test enum query parameters To test enum parameters
### Example ### Example
```java ```java
@@ -132,13 +143,18 @@ To test enum query parameters
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
List<String> enumFormStringArray = Arrays.asList("enumFormStringArray_example"); // List<String> | Form parameter enum test (string array)
String enumFormString = "-efg"; // String | Form parameter enum test (string)
List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_example"); // List<String> | Header parameter enum test (string array)
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
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) BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | 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.testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble); apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumQueryParameters"); System.err.println("Exception when calling FakeApi#testEnumParameters");
e.printStackTrace(); e.printStackTrace();
} }
``` ```
@@ -147,6 +163,11 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**enumFormStringArray** | [**List&lt;String&gt;**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
**enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
**enumHeaderStringArray** | [**List&lt;String&gt;**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
**enumQueryStringArray** | [**List&lt;String&gt;**](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** | **BigDecimal**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]

View File

@@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**name** | **Integer** | | [optional] **name** | **Integer** | | [optional]
**PropertyClass** | **String** | | [optional] **propertyClass** | **String** | | [optional]

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
@@ -100,6 +100,7 @@ public class ApiClient {
// Setup authentications (key: authentication name, value: authentication). // Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>(); authentications = new HashMap<String, Authentication>();
authentications.put("api_key", new ApiKeyAuth("header", "api_key")); authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
authentications.put("http_basic_test", new HttpBasicAuth());
authentications.put("petstore_auth", new OAuth()); authentications.put("petstore_auth", new OAuth());
// Prevent the authentications from being modified. // Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications); authentications = Collections.unmodifiableMap(authentications);

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
@@ -34,8 +34,8 @@ import io.swagger.client.Pair;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import org.joda.time.DateTime;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.joda.time.DateTime;
import java.util.ArrayList; import java.util.ArrayList;
@@ -109,19 +109,20 @@ public class FakeApi {
* 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 string 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 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)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, LocalDate date, DateTime dateTime, String password) throws ApiException { 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) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
@@ -134,9 +135,9 @@ public class FakeApi {
throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters"); throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
} }
// verify the required parameter 'string' is set // verify the required parameter 'patternWithoutDelimiter' is set
if (string == null) { if (patternWithoutDelimiter == null) {
throw new ApiException(400, "Missing the required parameter 'string' when calling testEndpointParameters"); throw new ApiException(400, "Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
} }
// verify the required parameter '_byte' is set // verify the required parameter '_byte' is set
@@ -168,6 +169,8 @@ if (_double != null)
localVarFormParams.put("double", _double); localVarFormParams.put("double", _double);
if (string != null) if (string != null)
localVarFormParams.put("string", string); localVarFormParams.put("string", string);
if (patternWithoutDelimiter != null)
localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
if (_byte != null) if (_byte != null)
localVarFormParams.put("byte", _byte); localVarFormParams.put("byte", _byte);
if (binary != null) if (binary != null)
@@ -189,20 +192,25 @@ if (password != null)
}; };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { }; String[] localVarAuthNames = new String[] { "http_basic_test" };
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
/** /**
* To test enum query parameters * 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 enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional) * @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumQueryDouble Query parameter enum test (double) (optional)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public void testEnumQueryParameters(String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException { public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@@ -213,11 +221,19 @@ if (password != null)
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_string", enumQueryString));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger));
if (enumHeaderStringArray != null)
if (enumQueryString != null) localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
localVarFormParams.put("enum_query_string", enumQueryString); if (enumHeaderString != null)
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
if (enumFormStringArray != null)
localVarFormParams.put("enum_form_string_array", enumFormStringArray);
if (enumFormString != null)
localVarFormParams.put("enum_form_string", enumFormString);
if (enumQueryDouble != null) if (enumQueryDouble != null)
localVarFormParams.put("enum_query_double", enumQueryDouble); localVarFormParams.put("enum_query_double", enumQueryDouble);

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
@@ -33,8 +33,8 @@ import io.swagger.client.model.*;
import io.swagger.client.Pair; import io.swagger.client.Pair;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
@@ -42,7 +42,7 @@ public class Model200Response {
private Integer name = null; private Integer name = null;
@JsonProperty("class") @JsonProperty("class")
private String PropertyClass = null; private String propertyClass = null;
public Model200Response name(Integer name) { public Model200Response name(Integer name) {
this.name = name; this.name = name;
@@ -62,22 +62,22 @@ public class Model200Response {
this.name = name; this.name = name;
} }
public Model200Response PropertyClass(String PropertyClass) { public Model200Response propertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
/** /**
* Get PropertyClass * Get propertyClass
* @return PropertyClass * @return propertyClass
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(example = "null", value = "")
public String getPropertyClass() { public String getPropertyClass() {
return PropertyClass; return propertyClass;
} }
public void setPropertyClass(String PropertyClass) { public void setPropertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
} }
@@ -91,12 +91,12 @@ public class Model200Response {
} }
Model200Response _200Response = (Model200Response) o; Model200Response _200Response = (Model200Response) o;
return Objects.equals(this.name, _200Response.name) && return Objects.equals(this.name, _200Response.name) &&
Objects.equals(this.PropertyClass, _200Response.PropertyClass); Objects.equals(this.propertyClass, _200Response.propertyClass);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(name, PropertyClass); return Objects.hash(name, propertyClass);
} }
@Override @Override
@@ -105,7 +105,7 @@ public class Model200Response {
sb.append("class Model200Response {\n"); sb.append("class Model200Response {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" PropertyClass: ").append(toIndentedString(PropertyClass)).append("\n"); sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; model
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**testEnumQueryParameters**](FakeApi.md#testEnumQueryParameters) | **GET** /fake | To test enum query parameters [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
<a name="testClientModel"></a> <a name="testClientModel"></a>
@@ -54,7 +54,7 @@ No authorization required
<a name="testEndpointParameters"></a> <a name="testEndpointParameters"></a>
# **testEndpointParameters** # **testEndpointParameters**
> testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password) > testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@@ -63,25 +63,35 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example ### Example
```java ```java
// Import classes: // Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException; //import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.FakeApi; //import io.swagger.client.api.FakeApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: http_basic_test
HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
http_basic_test.setUsername("YOUR USERNAME");
http_basic_test.setPassword("YOUR PASSWORD");
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
BigDecimal number = new BigDecimal(); // BigDecimal | None BigDecimal number = new BigDecimal(); // BigDecimal | None
Double _double = 3.4D; // Double | None Double _double = 3.4D; // Double | None
String string = "string_example"; // String | None String patternWithoutDelimiter = "patternWithoutDelimiter_example"; // String | None
byte[] _byte = B; // byte[] | None byte[] _byte = B; // byte[] | None
Integer integer = 56; // Integer | None Integer integer = 56; // Integer | None
Integer int32 = 56; // Integer | None Integer int32 = 56; // Integer | None
Long int64 = 789L; // Long | None Long int64 = 789L; // Long | None
Float _float = 3.4F; // Float | None Float _float = 3.4F; // Float | None
String string = "string_example"; // String | None
byte[] binary = B; // byte[] | None byte[] binary = B; // byte[] | None
LocalDate date = new LocalDate(); // LocalDate | None LocalDate date = new LocalDate(); // LocalDate | None
OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None OffsetDateTime dateTime = new OffsetDateTime(); // OffsetDateTime | None
String password = "password_example"; // String | None String password = "password_example"; // String | None
try { try {
apiInstance.testEndpointParameters(number, _double, string, _byte, integer, int32, int64, _float, binary, date, dateTime, password); apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
e.printStackTrace(); e.printStackTrace();
@@ -94,12 +104,13 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**number** | **BigDecimal**| None | **number** | **BigDecimal**| None |
**_double** | **Double**| None | **_double** | **Double**| None |
**string** | **String**| None | **patternWithoutDelimiter** | **String**| None |
**_byte** | **byte[]**| None | **_byte** | **byte[]**| None |
**integer** | **Integer**| None | [optional] **integer** | **Integer**| None | [optional]
**int32** | **Integer**| None | [optional] **int32** | **Integer**| None | [optional]
**int64** | **Long**| None | [optional] **int64** | **Long**| None | [optional]
**_float** | **Float**| None | [optional] **_float** | **Float**| None | [optional]
**string** | **String**| None | [optional]
**binary** | **byte[]**| None | [optional] **binary** | **byte[]**| None | [optional]
**date** | **LocalDate**| None | [optional] **date** | **LocalDate**| None | [optional]
**dateTime** | **OffsetDateTime**| None | [optional] **dateTime** | **OffsetDateTime**| None | [optional]
@@ -111,18 +122,18 @@ null (empty response body)
### Authorization ### Authorization
No authorization required [http_basic_test](../README.md#http_basic_test)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8 - **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
<a name="testEnumQueryParameters"></a> <a name="testEnumParameters"></a>
# **testEnumQueryParameters** # **testEnumParameters**
> testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble) > testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble)
To test enum query parameters To test enum parameters
### Example ### Example
```java ```java
@@ -132,13 +143,18 @@ To test enum query parameters
FakeApi apiInstance = new FakeApi(); FakeApi apiInstance = new FakeApi();
List<String> enumFormStringArray = Arrays.asList("enumFormStringArray_example"); // List<String> | Form parameter enum test (string array)
String enumFormString = "-efg"; // String | Form parameter enum test (string)
List<String> enumHeaderStringArray = Arrays.asList("enumHeaderStringArray_example"); // List<String> | Header parameter enum test (string array)
String enumHeaderString = "-efg"; // String | Header parameter enum test (string)
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) BigDecimal enumQueryInteger = new BigDecimal(); // BigDecimal | 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.testEnumQueryParameters(enumQueryString, enumQueryInteger, enumQueryDouble); apiInstance.testEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumQueryParameters"); System.err.println("Exception when calling FakeApi#testEnumParameters");
e.printStackTrace(); e.printStackTrace();
} }
``` ```
@@ -147,6 +163,11 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**enumFormStringArray** | [**List&lt;String&gt;**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $]
**enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
**enumHeaderStringArray** | [**List&lt;String&gt;**](String.md)| Header parameter enum test (string array) | [optional] [enum: >, $]
**enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)]
**enumQueryStringArray** | [**List&lt;String&gt;**](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** | **BigDecimal**| Query parameter enum test (double) | [optional]
**enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]

View File

@@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**name** | **Integer** | | [optional] **name** | **Integer** | | [optional]
**PropertyClass** | **String** | | [optional] **propertyClass** | **String** | | [optional]

View File

@@ -85,6 +85,7 @@ public class ApiClient {
// Setup authentications (key: authentication name, value: authentication). // Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>(); authentications = new HashMap<String, Authentication>();
authentications.put("api_key", new ApiKeyAuth("header", "api_key")); authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
authentications.put("http_basic_test", new HttpBasicAuth());
authentications.put("petstore_auth", new OAuth()); authentications.put("petstore_auth", new OAuth());
// Prevent the authentications from being modified. // Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications); authentications = Collections.unmodifiableMap(authentications);

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -8,8 +8,8 @@ import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType; import javax.ws.rs.core.GenericType;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import java.time.LocalDate;
import java.time.OffsetDateTime; import java.time.OffsetDateTime;
import java.time.LocalDate;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
@@ -83,19 +83,20 @@ public class FakeApi {
* 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 string 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 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)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, LocalDate date, OffsetDateTime dateTime, String password) throws ApiException { 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, OffsetDateTime dateTime, String password) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// verify the required parameter 'number' is set // verify the required parameter 'number' is set
@@ -108,9 +109,9 @@ public class FakeApi {
throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters"); throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
} }
// verify the required parameter 'string' is set // verify the required parameter 'patternWithoutDelimiter' is set
if (string == null) { if (patternWithoutDelimiter == null) {
throw new ApiException(400, "Missing the required parameter 'string' when calling testEndpointParameters"); throw new ApiException(400, "Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
} }
// verify the required parameter '_byte' is set // verify the required parameter '_byte' is set
@@ -142,6 +143,8 @@ if (_double != null)
localVarFormParams.put("double", _double); localVarFormParams.put("double", _double);
if (string != null) if (string != null)
localVarFormParams.put("string", string); localVarFormParams.put("string", string);
if (patternWithoutDelimiter != null)
localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
if (_byte != null) if (_byte != null)
localVarFormParams.put("byte", _byte); localVarFormParams.put("byte", _byte);
if (binary != null) if (binary != null)
@@ -163,20 +166,25 @@ if (password != null)
}; };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { }; String[] localVarAuthNames = new String[] { "http_basic_test" };
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
} }
/** /**
* To test enum query parameters * 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 enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional) * @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional) * @param enumQueryDouble Query parameter enum test (double) (optional)
* @throws ApiException if fails to make API call * @throws ApiException if fails to make API call
*/ */
public void testEnumQueryParameters(String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException { public void testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) throws ApiException {
Object localVarPostBody = null; Object localVarPostBody = null;
// create path and map variables // create path and map variables
@@ -187,11 +195,19 @@ if (password != null)
Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>();
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_string", enumQueryString));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "enum_query_integer", enumQueryInteger));
if (enumHeaderStringArray != null)
if (enumQueryString != null) localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
localVarFormParams.put("enum_query_string", enumQueryString); if (enumHeaderString != null)
localVarHeaderParams.put("enum_header_string", apiClient.parameterToString(enumHeaderString));
if (enumFormStringArray != null)
localVarFormParams.put("enum_form_string_array", enumFormStringArray);
if (enumFormString != null)
localVarFormParams.put("enum_form_string", enumFormString);
if (enumQueryDouble != null) if (enumQueryDouble != null)
localVarFormParams.put("enum_query_double", enumQueryDouble); localVarFormParams.put("enum_query_double", enumQueryDouble);

View File

@@ -8,8 +8,8 @@ import io.swagger.client.Pair;
import javax.ws.rs.core.GenericType; import javax.ws.rs.core.GenericType;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import java.io.File;
import io.swagger.client.model.ModelApiResponse; import io.swagger.client.model.ModelApiResponse;
import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

View File

@@ -1,4 +1,4 @@
/** /*
* Swagger Petstore * Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *

Some files were not shown because too many files have changed in this diff Show More