()
)
));
@@ -188,10 +145,6 @@ protected void init() {
// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<>();
authentications.put("petstore_auth", new OAuth());
- authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
- authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
- authentications.put("http_basic_test", new HttpBasicAuth());
- authentications.put("bearer_test", new HttpBearerAuth("bearer"));
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
}
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/JavaTimeFormatter.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/JavaTimeFormatter.java
index 8ae8407d4443..dc8fe94ff796 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/JavaTimeFormatter.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/JavaTimeFormatter.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339DateFormat.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339DateFormat.java
index f8da739df992..ca15fc51124c 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339DateFormat.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339DateFormat.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java
index 08d64df2488d..64cae102ca19 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java
index 87441ced24fb..81d9a5c275dc 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerConfiguration.java
index 74095c567584..46fb957b0e19 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerConfiguration.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerConfiguration.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerVariable.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerVariable.java
index 591bd36bd07b..4906c4424736 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerVariable.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/ServerVariable.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/StringUtil.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/StringUtil.java
index 26c90952e0f2..fe96e227bdb5 100644
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/StringUtil.java
+++ b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/StringUtil.java
@@ -1,6 +1,6 @@
/*
* 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: \" \\
+ * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index e6ce9876a7b9..000000000000
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,121 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-
-import org.openapitools.client.model.Client;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Arrays;
-import java.util.stream.Collectors;
-
-import org.springframework.core.io.FileSystemResource;
-import org.springframework.core.ParameterizedTypeReference;
-import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.util.LinkedMultiValueMap;
-import org.springframework.util.MultiValueMap;
-import org.springframework.web.client.RestClient.ResponseSpec;
-import org.springframework.web.client.RestClientResponseException;
-
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
-public class AnotherFakeApi {
- private ApiClient apiClient;
-
- public AnotherFakeApi() {
- this(new ApiClient());
- }
-
- public AnotherFakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * 200 - successful operation
- * @param client client model
- * @return Client
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- Object postBody = client;
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new RestClientResponseException("Missing the required parameter 'client' when calling call123testSpecialTags", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/another-fake/dummy", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * 200 - successful operation
- * @param client client model
- * @return Client
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public Client call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return call123testSpecialTagsRequestCreation(client).body(localVarReturnType);
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * 200 - successful operation
- * @param client client model
- * @return ResponseEntity<Client>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return call123testSpecialTagsRequestCreation(client).toEntity(localVarReturnType);
- }
-
- /**
- * To test special tags
- * To test special tags and operation ID starting with number
- * 200 - successful operation
- * @param client client model
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- return call123testSpecialTagsRequestCreation(client);
- }
-}
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/DefaultApi.java
deleted file mode 100644
index 605f3488a096..000000000000
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/DefaultApi.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-
-import org.openapitools.client.model.FooGetDefaultResponse;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Arrays;
-import java.util.stream.Collectors;
-
-import org.springframework.core.io.FileSystemResource;
-import org.springframework.core.ParameterizedTypeReference;
-import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.util.LinkedMultiValueMap;
-import org.springframework.util.MultiValueMap;
-import org.springframework.web.client.RestClient.ResponseSpec;
-import org.springframework.web.client.RestClientResponseException;
-
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
-public class DefaultApi {
- private ApiClient apiClient;
-
- public DefaultApi() {
- this(new ApiClient());
- }
-
- public DefaultApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- *
- *
- *
0 - response
- * @return FooGetDefaultResponse
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fooGetRequestCreation() throws RestClientResponseException {
- Object postBody = null;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = { };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/foo", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- *
- * 0 - response
- * @return FooGetDefaultResponse
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public FooGetDefaultResponse fooGet() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fooGetRequestCreation().body(localVarReturnType);
- }
-
- /**
- *
- *
- * 0 - response
- * @return ResponseEntity<FooGetDefaultResponse>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fooGetWithHttpInfo() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fooGetRequestCreation().toEntity(localVarReturnType);
- }
-
- /**
- *
- *
- * 0 - response
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fooGetWithResponseSpec() throws RestClientResponseException {
- return fooGetRequestCreation();
- }
-}
diff --git a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index d4f663a007b4..000000000000
--- a/samples/client/petstore/java/restclient-springBoot4-jackson2/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,1868 +0,0 @@
-package org.openapitools.client.api;
-
-import org.openapitools.client.ApiClient;
-
-import java.math.BigDecimal;
-import org.openapitools.client.model.ChildWithNullable;
-import org.openapitools.client.model.Client;
-import org.openapitools.client.model.EnumClass;
-import org.openapitools.client.model.FakeBigDecimalMap200Response;
-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.OuterObjectWithEnumProperty;
-import org.openapitools.client.model.Pet;
-import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest;
-import org.openapitools.client.model.User;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Arrays;
-import java.util.stream.Collectors;
-
-import org.springframework.core.io.FileSystemResource;
-import org.springframework.core.ParameterizedTypeReference;
-import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.util.LinkedMultiValueMap;
-import org.springframework.util.MultiValueMap;
-import org.springframework.web.client.RestClient.ResponseSpec;
-import org.springframework.web.client.RestClientResponseException;
-
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
-public class FakeApi {
- private ApiClient apiClient;
-
- public FakeApi() {
- this(new ApiClient());
- }
-
- public FakeApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- *
200 - successful operation
- * @return FakeBigDecimalMap200Response
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeBigDecimalMapRequestCreation() throws RestClientResponseException {
- Object postBody = null;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = { };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/BigDecimalMap", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- * 200 - successful operation
- * @return FakeBigDecimalMap200Response
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public FakeBigDecimalMap200Response fakeBigDecimalMap() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeBigDecimalMapRequestCreation().body(localVarReturnType);
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- * 200 - successful operation
- * @return ResponseEntity<FakeBigDecimalMap200Response>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeBigDecimalMapWithHttpInfo() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeBigDecimalMapRequestCreation().toEntity(localVarReturnType);
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- * 200 - successful operation
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException {
- return fakeBigDecimalMapRequestCreation();
- }
-
- /**
- * Health check endpoint
- *
- *
200 - The instance started successfully
- * @return HealthCheckResult
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeHealthGetRequestCreation() throws RestClientResponseException {
- Object postBody = null;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = { };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/health", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * Health check endpoint
- *
- * 200 - The instance started successfully
- * @return HealthCheckResult
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public HealthCheckResult fakeHealthGet() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeHealthGetRequestCreation().body(localVarReturnType);
- }
-
- /**
- * Health check endpoint
- *
- * 200 - The instance started successfully
- * @return ResponseEntity<HealthCheckResult>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeHealthGetWithHttpInfo() throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeHealthGetRequestCreation().toEntity(localVarReturnType);
- }
-
- /**
- * Health check endpoint
- *
- * 200 - The instance started successfully
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeHealthGetWithResponseSpec() throws RestClientResponseException {
- return fakeHealthGetRequestCreation();
- }
-
- /**
- * test http signature authentication
- *
- *
200 - The instance started successfully
- * @param pet Pet object that needs to be added to the store
- * @param query1 query parameter
- * @param header1 header parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeHttpSignatureTestRequestCreation(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
- Object postBody = pet;
- // verify the required parameter 'pet' is set
- if (pet == null) {
- throw new RestClientResponseException("Missing the required parameter 'pet' when calling fakeHttpSignatureTest", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- queryParams.putAll(apiClient.parameterToMultiValueMap(null, "query_1", query1));
-
- if (header1 != null)
- headerParams.add("header_1", apiClient.parameterToString(header1));
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json", "application/xml"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { "http_signature_test" };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/http-signature-test", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * test http signature authentication
- *
- * 200 - The instance started successfully
- * @param pet Pet object that needs to be added to the store
- * @param query1 query parameter
- * @param header1 header parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- fakeHttpSignatureTestRequestCreation(pet, query1, header1).body(localVarReturnType);
- }
-
- /**
- * test http signature authentication
- *
- * 200 - The instance started successfully
- * @param pet Pet object that needs to be added to the store
- * @param query1 query parameter
- * @param header1 header parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeHttpSignatureTestRequestCreation(pet, query1, header1).toEntity(localVarReturnType);
- }
-
- /**
- * test http signature authentication
- *
- * 200 - The instance started successfully
- * @param pet Pet object that needs to be added to the store
- * @param query1 query parameter
- * @param header1 header parameter
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException {
- return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- *
200 - Output boolean
- * @param body Input boolean as post body
- * @return Boolean
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
- Object postBody = body;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/outer/boolean", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * 200 - Output boolean
- * @param body Input boolean as post body
- * @return Boolean
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public Boolean fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterBooleanSerializeRequestCreation(body).body(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * 200 - Output boolean
- * @param body Input boolean as post body
- * @return ResponseEntity<Boolean>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterBooleanSerializeRequestCreation(body).toEntity(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * 200 - Output boolean
- * @param body Input boolean as post body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException {
- return fakeOuterBooleanSerializeRequestCreation(body);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- *
200 - Output composite
- * @param outerComposite Input composite as post body
- * @return OuterComposite
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
- Object postBody = outerComposite;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/outer/composite", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- * 200 - Output composite
- * @param outerComposite Input composite as post body
- * @return OuterComposite
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public OuterComposite fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterCompositeSerializeRequestCreation(outerComposite).body(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- * 200 - Output composite
- * @param outerComposite Input composite as post body
- * @return ResponseEntity<OuterComposite>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterCompositeSerializeRequestCreation(outerComposite).toEntity(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- * 200 - Output composite
- * @param outerComposite Input composite as post body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException {
- return fakeOuterCompositeSerializeRequestCreation(outerComposite);
- }
-
- /**
- *
- * Test serialization of outer number types
- *
200 - Output number
- * @param body Input number as post body
- * @return BigDecimal
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
- Object postBody = body;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/outer/number", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer number types
- * 200 - Output number
- * @param body Input number as post body
- * @return BigDecimal
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public BigDecimal fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterNumberSerializeRequestCreation(body).body(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer number types
- * 200 - Output number
- * @param body Input number as post body
- * @return ResponseEntity<BigDecimal>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterNumberSerializeRequestCreation(body).toEntity(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer number types
- * 200 - Output number
- * @param body Input number as post body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException {
- return fakeOuterNumberSerializeRequestCreation(body);
- }
-
- /**
- *
- * Test serialization of outer string types
- *
200 - Output string
- * @param body Input string as post body
- * @return String
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
- Object postBody = body;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/outer/string", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer string types
- * 200 - Output string
- * @param body Input string as post body
- * @return String
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer string types
- * 200 - Output string
- * @param body Input string as post body
- * @return ResponseEntity<String>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer string types
- * 200 - Output string
- * @param body Input string as post body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException {
- return fakeOuterStringSerializeRequestCreation(body);
- }
-
- /**
- *
- * Test serialization of enum (int) properties with examples
- *
200 - Output enum (int)
- * @param outerObjectWithEnumProperty Input enum (int) as post body
- * @return OuterObjectWithEnumProperty
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
- Object postBody = outerObjectWithEnumProperty;
- // verify the required parameter 'outerObjectWithEnumProperty' is set
- if (outerObjectWithEnumProperty == null) {
- throw new RestClientResponseException("Missing the required parameter 'outerObjectWithEnumProperty' when calling fakePropertyEnumIntegerSerialize", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "*/*"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/property/enum-int", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * Test serialization of enum (int) properties with examples
- * 200 - Output enum (int)
- * @param outerObjectWithEnumProperty Input enum (int) as post body
- * @return OuterObjectWithEnumProperty
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).body(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of enum (int) properties with examples
- * 200 - Output enum (int)
- * @param outerObjectWithEnumProperty Input enum (int) as post body
- * @return ResponseEntity<OuterObjectWithEnumProperty>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).toEntity(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of enum (int) properties with examples
- * 200 - Output enum (int)
- * @param outerObjectWithEnumProperty Input enum (int) as post body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
- return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
- }
-
- /**
- * test referenced additionalProperties
- *
- *
200 - successful operation
- * @param requestBody request body
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException {
- Object postBody = requestBody;
- // verify the required parameter 'requestBody' is set
- if (requestBody == null) {
- throw new RestClientResponseException("Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/additionalProperties-reference", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * test referenced additionalProperties
- *
- * 200 - successful operation
- * @param requestBody request body
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void testAdditionalPropertiesReference(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- testAdditionalPropertiesReferenceRequestCreation(requestBody).body(localVarReturnType);
- }
-
- /**
- * test referenced additionalProperties
- *
- * 200 - successful operation
- * @param requestBody request body
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testAdditionalPropertiesReferenceRequestCreation(requestBody).toEntity(localVarReturnType);
- }
-
- /**
- * test referenced additionalProperties
- *
- * 200 - successful operation
- * @param requestBody request body
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException {
- return testAdditionalPropertiesReferenceRequestCreation(requestBody);
- }
-
- /**
- *
- * For this test, the body has to be a binary file.
- * 200 - Success
- * @param body image to upload
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testBodyWithBinaryRequestCreation(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
- Object postBody = body;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new RestClientResponseException("Missing the required parameter 'body' when calling testBodyWithBinary", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "image/png"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/body-with-binary", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * For this test, the body has to be a binary file.
- * 200 - Success
- * @param body image to upload
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void testBodyWithBinary(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- testBodyWithBinaryRequestCreation(body).body(localVarReturnType);
- }
-
- /**
- *
- * For this test, the body has to be a binary file.
- * 200 - Success
- * @param body image to upload
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testBodyWithBinaryWithHttpInfo(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testBodyWithBinaryRequestCreation(body).toEntity(localVarReturnType);
- }
-
- /**
- *
- * For this test, the body has to be a binary file.
- * 200 - Success
- * @param body image to upload
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException {
- return testBodyWithBinaryRequestCreation(body);
- }
-
- /**
- *
- * For this test, the body for this request must reference a schema named `File`.
- *
200 - Success
- * @param fileSchemaTestClass The fileSchemaTestClass parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testBodyWithFileSchemaRequestCreation(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
- Object postBody = fileSchemaTestClass;
- // verify the required parameter 'fileSchemaTestClass' is set
- if (fileSchemaTestClass == null) {
- throw new RestClientResponseException("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/body-with-file-schema", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- * For this test, the body for this request must reference a schema named `File`.
- * 200 - Success
- * @param fileSchemaTestClass The fileSchemaTestClass parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void testBodyWithFileSchema(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).body(localVarReturnType);
- }
-
- /**
- *
- * For this test, the body for this request must reference a schema named `File`.
- * 200 - Success
- * @param fileSchemaTestClass The fileSchemaTestClass parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass).toEntity(localVarReturnType);
- }
-
- /**
- *
- * For this test, the body for this request must reference a schema named `File`.
- * 200 - Success
- * @param fileSchemaTestClass The fileSchemaTestClass parameter
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
- return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
- }
-
- /**
- *
- *
- *
200 - Success
- * @param query The query parameter
- * @param user The user parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testBodyWithQueryParamsRequestCreation(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
- Object postBody = user;
- // verify the required parameter 'query' is set
- if (query == null) {
- throw new RestClientResponseException("Missing the required parameter 'query' when calling testBodyWithQueryParams", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // verify the required parameter 'user' is set
- if (user == null) {
- throw new RestClientResponseException("Missing the required parameter 'user' when calling testBodyWithQueryParams", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- queryParams.putAll(apiClient.parameterToMultiValueMap(null, "query", query));
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake/body-with-query-params", HttpMethod.PUT, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- *
- *
- * 200 - Success
- * @param query The query parameter
- * @param user The user parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void testBodyWithQueryParams(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- testBodyWithQueryParamsRequestCreation(query, user).body(localVarReturnType);
- }
-
- /**
- *
- *
- * 200 - Success
- * @param query The query parameter
- * @param user The user parameter
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testBodyWithQueryParamsRequestCreation(query, user).toEntity(localVarReturnType);
- }
-
- /**
- *
- *
- * 200 - Success
- * @param query The query parameter
- * @param user The user parameter
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException {
- return testBodyWithQueryParamsRequestCreation(query, user);
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- *
200 - successful operation
- * @param client client model
- * @return Client
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testClientModelRequestCreation(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- Object postBody = client;
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new RestClientResponseException("Missing the required parameter 'client' when calling testClientModel", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/json"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake", HttpMethod.PATCH, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * 200 - successful operation
- * @param client client model
- * @return Client
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public Client testClientModel(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testClientModelRequestCreation(client).body(localVarReturnType);
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * 200 - successful operation
- * @param client client model
- * @return ResponseEntity<Client>
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testClientModelWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testClientModelRequestCreation(client).toEntity(localVarReturnType);
- }
-
- /**
- * To test \"client\" model
- * To test \"client\" model
- * 200 - successful operation
- * @param client client model
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException {
- return testClientModelRequestCreation(client);
- }
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- *
400 - Invalid username supplied
- *
404 - User not found
- * @param number None
- * @param _double None
- * @param patternWithoutDelimiter None
- * @param _byte None
- * @param integer None
- * @param int32 None
- * @param int64 None
- * @param _float None
- * @param string None
- * @param binary None
- * @param date None
- * @param dateTime None
- * @param password None
- * @param paramCallback None
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testEndpointParametersRequestCreation(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
- Object postBody = null;
- // verify the required parameter 'number' is set
- if (number == null) {
- throw new RestClientResponseException("Missing the required parameter 'number' when calling testEndpointParameters", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // verify the required parameter '_double' is set
- if (_double == null) {
- throw new RestClientResponseException("Missing the required parameter '_double' when calling testEndpointParameters", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // verify the required parameter 'patternWithoutDelimiter' is set
- if (patternWithoutDelimiter == null) {
- throw new RestClientResponseException("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // verify the required parameter '_byte' is set
- if (_byte == null) {
- throw new RestClientResponseException("Missing the required parameter '_byte' when calling testEndpointParameters", HttpStatus.BAD_REQUEST.value(), HttpStatus.BAD_REQUEST.getReasonPhrase(), null, null, null);
- }
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- if (integer != null)
- formParams.add("integer", integer);
- if (int32 != null)
- formParams.add("int32", int32);
- if (int64 != null)
- formParams.add("int64", int64);
- if (number != null)
- formParams.add("number", number);
- if (_float != null)
- formParams.add("float", _float);
- if (_double != null)
- formParams.add("double", _double);
- if (string != null)
- formParams.add("string", string);
- if (patternWithoutDelimiter != null)
- formParams.add("pattern_without_delimiter", patternWithoutDelimiter);
- if (_byte != null)
- formParams.add("byte", _byte);
- if (binary != null)
- formParams.add("binary", new FileSystemResource(binary));
- if (date != null)
- formParams.add("date", date);
- if (dateTime != null)
- formParams.add("dateTime", dateTime);
- if (password != null)
- formParams.add("password", password);
- if (paramCallback != null)
- formParams.add("callback", paramCallback);
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/x-www-form-urlencoded"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { "http_basic_test" };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake", HttpMethod.POST, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * 400 - Invalid username supplied
- *
404 - User not found
- * @param number None
- * @param _double None
- * @param patternWithoutDelimiter None
- * @param _byte None
- * @param integer None
- * @param int32 None
- * @param int64 None
- * @param _float None
- * @param string None
- * @param binary None
- * @param date None
- * @param dateTime None
- * @param password None
- * @param paramCallback None
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public void testEndpointParameters(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).body(localVarReturnType);
- }
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * 400 - Invalid username supplied
- *
404 - User not found
- * @param number None
- * @param _double None
- * @param patternWithoutDelimiter None
- * @param _byte None
- * @param integer None
- * @param int32 None
- * @param int64 None
- * @param _float None
- * @param string None
- * @param binary None
- * @param date None
- * @param dateTime None
- * @param password None
- * @param paramCallback None
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseEntity testEndpointParametersWithHttpInfo(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback).toEntity(localVarReturnType);
- }
-
- /**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * 400 - Invalid username supplied
- *
404 - User not found
- * @param number None
- * @param _double None
- * @param patternWithoutDelimiter None
- * @param _byte None
- * @param integer None
- * @param int32 None
- * @param int64 None
- * @param _float None
- * @param string None
- * @param binary None
- * @param date None
- * @param dateTime None
- * @param password None
- * @param paramCallback None
- * @return ResponseSpec
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException {
- return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
- }
-
- /**
- * To test enum parameters
- * To test enum parameters
- *
400 - Invalid request
- *
404 - Not found
- * @param enumHeaderStringArray Header parameter enum test (string array)
- * @param enumHeaderString Header parameter enum test (string)
- * @param enumQueryStringArray Query parameter enum test (string array)
- * @param enumQueryString Query parameter enum test (string)
- * @param enumQueryInteger Query parameter enum test (double)
- * @param enumQueryDouble Query parameter enum test (double)
- * @param enumQueryModelArray The enumQueryModelArray parameter
- * @param enumFormStringArray Form parameter enum test (string array)
- * @param enumFormString Form parameter enum test (string)
- * @throws RestClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testEnumParametersRequestCreation(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException {
- Object postBody = null;
- // create path and map variables
- final Map pathParams = new HashMap<>();
-
- final MultiValueMap queryParams = new LinkedMultiValueMap<>();
- final HttpHeaders headerParams = new HttpHeaders();
- final MultiValueMap cookieParams = new LinkedMultiValueMap<>();
- final MultiValueMap formParams = new LinkedMultiValueMap<>();
-
- queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "enum_query_string_array", enumQueryStringArray));
- queryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_string", enumQueryString));
- queryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_integer", enumQueryInteger));
- queryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_double", enumQueryDouble));
- queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "enum_query_model_array", enumQueryModelArray));
-
- if (enumHeaderStringArray != null)
- headerParams.add("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
- if (enumHeaderString != null)
- headerParams.add("enum_header_string", apiClient.parameterToString(enumHeaderString));
- if (enumFormStringArray != null)
- formParams.addAll("enum_form_string_array", enumFormStringArray);
- if (enumFormString != null)
- formParams.add("enum_form_string", enumFormString);
-
- final String[] localVarAccepts = { };
- final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- "application/x-www-form-urlencoded"
- };
- final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
-
- String[] localVarAuthNames = new String[] { };
-
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {};
- return apiClient.invokeAPI("/fake", HttpMethod.GET, pathParams, queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
-
- /**
- * To test enum parameters
- * To test enum parameters
- *