();
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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/JavaTimeFormatter.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/JavaTimeFormatter.java
index 8ae8407d4443..dc8fe94ff796 100644
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/JavaTimeFormatter.java
+++ b/samples/client/petstore/java/webclient-springBoot4-jackson3/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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
index fc995e289fa9..e011eca63b62 100644
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/RFC3339DateFormat.java
+++ b/samples/client/petstore/java/webclient-springBoot4-jackson3/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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java
index 74095c567584..46fb957b0e19 100644
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerConfiguration.java
+++ b/samples/client/petstore/java/webclient-springBoot4-jackson3/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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerVariable.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerVariable.java
index 591bd36bd07b..4906c4424736 100644
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/ServerVariable.java
+++ b/samples/client/petstore/java/webclient-springBoot4-jackson3/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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/StringUtil.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/StringUtil.java
index 26c90952e0f2..fe96e227bdb5 100644
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/StringUtil.java
+++ b/samples/client/petstore/java/webclient-springBoot4-jackson3/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/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
deleted file mode 100644
index 8dba821fc96d..000000000000
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ /dev/null
@@ -1,123 +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.reactive.function.client.WebClient.ResponseSpec;
-import org.springframework.web.reactive.function.client.WebClientResponseException;
-import reactor.core.publisher.Mono;
-import reactor.core.publisher.Flux;
-
-@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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec call123testSpecialTagsRequestCreation(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException {
- Object postBody = client;
- // verify the required parameter 'client' is set
- if (client == null) {
- throw new WebClientResponseException("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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono call123testSpecialTags(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return call123testSpecialTagsRequestCreation(client).bodyToMono(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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> call123testSpecialTagsWithHttpInfo(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec call123testSpecialTagsWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws WebClientResponseException {
- return call123testSpecialTagsRequestCreation(client);
- }
-}
diff --git a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/DefaultApi.java
deleted file mode 100644
index a548021eacf3..000000000000
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/DefaultApi.java
+++ /dev/null
@@ -1,113 +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.reactive.function.client.WebClient.ResponseSpec;
-import org.springframework.web.reactive.function.client.WebClientResponseException;
-import reactor.core.publisher.Mono;
-import reactor.core.publisher.Flux;
-
-@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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fooGetRequestCreation() throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fooGet() throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fooGetRequestCreation().bodyToMono(localVarReturnType);
- }
-
- /**
- *
- *
- * 0 - response
- * @return ResponseEntity<FooGetDefaultResponse>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fooGetWithHttpInfo() throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fooGetRequestCreation().toEntity(localVarReturnType);
- }
-
- /**
- *
- *
- * 0 - response
- * @return ResponseSpec
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fooGetWithResponseSpec() throws WebClientResponseException {
- return fooGetRequestCreation();
- }
-}
diff --git a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java
deleted file mode 100644
index 155905f854ef..000000000000
--- a/samples/client/petstore/java/webclient-springBoot4-jackson3/src/main/java/org/openapitools/client/api/FakeApi.java
+++ /dev/null
@@ -1,1870 +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.reactive.function.client.WebClient.ResponseSpec;
-import org.springframework.web.reactive.function.client.WebClientResponseException;
-import reactor.core.publisher.Mono;
-import reactor.core.publisher.Flux;
-
-@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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeBigDecimalMapRequestCreation() throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeBigDecimalMap() throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeBigDecimalMapRequestCreation().bodyToMono(localVarReturnType);
- }
-
- /**
- *
- * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
- * 200 - successful operation
- * @return ResponseEntity<FakeBigDecimalMap200Response>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeBigDecimalMapWithHttpInfo() throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException {
- return fakeBigDecimalMapRequestCreation();
- }
-
- /**
- * Health check endpoint
- *
- *
200 - The instance started successfully
- * @return HealthCheckResult
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeHealthGetRequestCreation() throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeHealthGet() throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeHealthGetRequestCreation().bodyToMono(localVarReturnType);
- }
-
- /**
- * Health check endpoint
- *
- * 200 - The instance started successfully
- * @return ResponseEntity<HealthCheckResult>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeHealthGetWithHttpInfo() throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeHealthGetRequestCreation().toEntity(localVarReturnType);
- }
-
- /**
- * Health check endpoint
- *
- * 200 - The instance started successfully
- * @return ResponseSpec
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException {
- 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 WebClientResponseException 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 WebClientResponseException {
- Object postBody = pet;
- // verify the required parameter 'pet' is set
- if (pet == null) {
- throw new WebClientResponseException("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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeHttpSignatureTest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeHttpSignatureTestRequestCreation(pet, query1, header1).bodyToMono(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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeHttpSignatureTestWithHttpInfo(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws WebClientResponseException {
- 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 WebClientResponseException 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 WebClientResponseException {
- return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- *
200 - Output boolean
- * @param body Input boolean as post body
- * @return Boolean
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterBooleanSerializeRequestCreation(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeOuterBooleanSerialize(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeOuterBooleanSerializeRequestCreation(body).bodyToMono(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer boolean types
- * 200 - Output boolean
- * @param body Input boolean as post body
- * @return ResponseEntity<Boolean>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeOuterBooleanSerializeWithHttpInfo(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws WebClientResponseException {
- return fakeOuterBooleanSerializeRequestCreation(body);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- *
200 - Output composite
- * @param outerComposite Input composite as post body
- * @return OuterComposite
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterCompositeSerializeRequestCreation(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeOuterCompositeSerialize(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeOuterCompositeSerializeRequestCreation(outerComposite).bodyToMono(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of object with outer number type
- * 200 - Output composite
- * @param outerComposite Input composite as post body
- * @return ResponseEntity<OuterComposite>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeOuterCompositeSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws WebClientResponseException {
- return fakeOuterCompositeSerializeRequestCreation(outerComposite);
- }
-
- /**
- *
- * Test serialization of outer number types
- *
200 - Output number
- * @param body Input number as post body
- * @return BigDecimal
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterNumberSerializeRequestCreation(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeOuterNumberSerialize(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeOuterNumberSerializeRequestCreation(body).bodyToMono(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer number types
- * 200 - Output number
- * @param body Input number as post body
- * @return ResponseEntity<BigDecimal>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeOuterNumberSerializeWithHttpInfo(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws WebClientResponseException {
- return fakeOuterNumberSerializeRequestCreation(body);
- }
-
- /**
- *
- * Test serialization of outer string types
- *
200 - Output string
- * @param body Input string as post body
- * @return String
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType);
- }
-
- /**
- *
- * Test serialization of outer string types
- * 200 - Output string
- * @param body Input string as post body
- * @return ResponseEntity<String>
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec fakePropertyEnumIntegerSerializeRequestCreation(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
- Object postBody = outerObjectWithEnumProperty;
- // verify the required parameter 'outerObjectWithEnumProperty' is set
- if (outerObjectWithEnumProperty == null) {
- throw new WebClientResponseException("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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono fakePropertyEnumIntegerSerialize(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
- ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {};
- return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty).bodyToMono(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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public Mono> fakePropertyEnumIntegerSerializeWithHttpInfo(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
- 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 WebClientResponseException if an error occurs while attempting to invoke the API
- */
- public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
- return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
- }
-
- /**
- * test referenced additionalProperties
- *
- *
200 - successful operation
- * @param requestBody request body
- * @throws WebClientResponseException if an error occurs while attempting to invoke the API
- */
- private ResponseSpec testAdditionalPropertiesReferenceRequestCreation(@jakarta.annotation.Nonnull Map requestBody) throws WebClientResponseException {
- Object postBody = requestBody;
- // verify the required parameter 'requestBody' is set
- if (requestBody == null) {
- throw new WebClientResponseException("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
- *
- *