enumValues) {
- this.description = description;
- this.defaultValue = defaultValue;
- this.enumValues = enumValues;
- }
-}
diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/StringUtil.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/StringUtil.java
deleted file mode 100644
index 747a23f5bf2..00000000000
--- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/StringUtil.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * OpenAPI 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: \" \\
- *
- * The version of the OpenAPI document: 1.0.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package org.openapitools.client;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-
-public class StringUtil {
- /**
- * Check if the given array contains the given value (with case-insensitive comparison).
- *
- * @param array The array
- * @param value The value to search
- * @return true if the array contains the value
- */
- public static boolean containsIgnoreCase(String[] array, String value) {
- for (String str : array) {
- if (value == null && str == null) {
- return true;
- }
- if (value != null && value.equalsIgnoreCase(str)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Join an array of strings with the given separator.
- *
- * Note: This might be replaced by utility method from commons-lang or guava someday
- * if one of those libraries is added as dependency.
- *
- *
- * @param array The array of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(String[] array, String separator) {
- int len = array.length;
- if (len == 0) {
- return "";
- }
-
- StringBuilder out = new StringBuilder();
- out.append(array[0]);
- for (int i = 1; i < len; i++) {
- out.append(separator).append(array[i]);
- }
- return out.toString();
- }
-
- /**
- * Join a list of strings with the given separator.
- *
- * @param list The list of strings
- * @param separator The separator
- * @return the resulting string
- */
- public static String join(Collection list, String separator) {
- Iterator iterator = list.iterator();
- StringBuilder out = new StringBuilder();
- if (iterator.hasNext()) {
- out.append(iterator.next());
- }
- while (iterator.hasNext()) {
- out.append(separator).append(iterator.next());
- }
- return out.toString();
- }
-}
diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index 4d808ec6f5f..00000000000
--- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiException;
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiResponse;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.Pair;
-
-import javax.ws.rs.core.GenericType;
-
-import org.openapitools.client.model.Client;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-
-public class AnotherFakeApi {
- private ApiClient apiClient;
-
- public AnotherFakeApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public AnotherFakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Get the API cilent
- *
- * @return API client
- */
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- /**
- * Set the API cilent
- *
- * @param apiClient an instance of API client
- */
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * @param client client model (required)
- * @return Client
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public Client call123testSpecialTags(Client client) throws ApiException {
- return call123testSpecialTagsWithHttpInfo(client).getData();
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * @param client client model (required)
- * @return ApiResponse<Client>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
- Object localVarPostBody = client;
-
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
- }
-
- // create path and map variables
- String localVarPath = "/another-fake/dummy";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("AnotherFakeApi.call123testSpecialTags", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
-}
diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java
deleted file mode 100644
index eb269e49f80..00000000000
--- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/DefaultApi.java
+++ /dev/null
@@ -1,108 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiException;
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiResponse;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.Pair;
-
-import javax.ws.rs.core.GenericType;
-
-import org.openapitools.client.model.InlineResponseDefault;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-
-public class DefaultApi {
- private ApiClient apiClient;
-
- public DefaultApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public DefaultApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Get the API cilent
- *
- * @return API client
- */
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- /**
- * Set the API cilent
- *
- * @param apiClient an instance of API client
- */
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- *
- *
- * @return InlineResponseDefault
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 0 | response | - |
-
- */
- public InlineResponseDefault fooGet() throws ApiException {
- return fooGetWithHttpInfo().getData();
- }
-
- /**
- *
- *
- * @return ApiResponse<InlineResponseDefault>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 0 | response | - |
-
- */
- public ApiResponse fooGetWithHttpInfo() throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/foo";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("DefaultApi.fooGet", localVarPath, "GET", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
-}
diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index c57ccaa4157..00000000000
--- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,1196 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiException;
-import org.openapitools.client.ApiClient;
-import org.openapitools.client.ApiResponse;
-import org.openapitools.client.Configuration;
-import org.openapitools.client.Pair;
-
-import javax.ws.rs.core.GenericType;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.Client;
-import java.io.File;
-import org.openapitools.client.model.FileSchemaTestClass;
-import org.openapitools.client.model.HealthCheckResult;
-import java.time.LocalDate;
-import java.time.OffsetDateTime;
-import org.openapitools.client.model.OuterComposite;
-import org.openapitools.client.model.User;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-
-public class FakeApi {
- private ApiClient apiClient;
-
- public FakeApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public FakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Get the API cilent
- *
- * @return API client
- */
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- /**
- * Set the API cilent
- *
- * @param apiClient an instance of API client
- */
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Health check endpoint
- *
- * @return HealthCheckResult
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | The instance started successfully | - |
-
- */
- public HealthCheckResult fakeHealthGet() throws ApiException {
- return fakeHealthGetWithHttpInfo().getData();
- }
-
- /**
- * Health check endpoint
- *
- * @return ApiResponse<HealthCheckResult>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | The instance started successfully | - |
-
- */
- public ApiResponse fakeHealthGetWithHttpInfo() throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/fake/health";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.fakeHealthGet", localVarPath, "GET", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- *
- * Test serialization of outer boolean types
- * @param body Input boolean as post body (optional)
- * @return Boolean
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output boolean | - |
-
- */
- public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
- return fakeOuterBooleanSerializeWithHttpInfo(body).getData();
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * @param body Input boolean as post body (optional)
- * @return ApiResponse<Boolean>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output boolean | - |
-
- */
- public ApiResponse fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
- Object localVarPostBody = body;
-
- // create path and map variables
- String localVarPath = "/fake/outer/boolean";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.fakeOuterBooleanSerialize", localVarPath, "POST", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- *
- * Test serialization of object with outer number type
- * @param outerComposite Input composite as post body (optional)
- * @return OuterComposite
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output composite | - |
-
- */
- public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
- return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getData();
- }
-
- /**
- *
- * Test serialization of object with outer number type
- * @param outerComposite Input composite as post body (optional)
- * @return ApiResponse<OuterComposite>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output composite | - |
-
- */
- public ApiResponse fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
- Object localVarPostBody = outerComposite;
-
- // create path and map variables
- String localVarPath = "/fake/outer/composite";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.fakeOuterCompositeSerialize", localVarPath, "POST", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- *
- * Test serialization of outer number types
- * @param body Input number as post body (optional)
- * @return BigDecimal
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output number | - |
-
- */
- public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
- return fakeOuterNumberSerializeWithHttpInfo(body).getData();
- }
-
- /**
- *
- * Test serialization of outer number types
- * @param body Input number as post body (optional)
- * @return ApiResponse<BigDecimal>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output number | - |
-
- */
- public ApiResponse fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
- Object localVarPostBody = body;
-
- // create path and map variables
- String localVarPath = "/fake/outer/number";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.fakeOuterNumberSerialize", localVarPath, "POST", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- *
- * Test serialization of outer string types
- * @param body Input string as post body (optional)
- * @return String
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output string | - |
-
- */
- public String fakeOuterStringSerialize(String body) throws ApiException {
- return fakeOuterStringSerializeWithHttpInfo(body).getData();
- }
-
- /**
- *
- * Test serialization of outer string types
- * @param body Input string as post body (optional)
- * @return ApiResponse<String>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Output string | - |
-
- */
- public ApiResponse fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
- Object localVarPostBody = body;
-
- // create path and map variables
- String localVarPath = "/fake/outer/string";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.fakeOuterStringSerialize", localVarPath, "POST", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- *
- * For this test, the body for this request much reference a schema named `File`.
- * @param fileSchemaTestClass (required)
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
-
- */
- public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
- testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
- }
-
- /**
- *
- * For this test, the body for this request much reference a schema named `File`.
- * @param fileSchemaTestClass (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
-
- */
- public ApiResponse testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
- Object localVarPostBody = fileSchemaTestClass;
-
- // verify the required parameter 'fileSchemaTestClass' is set
- if (fileSchemaTestClass == null) {
- throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
- }
-
- // create path and map variables
- String localVarPath = "/fake/body-with-file-schema";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
-
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- return apiClient.invokeAPI("FakeApi.testBodyWithFileSchema", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, null, null);
- }
- /**
- *
- *
- * @param query (required)
- * @param user (required)
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
-
- */
- public void testBodyWithQueryParams(String query, User user) throws ApiException {
- testBodyWithQueryParamsWithHttpInfo(query, user);
- }
-
- /**
- *
- *
- * @param query (required)
- * @param user (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | Success | - |
-
- */
- public ApiResponse testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
- Object localVarPostBody = user;
-
- // verify the required parameter 'query' is set
- if (query == null) {
- throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
- }
-
- // verify the required parameter 'user' is set
- if (user == null) {
- throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
- }
-
- // create path and map variables
- String localVarPath = "/fake/body-with-query-params";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "query", query));
-
-
-
-
- final String[] localVarAccepts = {
-
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- return apiClient.invokeAPI("FakeApi.testBodyWithQueryParams", localVarPath, "PUT", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, null, null);
- }
- /**
- * To test \"client\" model
- * To test \"client\" model
- * @param client client model (required)
- * @return Client
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public Client testClientModel(Client client) throws ApiException {
- return testClientModelWithHttpInfo(client).getData();
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * @param client client model (required)
- * @return ApiResponse<Client>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public ApiResponse testClientModelWithHttpInfo(Client client) throws ApiException {
- Object localVarPostBody = client;
-
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
- }
-
- // create path and map variables
- String localVarPath = "/fake";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/json"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- GenericType localVarReturnType = new GenericType() {};
-
- return apiClient.invokeAPI("FakeApi.testClientModel", localVarPath, "PATCH", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, localVarReturnType, null);
- }
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * @param number None (required)
- * @param _double None (required)
- * @param patternWithoutDelimiter None (required)
- * @param _byte None (required)
- * @param integer None (optional)
- * @param int32 None (optional)
- * @param int64 None (optional)
- * @param _float None (optional)
- * @param string None (optional)
- * @param binary None (optional)
- * @param date None (optional)
- * @param dateTime None (optional)
- * @param password None (optional)
- * @param paramCallback None (optional)
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Invalid username supplied | - |
- 404 | User not found | - |
-
- */
- public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
- 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)
- * @param _double None (required)
- * @param patternWithoutDelimiter None (required)
- * @param _byte None (required)
- * @param integer None (optional)
- * @param int32 None (optional)
- * @param int64 None (optional)
- * @param _float None (optional)
- * @param string None (optional)
- * @param binary None (optional)
- * @param date None (optional)
- * @param dateTime None (optional)
- * @param password None (optional)
- * @param paramCallback None (optional)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Invalid username supplied | - |
- 404 | User not found | - |
-
- */
- public ApiResponse testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'number' is set
- if (number == null) {
- throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
- }
-
- // verify the required parameter '_double' is set
- if (_double == null) {
- throw new ApiException(400, "Missing the required parameter '_double' when calling testEndpointParameters");
- }
-
- // verify the required parameter 'patternWithoutDelimiter' is set
- if (patternWithoutDelimiter == null) {
- throw new ApiException(400, "Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
- }
-
- // verify the required parameter '_byte' is set
- if (_byte == null) {
- throw new ApiException(400, "Missing the required parameter '_byte' when calling testEndpointParameters");
- }
-
- // create path and map variables
- String localVarPath = "/fake";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
-
-
-
- if (integer != null)
- localVarFormParams.put("integer", integer);
-if (int32 != null)
- localVarFormParams.put("int32", int32);
-if (int64 != null)
- localVarFormParams.put("int64", int64);
-if (number != null)
- localVarFormParams.put("number", number);
-if (_float != null)
- localVarFormParams.put("float", _float);
-if (_double != null)
- localVarFormParams.put("double", _double);
-if (string != null)
- localVarFormParams.put("string", string);
-if (patternWithoutDelimiter != null)
- localVarFormParams.put("pattern_without_delimiter", patternWithoutDelimiter);
-if (_byte != null)
- localVarFormParams.put("byte", _byte);
-if (binary != null)
- localVarFormParams.put("binary", binary);
-if (date != null)
- localVarFormParams.put("date", date);
-if (dateTime != null)
- localVarFormParams.put("dateTime", dateTime);
-if (password != null)
- localVarFormParams.put("password", password);
-if (paramCallback != null)
- localVarFormParams.put("callback", paramCallback);
-
- final String[] localVarAccepts = {
-
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/x-www-form-urlencoded"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { "http_basic_test" };
-
- return apiClient.invokeAPI("FakeApi.testEndpointParameters", localVarPath, "POST", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, null, null);
- }
- /**
- * To test enum parameters
- * To test enum parameters
- * @param enumHeaderStringArray Header parameter enum test (string array) (optional, default to new ArrayList<>())
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
- * @param enumQueryStringArray Query parameter enum test (string array) (optional, default to new ArrayList<>())
- * @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 enumFormStringArray Form parameter enum test (string array) (optional, default to $)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Invalid request | - |
- 404 | Not found | - |
-
- */
- public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException {
- testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
- }
-
- /**
- * To test enum parameters
- * To test enum parameters
- * @param enumHeaderStringArray Header parameter enum test (string array) (optional, default to new ArrayList<>())
- * @param enumHeaderString Header parameter enum test (string) (optional, default to -efg)
- * @param enumQueryStringArray Query parameter enum test (string array) (optional, default to new ArrayList<>())
- * @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 enumFormStringArray Form parameter enum test (string array) (optional, default to $)
- * @param enumFormString Form parameter enum test (string) (optional, default to -efg)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Invalid request | - |
- 404 | Not found | - |
-
- */
- public ApiResponse testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/fake";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "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_double", enumQueryDouble));
-
- if (enumHeaderStringArray != null)
- localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
-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);
-
- final String[] localVarAccepts = {
-
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
- "application/x-www-form-urlencoded"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- return apiClient.invokeAPI("FakeApi.testEnumParameters", localVarPath, "GET", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, null, null);
- }
-
-private ApiResponse testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'requiredStringGroup' is set
- if (requiredStringGroup == null) {
- throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
- }
-
- // verify the required parameter 'requiredBooleanGroup' is set
- if (requiredBooleanGroup == null) {
- throw new ApiException(400, "Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters");
- }
-
- // verify the required parameter 'requiredInt64Group' is set
- if (requiredInt64Group == null) {
- throw new ApiException(400, "Missing the required parameter 'requiredInt64Group' when calling testGroupParameters");
- }
-
- // create path and map variables
- String localVarPath = "/fake";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "required_string_group", requiredStringGroup));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "required_int64_group", requiredInt64Group));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "string_group", stringGroup));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "int64_group", int64Group));
-
- if (requiredBooleanGroup != null)
- localVarHeaderParams.put("required_boolean_group", apiClient.parameterToString(requiredBooleanGroup));
-if (booleanGroup != null)
- localVarHeaderParams.put("boolean_group", apiClient.parameterToString(booleanGroup));
-
-
-
- final String[] localVarAccepts = {
-
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { "bearer_test" };
-
- return apiClient.invokeAPI("FakeApi.testGroupParameters", localVarPath, "DELETE", localVarQueryParams, localVarPostBody,
- localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
- localVarAuthNames, null, null);
- }
-
- public class APItestGroupParametersRequest {
- private Integer requiredStringGroup;
- private Boolean requiredBooleanGroup;
- private Long requiredInt64Group;
- private Integer stringGroup;
- private Boolean booleanGroup;
- private Long int64Group;
-
- private APItestGroupParametersRequest() {
- }
-
- /**
- * Set requiredStringGroup
- * @param requiredStringGroup Required String in group parameters (required)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest requiredStringGroup(Integer requiredStringGroup) {
- this.requiredStringGroup = requiredStringGroup;
- return this;
- }
-
- /**
- * Set requiredBooleanGroup
- * @param requiredBooleanGroup Required Boolean in group parameters (required)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest requiredBooleanGroup(Boolean requiredBooleanGroup) {
- this.requiredBooleanGroup = requiredBooleanGroup;
- return this;
- }
-
- /**
- * Set requiredInt64Group
- * @param requiredInt64Group Required Integer in group parameters (required)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest requiredInt64Group(Long requiredInt64Group) {
- this.requiredInt64Group = requiredInt64Group;
- return this;
- }
-
- /**
- * Set stringGroup
- * @param stringGroup String in group parameters (optional)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest stringGroup(Integer stringGroup) {
- this.stringGroup = stringGroup;
- return this;
- }
-
- /**
- * Set booleanGroup
- * @param booleanGroup Boolean in group parameters (optional)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest booleanGroup(Boolean booleanGroup) {
- this.booleanGroup = booleanGroup;
- return this;
- }
-
- /**
- * Set int64Group
- * @param int64Group Integer in group parameters (optional)
- * @return APItestGroupParametersRequest
- */
- public APItestGroupParametersRequest int64Group(Long int64Group) {
- this.int64Group = int64Group;
- return this;
- }
-
- /**
- * Execute testGroupParameters request
-
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Someting wrong | - |
-
-
- */
-
- public void execute() throws ApiException {
- this.executeWithHttpInfo().getData();
- }
-
- /**
- * Execute testGroupParameters request with HTTP info returned
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 400 | Someting wrong | - |
-
-
- */
- public ApiResponse executeWithHttpInfo() throws ApiException {
- return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
- }
- }
-
- /**
- * Fake endpoint to test group parameters (optional)
- * Fake endpoint to test group parameters (optional)
- * @return testGroupParametersRequest
- * @throws ApiException if fails to make API call
-
-
- */
- public APItestGroupParametersRequest testGroupParameters() throws ApiException {
- return new APItestGroupParametersRequest();
- }
- /**
- * test inline additionalProperties
- *
- * @param requestBody request body (required)
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public void testInlineAdditionalProperties(Map requestBody) throws ApiException {
- testInlineAdditionalPropertiesWithHttpInfo(requestBody);
- }
-
- /**
- * test inline additionalProperties
- *
- * @param requestBody request body (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | successful operation | - |
-
- */
- public ApiResponse testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws ApiException {
- Object localVarPostBody = requestBody;
-
- // verify the required parameter 'requestBody' is set
- if (requestBody == null) {
- throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
- }
-
- // create path and map variables
- String localVarPath = "/fake/inline-additionalProperties";
-
- // query params
- List localVarQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap