From 965850add2723a38d12b1d82dcd4202aa9d56466 Mon Sep 17 00:00:00 2001 From: Nicklas Wiegandt Date: Thu, 10 Oct 2024 21:31:59 +0200 Subject: [PATCH] fix (JAVA SPRING WEBCLIENT): Fix code indention --- .../Java/libraries/webclient/api.mustache | 128 ++- .../openapitools/client/api/ResourceApi.java | 9 +- .../client/api/AnotherFakeApi.java | 9 +- .../openapitools/client/api/DefaultApi.java | 9 +- .../org/openapitools/client/api/FakeApi.java | 30 +- .../client/api/FakeClassnameTags123Api.java | 9 +- .../org/openapitools/client/api/PetApi.java | 17 +- .../org/openapitools/client/api/StoreApi.java | 12 +- .../org/openapitools/client/api/UserApi.java | 16 +- .../openapitools/client/api/DefaultApi.java | 9 +- .../client/api/AnotherFakeApi.java | 9 +- .../openapitools/client/api/DefaultApi.java | 9 +- .../org/openapitools/client/api/FakeApi.java | 30 +- .../client/api/FakeClassnameTags123Api.java | 9 +- .../org/openapitools/client/api/PetApi.java | 17 +- .../org/openapitools/client/api/StoreApi.java | 12 +- .../org/openapitools/client/api/UserApi.java | 16 +- .../client/api/AnotherFakeApi.java | 9 +- .../openapitools/client/api/DefaultApi.java | 9 +- .../org/openapitools/client/api/FakeApi.java | 937 +++++++++--------- .../client/api/FakeClassnameTags123Api.java | 9 +- .../org/openapitools/client/api/PetApi.java | 413 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +- .../org/openapitools/client/api/UserApi.java | 202 ++-- .../client/api/AnotherFakeApi.java | 9 +- .../openapitools/client/api/DefaultApi.java | 9 +- .../org/openapitools/client/api/FakeApi.java | 30 +- .../client/api/FakeClassnameTags123Api.java | 9 +- .../org/openapitools/client/api/PetApi.java | 17 +- .../org/openapitools/client/api/StoreApi.java | 12 +- .../org/openapitools/client/api/UserApi.java | 16 +- 31 files changed, 1118 insertions(+), 925 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache index 7f44ce7190357..7d6d115ec3264 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache @@ -37,96 +37,90 @@ public class {{classname}} { private ApiClient apiClient; public {{classname}}() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public {{classname}}(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } - {{#operation}} - {{#useSingleRequestParameter}} - {{#hasParams}} - {{^hasSingleParam}} - + {{#operation}}{{#useSingleRequestParameter}}{{#hasParams}}{{^hasSingleParam}} public class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { {{#allParams}} - private final {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; + private final {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; {{/allParams}} - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { - {{#allParams}} - this.{{paramName}} = {{paramName}}; - {{/allParams}} + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { + {{#allParams}} + this.{{paramName}} = {{paramName}}; + {{/allParams}} } - {{#allParams}} - public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { - return this.{{paramName}}; - } - {{/allParams}} + {{#allParams}} + public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { + return this.{{paramName}}; + } + {{/allParams}} } - /** - * {{summary}} - * {{notes}} - {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} - {{/responses}} * @param requestParameters The {{operationId}} request parameters as object - {{#returnType}} * @return {{.}} - {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { - {{^returnType}}{{^vendorExtensions.x-webclient-blocking}}return {{/vendorExtensions.x-webclient-blocking}}{{/returnType}}{{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); - } + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + {{#returnType}} * @return {{.}} + {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + {{^returnType}}{{^vendorExtensions.x-webclient-blocking}}return {{/vendorExtensions.x-webclient-blocking}}{{/returnType}}{{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } - /** - * {{summary}} - * {{notes}} - {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} - {{/responses}} * @param requestParameters The {{operationId}} request parameters as object - {{#returnType}} * @return ResponseEntity<{{.}}> - {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { - return this.{{operationId}}WithHttpInfo({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); - } + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + {{#returnType}} * @return ResponseEntity<{{.}}> + {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + return this.{{operationId}}WithHttpInfo({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } - /** - * {{summary}} - * {{notes}} - {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} - {{/responses}} * @param requestParameters The {{operationId}} request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - public ResponseSpec {{operationId}}WithResponseSpec({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { - return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); - } + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public ResponseSpec {{operationId}}WithResponseSpec({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } - {{/hasSingleParam}} - {{/hasParams}} - {{/useSingleRequestParameter}} + {{/hasSingleParam}}{{/hasParams}}{{/useSingleRequestParameter}} /** * {{summary}} * {{notes}} diff --git a/samples/client/others/java/webclient-useAbstractionForFiles/src/main/java/org/openapitools/client/api/ResourceApi.java b/samples/client/others/java/webclient-useAbstractionForFiles/src/main/java/org/openapitools/client/api/ResourceApi.java index d7ce186ff8a03..bceb9b0d4479b 100644 --- a/samples/client/others/java/webclient-useAbstractionForFiles/src/main/java/org/openapitools/client/api/ResourceApi.java +++ b/samples/client/others/java/webclient-useAbstractionForFiles/src/main/java/org/openapitools/client/api/ResourceApi.java @@ -30,22 +30,23 @@ public class ResourceApi { private ApiClient apiClient; public ResourceApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public ResourceApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * Response file abstraction diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index d63b776c95096..e812b1ab4243c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -30,22 +30,23 @@ public class AnotherFakeApi { private ApiClient apiClient; public AnotherFakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public AnotherFakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test special tags * To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/DefaultApi.java index 7069dbc3197bb..47cb56709247c 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -30,22 +30,23 @@ public class DefaultApi { private ApiClient apiClient; public DefaultApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public DefaultApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java index f71b35a31ed9b..010c5d05291bd 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java @@ -44,22 +44,23 @@ public class FakeApi { private ApiClient apiClient; public FakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys @@ -124,6 +125,7 @@ public Mono> fakeBigDecimalMapWithH public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -188,6 +190,7 @@ public Mono> fakeHealthGetWithHttpInfo() throw public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException { return fakeHealthGetRequestCreation(); } + /** * test http signature authentication * @@ -270,6 +273,7 @@ public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, Str public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -340,6 +344,7 @@ public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boole public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -410,6 +415,7 @@ public Mono> fakeOuterCompositeSerializeWithHttpI public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -480,6 +486,7 @@ public Mono> fakeOuterNumberSerializeWithHttpInfo(Big public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -550,6 +557,7 @@ public Mono> fakeOuterStringSerializeWithHttpInfo(String public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -624,6 +632,7 @@ public Mono> fakePropertyEnumInteger public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -693,6 +702,7 @@ public Mono> testAdditionalPropertiesReferenceWithHttpInfo( public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -762,6 +772,7 @@ public Mono> testBodyWithBinaryWithHttpInfo(File body) thro public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -831,6 +842,7 @@ public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaT public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + /** * * @@ -910,6 +922,7 @@ public Mono> testBodyWithQueryParamsWithHttpInfo(String que public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -984,6 +997,7 @@ public Mono> testClientModelWithHttpInfo(Client client) t public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1150,6 +1164,7 @@ public Mono> testEndpointParametersWithHttpInfo(BigDecimal public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + /** * To test enum parameters * To test enum parameters @@ -1267,6 +1282,7 @@ public Mono> testEnumParametersWithHttpInfo(List en public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } + /** * Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional) @@ -1372,6 +1388,7 @@ public Mono> testGroupParametersWithHttpInfo(Integer requir public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1441,6 +1458,7 @@ public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1510,6 +1528,7 @@ public Mono> testInlineFreeformAdditionalPropertiesWithHttp public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + /** * test json serialization of form data * @@ -1592,6 +1611,7 @@ public Mono> testJsonFormDataWithHttpInfo(String param, Str public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1661,6 +1681,7 @@ public Mono> testNullableWithHttpInfo(ChildWithNullable chi public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } + /** * * To test the collection format in query parameters @@ -1780,6 +1801,7 @@ public Mono> testQueryParameterCollectionFormatWithHttpInfo public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 88ab9e6f50117..b2f6b1d7b2634 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -30,22 +30,23 @@ public class FakeClassnameTags123Api { private ApiClient apiClient; public FakeClassnameTags123Api() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeClassnameTags123Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test class name in snake case * To test class name in snake case diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java index dc8f5e49246f6..02ea6c78f0af1 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/PetApi.java @@ -33,22 +33,23 @@ public class PetApi { private ApiClient apiClient; public PetApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public PetApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Add a new pet to the store * @@ -122,6 +123,7 @@ public Mono> addPetWithHttpInfo(Pet pet) throws WebClientRe public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } + /** * Deletes a pet * @@ -202,6 +204,7 @@ public Mono> deletePetWithHttpInfo(Long petId, String apiKe public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -280,6 +283,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -360,6 +364,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) th public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -442,6 +447,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientRe public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -523,6 +529,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientRespo public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } + /** * Updates a pet in the store with form data * @@ -611,6 +618,7 @@ public Mono> updatePetWithFormWithHttpInfo(Long petId, Stri public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } + /** * uploads an image * @@ -700,6 +708,7 @@ public Mono> uploadFileWithHttpInfo(Long petId, public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java index 989721e2ceb5c..39ad3256c0a3e 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java @@ -30,22 +30,23 @@ public class StoreApi { private ApiClient apiClient; public StoreApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public StoreApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -119,6 +120,7 @@ public Mono> deleteOrderWithHttpInfo(String orderId) throws public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -183,6 +185,7 @@ public Mono>> getInventoryWithHttpInfo() thr public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -265,6 +268,7 @@ public Mono> getOrderByIdWithHttpInfo(Long orderId) throws public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java index ece2669f79180..dc4cdbec31ad8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/UserApi.java @@ -31,22 +31,23 @@ public class UserApi { private ApiClient apiClient; public UserApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public UserApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Create user * This can only be done by the logged in user. @@ -116,6 +117,7 @@ public Mono> createUserWithHttpInfo(User user) throws WebCl public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -185,6 +187,7 @@ public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -254,6 +257,7 @@ public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -327,6 +331,7 @@ public Mono> deleteUserWithHttpInfo(String username) throws public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -409,6 +414,7 @@ public Mono> getUserByNameWithHttpInfo(String username) thr public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } + /** * Logs user into the system * @@ -496,6 +502,7 @@ public Mono> loginUserWithHttpInfo(String username, Strin public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -555,6 +562,7 @@ public Mono> logoutUserWithHttpInfo() throws WebClientRespo public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException { return logoutUserRequestCreation(); } + /** * Updated user * This can only be done by the logged in user. diff --git a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/api/DefaultApi.java index 4bff191408b84..6d4676d6aecda 100644 --- a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -30,22 +30,23 @@ public class DefaultApi { private ApiClient apiClient; public DefaultApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public DefaultApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e76b7813609e9..f3baafcae65aa 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -30,22 +30,23 @@ public class AnotherFakeApi { private ApiClient apiClient; public AnotherFakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public AnotherFakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test special tags * To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/DefaultApi.java index 118aaa2df4d8b..26bab469b2dea 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -30,22 +30,23 @@ public class DefaultApi { private ApiClient apiClient; public DefaultApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public DefaultApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index fcc5ef7af8ef9..07718aedea933 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -44,22 +44,23 @@ public class FakeApi { private ApiClient apiClient; public FakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys @@ -124,6 +125,7 @@ public Mono> fakeBigDecimalMapWithH public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -188,6 +190,7 @@ public Mono> fakeHealthGetWithHttpInfo() throw public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException { return fakeHealthGetRequestCreation(); } + /** * test http signature authentication * @@ -270,6 +273,7 @@ public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, Str public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -340,6 +344,7 @@ public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boole public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -410,6 +415,7 @@ public Mono> fakeOuterCompositeSerializeWithHttpI public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -480,6 +486,7 @@ public Mono> fakeOuterNumberSerializeWithHttpInfo(Big public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -550,6 +557,7 @@ public Mono> fakeOuterStringSerializeWithHttpInfo(String public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -624,6 +632,7 @@ public Mono> fakePropertyEnumInteger public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -693,6 +702,7 @@ public Mono> testAdditionalPropertiesReferenceWithHttpInfo( public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -762,6 +772,7 @@ public Mono> testBodyWithBinaryWithHttpInfo(File body) thro public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -831,6 +842,7 @@ public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaT public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + /** * * @@ -910,6 +922,7 @@ public Mono> testBodyWithQueryParamsWithHttpInfo(String que public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -984,6 +997,7 @@ public Mono> testClientModelWithHttpInfo(Client client) t public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1150,6 +1164,7 @@ public Mono> testEndpointParametersWithHttpInfo(BigDecimal public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + /** * To test enum parameters * To test enum parameters @@ -1267,6 +1282,7 @@ public Mono> testEnumParametersWithHttpInfo(List en public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } + /** * Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional) @@ -1372,6 +1388,7 @@ public Mono> testGroupParametersWithHttpInfo(Integer requir public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1441,6 +1458,7 @@ public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1510,6 +1528,7 @@ public Mono> testInlineFreeformAdditionalPropertiesWithHttp public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + /** * test json serialization of form data * @@ -1592,6 +1611,7 @@ public Mono> testJsonFormDataWithHttpInfo(String param, Str public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1661,6 +1681,7 @@ public Mono> testNullableWithHttpInfo(ChildWithNullable chi public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } + /** * * To test the collection format in query parameters @@ -1780,6 +1801,7 @@ public Mono> testQueryParameterCollectionFormatWithHttpInfo public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 376a516fe104b..63d5efd218d43 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -30,22 +30,23 @@ public class FakeClassnameTags123Api { private ApiClient apiClient; public FakeClassnameTags123Api() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeClassnameTags123Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test class name in snake case * To test class name in snake case diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 160b903b1b2c8..43e4eda0da6fc 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -33,22 +33,23 @@ public class PetApi { private ApiClient apiClient; public PetApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public PetApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Add a new pet to the store * @@ -122,6 +123,7 @@ public Mono> addPetWithHttpInfo(Pet pet) throws WebClientRe public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } + /** * Deletes a pet * @@ -202,6 +204,7 @@ public Mono> deletePetWithHttpInfo(Long petId, String apiKe public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -280,6 +283,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -360,6 +364,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) th public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -442,6 +447,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientRe public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -523,6 +529,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientRespo public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } + /** * Updates a pet in the store with form data * @@ -611,6 +618,7 @@ public Mono> updatePetWithFormWithHttpInfo(Long petId, Stri public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } + /** * uploads an image * @@ -700,6 +708,7 @@ public Mono> uploadFileWithHttpInfo(Long petId, public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index 4bcde0fcf3781..1853bd5869664 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -30,22 +30,23 @@ public class StoreApi { private ApiClient apiClient; public StoreApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public StoreApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -119,6 +120,7 @@ public Mono> deleteOrderWithHttpInfo(String orderId) throws public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -183,6 +185,7 @@ public Mono>> getInventoryWithHttpInfo() thr public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -265,6 +268,7 @@ public Mono> getOrderByIdWithHttpInfo(Long orderId) throws public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 141d507229410..8f69f490c5c66 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -31,22 +31,23 @@ public class UserApi { private ApiClient apiClient; public UserApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public UserApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Create user * This can only be done by the logged in user. @@ -116,6 +117,7 @@ public Mono> createUserWithHttpInfo(User user) throws WebCl public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -185,6 +187,7 @@ public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -254,6 +257,7 @@ public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -327,6 +331,7 @@ public Mono> deleteUserWithHttpInfo(String username) throws public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -409,6 +414,7 @@ public Mono> getUserByNameWithHttpInfo(String username) thr public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } + /** * Logs user into the system * @@ -496,6 +502,7 @@ public Mono> loginUserWithHttpInfo(String username, Strin public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -555,6 +562,7 @@ public Mono> logoutUserWithHttpInfo() throws WebClientRespo public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException { return logoutUserRequestCreation(); } + /** * Updated user * This can only be done by the logged in user. diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e76b7813609e9..f3baafcae65aa 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -30,22 +30,23 @@ public class AnotherFakeApi { private ApiClient apiClient; public AnotherFakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public AnotherFakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test special tags * To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/DefaultApi.java index 118aaa2df4d8b..26bab469b2dea 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -30,22 +30,23 @@ public class DefaultApi { private ApiClient apiClient; public DefaultApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public DefaultApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index 18af84a39a1bb..41e3080414a59 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -44,22 +44,23 @@ public class FakeApi { private ApiClient apiClient; public FakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys @@ -124,6 +125,7 @@ public Mono> fakeBigDecimalMapWithH public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -189,62 +191,64 @@ public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseExce return fakeHealthGetRequestCreation(); } + public class FakeHttpSignatureTestRequest { - private final Pet pet; - private final String query1; - private final String header1; - - public FakeHttpSignatureTestRequest(Pet pet, String query1, String header1) { - this.pet = pet; - this.query1 = query1; - this.header1 = header1; + private final Pet pet; + private final String query1; + private final String header1; + + public FakeHttpSignatureTestRequest(Pet pet, String query1, String header1) { + this.pet = pet; + this.query1 = query1; + this.header1 = header1; } - public Pet pet() { - return this.pet; - } - public String query1() { - return this.query1; - } - public String header1() { - return this.header1; - } + public Pet pet() { + return this.pet; + } + public String query1() { + return this.query1; + } + public String header1() { + return this.header1; + } } - /** - * test http signature authentication - * - *

200 - The instance started successfully - * @param requestParameters The fakeHttpSignatureTest request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono fakeHttpSignatureTest(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { - return this.fakeHttpSignatureTest(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); - } + /** + * test http signature authentication + * + *

200 - The instance started successfully + * @param requestParameters The fakeHttpSignatureTest request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono fakeHttpSignatureTest(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { + return this.fakeHttpSignatureTest(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); + } - /** - * test http signature authentication - * - *

200 - The instance started successfully - * @param requestParameters The fakeHttpSignatureTest request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> fakeHttpSignatureTestWithHttpInfo(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { - return this.fakeHttpSignatureTestWithHttpInfo(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); - } + /** + * test http signature authentication + * + *

200 - The instance started successfully + * @param requestParameters The fakeHttpSignatureTest request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> fakeHttpSignatureTestWithHttpInfo(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { + return this.fakeHttpSignatureTestWithHttpInfo(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); + } - /** - * test http signature authentication - * - *

200 - The instance started successfully - * @param requestParameters The fakeHttpSignatureTest request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec fakeHttpSignatureTestWithResponseSpec(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { - return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); - } + /** + * test http signature authentication + * + *

200 - The instance started successfully + * @param requestParameters The fakeHttpSignatureTest request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec fakeHttpSignatureTestWithResponseSpec(FakeHttpSignatureTestRequest requestParameters) throws WebClientResponseException { + return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); + } + /** * test http signature authentication * @@ -327,6 +331,7 @@ public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, Str public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -397,6 +402,7 @@ public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boole public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -467,6 +473,7 @@ public Mono> fakeOuterCompositeSerializeWithHttpI public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -537,6 +544,7 @@ public Mono> fakeOuterNumberSerializeWithHttpInfo(Big public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -607,6 +615,7 @@ public Mono> fakeOuterStringSerializeWithHttpInfo(String public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -681,6 +690,7 @@ public Mono> fakePropertyEnumInteger public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -750,6 +760,7 @@ public Mono> testAdditionalPropertiesReferenceWithHttpInfo( public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -819,6 +830,7 @@ public Mono> testBodyWithBinaryWithHttpInfo(File body) thro public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -889,57 +901,59 @@ public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass f return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + public class TestBodyWithQueryParamsRequest { - private final String query; - private final User user; + private final String query; + private final User user; - public TestBodyWithQueryParamsRequest(String query, User user) { - this.query = query; - this.user = user; + public TestBodyWithQueryParamsRequest(String query, User user) { + this.query = query; + this.user = user; } - public String query() { - return this.query; - } - public User user() { - return this.user; - } + public String query() { + return this.query; + } + public User user() { + return this.user; + } } - /** - * - * - *

200 - Success - * @param requestParameters The testBodyWithQueryParams request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testBodyWithQueryParams(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { - return this.testBodyWithQueryParams(requestParameters.query(), requestParameters.user()); - } + /** + * + * + *

200 - Success + * @param requestParameters The testBodyWithQueryParams request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testBodyWithQueryParams(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { + return this.testBodyWithQueryParams(requestParameters.query(), requestParameters.user()); + } - /** - * - * - *

200 - Success - * @param requestParameters The testBodyWithQueryParams request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testBodyWithQueryParamsWithHttpInfo(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { - return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user()); - } + /** + * + * + *

200 - Success + * @param requestParameters The testBodyWithQueryParams request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testBodyWithQueryParamsWithHttpInfo(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { + return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user()); + } - /** - * - * - *

200 - Success - * @param requestParameters The testBodyWithQueryParams request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testBodyWithQueryParamsWithResponseSpec(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { - return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); - } + /** + * + * + *

200 - Success + * @param requestParameters The testBodyWithQueryParams request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testBodyWithQueryParamsWithResponseSpec(TestBodyWithQueryParamsRequest requestParameters) throws WebClientResponseException { + return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); + } + /** * * @@ -1019,6 +1033,7 @@ public Mono> testBodyWithQueryParamsWithHttpInfo(String que public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -1094,120 +1109,122 @@ public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebCli return testClientModelRequestCreation(client); } + public class TestEndpointParametersRequest { - private final BigDecimal number; - private final Double _double; - private final String patternWithoutDelimiter; - private final byte[] _byte; - private final Integer integer; - private final Integer int32; - private final Long int64; - private final Float _float; - private final String string; - private final File binary; - private final LocalDate date; - private final OffsetDateTime dateTime; - private final String password; - private final String paramCallback; - - public TestEndpointParametersRequest(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) { - this.number = number; - this._double = _double; - this.patternWithoutDelimiter = patternWithoutDelimiter; - this._byte = _byte; - this.integer = integer; - this.int32 = int32; - this.int64 = int64; - this._float = _float; - this.string = string; - this.binary = binary; - this.date = date; - this.dateTime = dateTime; - this.password = password; - this.paramCallback = paramCallback; + private final BigDecimal number; + private final Double _double; + private final String patternWithoutDelimiter; + private final byte[] _byte; + private final Integer integer; + private final Integer int32; + private final Long int64; + private final Float _float; + private final String string; + private final File binary; + private final LocalDate date; + private final OffsetDateTime dateTime; + private final String password; + private final String paramCallback; + + public TestEndpointParametersRequest(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) { + this.number = number; + this._double = _double; + this.patternWithoutDelimiter = patternWithoutDelimiter; + this._byte = _byte; + this.integer = integer; + this.int32 = int32; + this.int64 = int64; + this._float = _float; + this.string = string; + this.binary = binary; + this.date = date; + this.dateTime = dateTime; + this.password = password; + this.paramCallback = paramCallback; } - public BigDecimal number() { - return this.number; - } - public Double _double() { - return this._double; - } - public String patternWithoutDelimiter() { - return this.patternWithoutDelimiter; - } - public byte[] _byte() { - return this._byte; - } - public Integer integer() { - return this.integer; - } - public Integer int32() { - return this.int32; - } - public Long int64() { - return this.int64; - } - public Float _float() { - return this._float; - } - public String string() { - return this.string; - } - public File binary() { - return this.binary; - } - public LocalDate date() { - return this.date; - } - public OffsetDateTime dateTime() { - return this.dateTime; - } - public String password() { - return this.password; - } - public String paramCallback() { - return this.paramCallback; - } + public BigDecimal number() { + return this.number; + } + public Double _double() { + return this._double; + } + public String patternWithoutDelimiter() { + return this.patternWithoutDelimiter; + } + public byte[] _byte() { + return this._byte; + } + public Integer integer() { + return this.integer; + } + public Integer int32() { + return this.int32; + } + public Long int64() { + return this.int64; + } + public Float _float() { + return this._float; + } + public String string() { + return this.string; + } + public File binary() { + return this.binary; + } + public LocalDate date() { + return this.date; + } + public OffsetDateTime dateTime() { + return this.dateTime; + } + public String password() { + return this.password; + } + public String paramCallback() { + return this.paramCallback; + } } - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - *

400 - Invalid username supplied - *

404 - User not found - * @param requestParameters The testEndpointParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testEndpointParameters(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { - return this.testEndpointParameters(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); - } + /** + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + *

400 - Invalid username supplied + *

404 - User not found + * @param requestParameters The testEndpointParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testEndpointParameters(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { + return this.testEndpointParameters(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); + } - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - *

400 - Invalid username supplied - *

404 - User not found - * @param requestParameters The testEndpointParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testEndpointParametersWithHttpInfo(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { - return this.testEndpointParametersWithHttpInfo(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); - } + /** + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + *

400 - Invalid username supplied + *

404 - User not found + * @param requestParameters The testEndpointParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testEndpointParametersWithHttpInfo(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { + return this.testEndpointParametersWithHttpInfo(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); + } - /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - *

400 - Invalid username supplied - *

404 - User not found - * @param requestParameters The testEndpointParameters request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testEndpointParametersWithResponseSpec(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { - return this.testEndpointParametersWithResponseSpec(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); - } + /** + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + *

400 - Invalid username supplied + *

404 - User not found + * @param requestParameters The testEndpointParameters request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testEndpointParametersWithResponseSpec(TestEndpointParametersRequest requestParameters) throws WebClientResponseException { + return this.testEndpointParametersWithResponseSpec(requestParameters.number(), requestParameters._double(), requestParameters.patternWithoutDelimiter(), requestParameters._byte(), requestParameters.integer(), requestParameters.int32(), requestParameters.int64(), requestParameters._float(), requestParameters.string(), requestParameters.binary(), requestParameters.date(), requestParameters.dateTime(), requestParameters.password(), requestParameters.paramCallback()); + } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1375,95 +1392,97 @@ public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Do return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + public class TestEnumParametersRequest { - private final List enumHeaderStringArray; - private final String enumHeaderString; - private final List enumQueryStringArray; - private final String enumQueryString; - private final Integer enumQueryInteger; - private final Double enumQueryDouble; - private final List enumQueryModelArray; - private final List enumFormStringArray; - private final String enumFormString; - - public TestEnumParametersRequest(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) { - this.enumHeaderStringArray = enumHeaderStringArray; - this.enumHeaderString = enumHeaderString; - this.enumQueryStringArray = enumQueryStringArray; - this.enumQueryString = enumQueryString; - this.enumQueryInteger = enumQueryInteger; - this.enumQueryDouble = enumQueryDouble; - this.enumQueryModelArray = enumQueryModelArray; - this.enumFormStringArray = enumFormStringArray; - this.enumFormString = enumFormString; + private final List enumHeaderStringArray; + private final String enumHeaderString; + private final List enumQueryStringArray; + private final String enumQueryString; + private final Integer enumQueryInteger; + private final Double enumQueryDouble; + private final List enumQueryModelArray; + private final List enumFormStringArray; + private final String enumFormString; + + public TestEnumParametersRequest(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) { + this.enumHeaderStringArray = enumHeaderStringArray; + this.enumHeaderString = enumHeaderString; + this.enumQueryStringArray = enumQueryStringArray; + this.enumQueryString = enumQueryString; + this.enumQueryInteger = enumQueryInteger; + this.enumQueryDouble = enumQueryDouble; + this.enumQueryModelArray = enumQueryModelArray; + this.enumFormStringArray = enumFormStringArray; + this.enumFormString = enumFormString; } - public List enumHeaderStringArray() { - return this.enumHeaderStringArray; - } - public String enumHeaderString() { - return this.enumHeaderString; - } - public List enumQueryStringArray() { - return this.enumQueryStringArray; - } - public String enumQueryString() { - return this.enumQueryString; - } - public Integer enumQueryInteger() { - return this.enumQueryInteger; - } - public Double enumQueryDouble() { - return this.enumQueryDouble; - } - public List enumQueryModelArray() { - return this.enumQueryModelArray; - } - public List enumFormStringArray() { - return this.enumFormStringArray; - } - public String enumFormString() { - return this.enumFormString; - } + public List enumHeaderStringArray() { + return this.enumHeaderStringArray; + } + public String enumHeaderString() { + return this.enumHeaderString; + } + public List enumQueryStringArray() { + return this.enumQueryStringArray; + } + public String enumQueryString() { + return this.enumQueryString; + } + public Integer enumQueryInteger() { + return this.enumQueryInteger; + } + public Double enumQueryDouble() { + return this.enumQueryDouble; + } + public List enumQueryModelArray() { + return this.enumQueryModelArray; + } + public List enumFormStringArray() { + return this.enumFormStringArray; + } + public String enumFormString() { + return this.enumFormString; + } } - /** - * To test enum parameters - * To test enum parameters - *

400 - Invalid request - *

404 - Not found - * @param requestParameters The testEnumParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testEnumParameters(TestEnumParametersRequest requestParameters) throws WebClientResponseException { - return this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); - } + /** + * To test enum parameters + * To test enum parameters + *

400 - Invalid request + *

404 - Not found + * @param requestParameters The testEnumParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testEnumParameters(TestEnumParametersRequest requestParameters) throws WebClientResponseException { + return this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + } - /** - * To test enum parameters - * To test enum parameters - *

400 - Invalid request - *

404 - Not found - * @param requestParameters The testEnumParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testEnumParametersWithHttpInfo(TestEnumParametersRequest requestParameters) throws WebClientResponseException { - return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); - } + /** + * To test enum parameters + * To test enum parameters + *

400 - Invalid request + *

404 - Not found + * @param requestParameters The testEnumParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testEnumParametersWithHttpInfo(TestEnumParametersRequest requestParameters) throws WebClientResponseException { + return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + } - /** - * To test enum parameters - * To test enum parameters - *

400 - Invalid request - *

404 - Not found - * @param requestParameters The testEnumParameters request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testEnumParametersWithResponseSpec(TestEnumParametersRequest requestParameters) throws WebClientResponseException { - return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); - } + /** + * To test enum parameters + * To test enum parameters + *

400 - Invalid request + *

404 - Not found + * @param requestParameters The testEnumParameters request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testEnumParametersWithResponseSpec(TestEnumParametersRequest requestParameters) throws WebClientResponseException { + return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + } + /** * To test enum parameters * To test enum parameters @@ -1582,77 +1601,79 @@ public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderSt return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } + public class TestGroupParametersRequest { - private final Integer requiredStringGroup; - private final Boolean requiredBooleanGroup; - private final Long requiredInt64Group; - private final Integer stringGroup; - private final Boolean booleanGroup; - private final Long int64Group; - - public TestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) { - this.requiredStringGroup = requiredStringGroup; - this.requiredBooleanGroup = requiredBooleanGroup; - this.requiredInt64Group = requiredInt64Group; - this.stringGroup = stringGroup; - this.booleanGroup = booleanGroup; - this.int64Group = int64Group; + private final Integer requiredStringGroup; + private final Boolean requiredBooleanGroup; + private final Long requiredInt64Group; + private final Integer stringGroup; + private final Boolean booleanGroup; + private final Long int64Group; + + public TestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) { + this.requiredStringGroup = requiredStringGroup; + this.requiredBooleanGroup = requiredBooleanGroup; + this.requiredInt64Group = requiredInt64Group; + this.stringGroup = stringGroup; + this.booleanGroup = booleanGroup; + this.int64Group = int64Group; } - public Integer requiredStringGroup() { - return this.requiredStringGroup; - } - public Boolean requiredBooleanGroup() { - return this.requiredBooleanGroup; - } - public Long requiredInt64Group() { - return this.requiredInt64Group; - } - public Integer stringGroup() { - return this.stringGroup; - } - public Boolean booleanGroup() { - return this.booleanGroup; - } - public Long int64Group() { - return this.int64Group; - } + public Integer requiredStringGroup() { + return this.requiredStringGroup; + } + public Boolean requiredBooleanGroup() { + return this.requiredBooleanGroup; + } + public Long requiredInt64Group() { + return this.requiredInt64Group; + } + public Integer stringGroup() { + return this.stringGroup; + } + public Boolean booleanGroup() { + return this.booleanGroup; + } + public Long int64Group() { + return this.int64Group; + } } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - *

400 - Something wrong - * @param requestParameters The testGroupParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testGroupParameters(TestGroupParametersRequest requestParameters) throws WebClientResponseException { - return this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); - } + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + *

400 - Something wrong + * @param requestParameters The testGroupParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testGroupParameters(TestGroupParametersRequest requestParameters) throws WebClientResponseException { + return this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - *

400 - Something wrong - * @param requestParameters The testGroupParameters request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testGroupParametersWithHttpInfo(TestGroupParametersRequest requestParameters) throws WebClientResponseException { - return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); - } + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + *

400 - Something wrong + * @param requestParameters The testGroupParameters request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testGroupParametersWithHttpInfo(TestGroupParametersRequest requestParameters) throws WebClientResponseException { + return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + } - /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - *

400 - Something wrong - * @param requestParameters The testGroupParameters request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testGroupParametersWithResponseSpec(TestGroupParametersRequest requestParameters) throws WebClientResponseException { - return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); - } + /** + * Fake endpoint to test group parameters (optional) + * Fake endpoint to test group parameters (optional) + *

400 - Something wrong + * @param requestParameters The testGroupParameters request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testGroupParametersWithResponseSpec(TestGroupParametersRequest requestParameters) throws WebClientResponseException { + return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + } + /** * Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional) @@ -1758,6 +1779,7 @@ public Mono> testGroupParametersWithHttpInfo(Integer requir public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1827,6 +1849,7 @@ public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1897,57 +1920,59 @@ public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestI return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + public class TestJsonFormDataRequest { - private final String param; - private final String param2; + private final String param; + private final String param2; - public TestJsonFormDataRequest(String param, String param2) { - this.param = param; - this.param2 = param2; + public TestJsonFormDataRequest(String param, String param2) { + this.param = param; + this.param2 = param2; } - public String param() { - return this.param; - } - public String param2() { - return this.param2; - } + public String param() { + return this.param; + } + public String param2() { + return this.param2; + } } - /** - * test json serialization of form data - * - *

200 - successful operation - * @param requestParameters The testJsonFormData request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testJsonFormData(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { - return this.testJsonFormData(requestParameters.param(), requestParameters.param2()); - } + /** + * test json serialization of form data + * + *

200 - successful operation + * @param requestParameters The testJsonFormData request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testJsonFormData(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { + return this.testJsonFormData(requestParameters.param(), requestParameters.param2()); + } - /** - * test json serialization of form data - * - *

200 - successful operation - * @param requestParameters The testJsonFormData request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testJsonFormDataWithHttpInfo(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { - return this.testJsonFormDataWithHttpInfo(requestParameters.param(), requestParameters.param2()); - } + /** + * test json serialization of form data + * + *

200 - successful operation + * @param requestParameters The testJsonFormData request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testJsonFormDataWithHttpInfo(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { + return this.testJsonFormDataWithHttpInfo(requestParameters.param(), requestParameters.param2()); + } - /** - * test json serialization of form data - * - *

200 - successful operation - * @param requestParameters The testJsonFormData request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testJsonFormDataWithResponseSpec(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { - return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); - } + /** + * test json serialization of form data + * + *

200 - successful operation + * @param requestParameters The testJsonFormData request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testJsonFormDataWithResponseSpec(TestJsonFormDataRequest requestParameters) throws WebClientResponseException { + return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); + } + /** * test json serialization of form data * @@ -2030,6 +2055,7 @@ public Mono> testJsonFormDataWithHttpInfo(String param, Str public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -2100,82 +2126,84 @@ public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNull return testNullableRequestCreation(childWithNullable); } + public class TestQueryParameterCollectionFormatRequest { - private final List pipe; - private final List ioutil; - private final List http; - private final List url; - private final List context; - private final String allowEmpty; - private final Map language; - - public TestQueryParameterCollectionFormatRequest(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) { - this.pipe = pipe; - this.ioutil = ioutil; - this.http = http; - this.url = url; - this.context = context; - this.allowEmpty = allowEmpty; - this.language = language; + private final List pipe; + private final List ioutil; + private final List http; + private final List url; + private final List context; + private final String allowEmpty; + private final Map language; + + public TestQueryParameterCollectionFormatRequest(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) { + this.pipe = pipe; + this.ioutil = ioutil; + this.http = http; + this.url = url; + this.context = context; + this.allowEmpty = allowEmpty; + this.language = language; } - public List pipe() { - return this.pipe; - } - public List ioutil() { - return this.ioutil; - } - public List http() { - return this.http; - } - public List url() { - return this.url; - } - public List context() { - return this.context; - } - public String allowEmpty() { - return this.allowEmpty; - } - public Map language() { - return this.language; - } + public List pipe() { + return this.pipe; + } + public List ioutil() { + return this.ioutil; + } + public List http() { + return this.http; + } + public List url() { + return this.url; + } + public List context() { + return this.context; + } + public String allowEmpty() { + return this.allowEmpty; + } + public Map language() { + return this.language; + } } - /** - * - * To test the collection format in query parameters - *

200 - Success - * @param requestParameters The testQueryParameterCollectionFormat request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono testQueryParameterCollectionFormat(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { - return this.testQueryParameterCollectionFormat(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); - } + /** + * + * To test the collection format in query parameters + *

200 - Success + * @param requestParameters The testQueryParameterCollectionFormat request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono testQueryParameterCollectionFormat(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { + return this.testQueryParameterCollectionFormat(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); + } - /** - * - * To test the collection format in query parameters - *

200 - Success - * @param requestParameters The testQueryParameterCollectionFormat request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> testQueryParameterCollectionFormatWithHttpInfo(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { - return this.testQueryParameterCollectionFormatWithHttpInfo(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); - } + /** + * + * To test the collection format in query parameters + *

200 - Success + * @param requestParameters The testQueryParameterCollectionFormat request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> testQueryParameterCollectionFormatWithHttpInfo(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { + return this.testQueryParameterCollectionFormatWithHttpInfo(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); + } - /** - * - * To test the collection format in query parameters - *

200 - Success - * @param requestParameters The testQueryParameterCollectionFormat request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { - return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); - } + /** + * + * To test the collection format in query parameters + *

200 - Success + * @param requestParameters The testQueryParameterCollectionFormat request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(TestQueryParameterCollectionFormatRequest requestParameters) throws WebClientResponseException { + return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); + } + /** * * To test the collection format in query parameters @@ -2295,6 +2323,7 @@ public Mono> testQueryParameterCollectionFormatWithHttpInfo public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 376a516fe104b..63d5efd218d43 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -30,22 +30,23 @@ public class FakeClassnameTags123Api { private ApiClient apiClient; public FakeClassnameTags123Api() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeClassnameTags123Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test class name in snake case * To test class name in snake case diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java index aece22dd61df7..23eba8584567d 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java @@ -33,22 +33,23 @@ public class PetApi { private ApiClient apiClient; public PetApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public PetApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Add a new pet to the store * @@ -123,60 +124,62 @@ public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseExce return addPetRequestCreation(pet); } + public class DeletePetRequest { - private final Long petId; - private final String apiKey; + private final Long petId; + private final String apiKey; - public DeletePetRequest(Long petId, String apiKey) { - this.petId = petId; - this.apiKey = apiKey; + public DeletePetRequest(Long petId, String apiKey) { + this.petId = petId; + this.apiKey = apiKey; } - public Long petId() { - return this.petId; - } - public String apiKey() { - return this.apiKey; - } + public Long petId() { + return this.petId; + } + public String apiKey() { + return this.apiKey; + } } - /** - * Deletes a pet - * - *

200 - Successful operation - *

400 - Invalid pet value - * @param requestParameters The deletePet request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono deletePet(DeletePetRequest requestParameters) throws WebClientResponseException { - return this.deletePet(requestParameters.petId(), requestParameters.apiKey()); - } + /** + * Deletes a pet + * + *

200 - Successful operation + *

400 - Invalid pet value + * @param requestParameters The deletePet request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono deletePet(DeletePetRequest requestParameters) throws WebClientResponseException { + return this.deletePet(requestParameters.petId(), requestParameters.apiKey()); + } - /** - * Deletes a pet - * - *

200 - Successful operation - *

400 - Invalid pet value - * @param requestParameters The deletePet request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException { - return this.deletePetWithHttpInfo(requestParameters.petId(), requestParameters.apiKey()); - } + /** + * Deletes a pet + * + *

200 - Successful operation + *

400 - Invalid pet value + * @param requestParameters The deletePet request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException { + return this.deletePetWithHttpInfo(requestParameters.petId(), requestParameters.apiKey()); + } - /** - * Deletes a pet - * - *

200 - Successful operation - *

400 - Invalid pet value - * @param requestParameters The deletePet request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException { - return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); - } + /** + * Deletes a pet + * + *

200 - Successful operation + *

400 - Invalid pet value + * @param requestParameters The deletePet request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException { + return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); + } + /** * Deletes a pet * @@ -257,6 +260,7 @@ public Mono> deletePetWithHttpInfo(Long petId, String apiKe public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -335,6 +339,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -415,6 +420,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) th public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -497,6 +503,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientRe public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -579,65 +586,67 @@ public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseE return updatePetRequestCreation(pet); } + public class UpdatePetWithFormRequest { - private final Long petId; - private final String name; - private final String status; - - public UpdatePetWithFormRequest(Long petId, String name, String status) { - this.petId = petId; - this.name = name; - this.status = status; + private final Long petId; + private final String name; + private final String status; + + public UpdatePetWithFormRequest(Long petId, String name, String status) { + this.petId = petId; + this.name = name; + this.status = status; } - public Long petId() { - return this.petId; - } - public String name() { - return this.name; - } - public String status() { - return this.status; - } + public Long petId() { + return this.petId; + } + public String name() { + return this.name; + } + public String status() { + return this.status; + } } - /** - * Updates a pet in the store with form data - * - *

200 - Successful operation - *

405 - Invalid input - * @param requestParameters The updatePetWithForm request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono updatePetWithForm(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { - return this.updatePetWithForm(requestParameters.petId(), requestParameters.name(), requestParameters.status()); - } + /** + * Updates a pet in the store with form data + * + *

200 - Successful operation + *

405 - Invalid input + * @param requestParameters The updatePetWithForm request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono updatePetWithForm(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { + return this.updatePetWithForm(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + } - /** - * Updates a pet in the store with form data - * - *

200 - Successful operation - *

405 - Invalid input - * @param requestParameters The updatePetWithForm request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> updatePetWithFormWithHttpInfo(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { - return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); - } + /** + * Updates a pet in the store with form data + * + *

200 - Successful operation + *

405 - Invalid input + * @param requestParameters The updatePetWithForm request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> updatePetWithFormWithHttpInfo(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { + return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + } - /** - * Updates a pet in the store with form data - * - *

200 - Successful operation - *

405 - Invalid input - * @param requestParameters The updatePetWithForm request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec updatePetWithFormWithResponseSpec(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { - return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); - } + /** + * Updates a pet in the store with form data + * + *

200 - Successful operation + *

405 - Invalid input + * @param requestParameters The updatePetWithForm request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec updatePetWithFormWithResponseSpec(UpdatePetWithFormRequest requestParameters) throws WebClientResponseException { + return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + } + /** * Updates a pet in the store with form data * @@ -727,64 +736,66 @@ public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, S return updatePetWithFormRequestCreation(petId, name, status); } + public class UploadFileRequest { - private final Long petId; - private final String additionalMetadata; - private final File _file; - - public UploadFileRequest(Long petId, String additionalMetadata, File _file) { - this.petId = petId; - this.additionalMetadata = additionalMetadata; - this._file = _file; + private final Long petId; + private final String additionalMetadata; + private final File _file; + + public UploadFileRequest(Long petId, String additionalMetadata, File _file) { + this.petId = petId; + this.additionalMetadata = additionalMetadata; + this._file = _file; } - public Long petId() { - return this.petId; - } - public String additionalMetadata() { - return this.additionalMetadata; - } - public File _file() { - return this._file; - } + public Long petId() { + return this.petId; + } + public String additionalMetadata() { + return this.additionalMetadata; + } + public File _file() { + return this._file; + } } - /** - * uploads an image - * - *

200 - successful operation - * @param requestParameters The uploadFile request parameters as object - * @return ModelApiResponse - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono uploadFile(UploadFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFile(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); - } + /** + * uploads an image + * + *

200 - successful operation + * @param requestParameters The uploadFile request parameters as object + * @return ModelApiResponse + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono uploadFile(UploadFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFile(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); + } - /** - * uploads an image - * - *

200 - successful operation - * @param requestParameters The uploadFile request parameters as object - * @return ResponseEntity<ModelApiResponse> - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> uploadFileWithHttpInfo(UploadFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFileWithHttpInfo(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); - } + /** + * uploads an image + * + *

200 - successful operation + * @param requestParameters The uploadFile request parameters as object + * @return ResponseEntity<ModelApiResponse> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> uploadFileWithHttpInfo(UploadFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFileWithHttpInfo(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); + } - /** - * uploads an image - * - *

200 - successful operation - * @param requestParameters The uploadFile request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec uploadFileWithResponseSpec(UploadFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); - } + /** + * uploads an image + * + *

200 - successful operation + * @param requestParameters The uploadFile request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec uploadFileWithResponseSpec(UploadFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); + } + /** * uploads an image * @@ -875,64 +886,66 @@ public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMeta return uploadFileRequestCreation(petId, additionalMetadata, _file); } + public class UploadFileWithRequiredFileRequest { - private final Long petId; - private final File requiredFile; - private final String additionalMetadata; - - public UploadFileWithRequiredFileRequest(Long petId, File requiredFile, String additionalMetadata) { - this.petId = petId; - this.requiredFile = requiredFile; - this.additionalMetadata = additionalMetadata; + private final Long petId; + private final File requiredFile; + private final String additionalMetadata; + + public UploadFileWithRequiredFileRequest(Long petId, File requiredFile, String additionalMetadata) { + this.petId = petId; + this.requiredFile = requiredFile; + this.additionalMetadata = additionalMetadata; } - public Long petId() { - return this.petId; - } - public File requiredFile() { - return this.requiredFile; - } - public String additionalMetadata() { - return this.additionalMetadata; - } + public Long petId() { + return this.petId; + } + public File requiredFile() { + return this.requiredFile; + } + public String additionalMetadata() { + return this.additionalMetadata; + } } - /** - * uploads an image (required) - * - *

200 - successful operation - * @param requestParameters The uploadFileWithRequiredFile request parameters as object - * @return ModelApiResponse - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono uploadFileWithRequiredFile(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFileWithRequiredFile(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); - } + /** + * uploads an image (required) + * + *

200 - successful operation + * @param requestParameters The uploadFileWithRequiredFile request parameters as object + * @return ModelApiResponse + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono uploadFileWithRequiredFile(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFileWithRequiredFile(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); + } - /** - * uploads an image (required) - * - *

200 - successful operation - * @param requestParameters The uploadFileWithRequiredFile request parameters as object - * @return ResponseEntity<ModelApiResponse> - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> uploadFileWithRequiredFileWithHttpInfo(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFileWithRequiredFileWithHttpInfo(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); - } + /** + * uploads an image (required) + * + *

200 - successful operation + * @param requestParameters The uploadFileWithRequiredFile request parameters as object + * @return ResponseEntity<ModelApiResponse> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> uploadFileWithRequiredFileWithHttpInfo(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFileWithRequiredFileWithHttpInfo(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); + } - /** - * uploads an image (required) - * - *

200 - successful operation - * @param requestParameters The uploadFileWithRequiredFile request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { - return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); - } + /** + * uploads an image (required) + * + *

200 - successful operation + * @param requestParameters The uploadFileWithRequiredFile request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(UploadFileWithRequiredFileRequest requestParameters) throws WebClientResponseException { + return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); + } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java index 4bcde0fcf3781..1853bd5869664 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java @@ -30,22 +30,23 @@ public class StoreApi { private ApiClient apiClient; public StoreApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public StoreApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -119,6 +120,7 @@ public Mono> deleteOrderWithHttpInfo(String orderId) throws public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -183,6 +185,7 @@ public Mono>> getInventoryWithHttpInfo() thr public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -265,6 +268,7 @@ public Mono> getOrderByIdWithHttpInfo(Long orderId) throws public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java index 50a4a6416b237..20514d7507de5 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java @@ -31,22 +31,23 @@ public class UserApi { private ApiClient apiClient; public UserApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public UserApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Create user * This can only be done by the logged in user. @@ -116,6 +117,7 @@ public Mono> createUserWithHttpInfo(User user) throws WebCl public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -185,6 +187,7 @@ public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -254,6 +257,7 @@ public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -327,6 +331,7 @@ public Mono> deleteUserWithHttpInfo(String username) throws public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -410,62 +415,64 @@ public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebCli return getUserByNameRequestCreation(username); } + public class LoginUserRequest { - private final String username; - private final String password; + private final String username; + private final String password; - public LoginUserRequest(String username, String password) { - this.username = username; - this.password = password; + public LoginUserRequest(String username, String password) { + this.username = username; + this.password = password; } - public String username() { - return this.username; - } - public String password() { - return this.password; - } + public String username() { + return this.username; + } + public String password() { + return this.password; + } } - /** - * Logs user into the system - * - *

200 - successful operation - *

400 - Invalid username/password supplied - * @param requestParameters The loginUser request parameters as object - * @return String - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono loginUser(LoginUserRequest requestParameters) throws WebClientResponseException { - return this.loginUser(requestParameters.username(), requestParameters.password()); - } + /** + * Logs user into the system + * + *

200 - successful operation + *

400 - Invalid username/password supplied + * @param requestParameters The loginUser request parameters as object + * @return String + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono loginUser(LoginUserRequest requestParameters) throws WebClientResponseException { + return this.loginUser(requestParameters.username(), requestParameters.password()); + } - /** - * Logs user into the system - * - *

200 - successful operation - *

400 - Invalid username/password supplied - * @param requestParameters The loginUser request parameters as object - * @return ResponseEntity<String> - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> loginUserWithHttpInfo(LoginUserRequest requestParameters) throws WebClientResponseException { - return this.loginUserWithHttpInfo(requestParameters.username(), requestParameters.password()); - } + /** + * Logs user into the system + * + *

200 - successful operation + *

400 - Invalid username/password supplied + * @param requestParameters The loginUser request parameters as object + * @return ResponseEntity<String> + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> loginUserWithHttpInfo(LoginUserRequest requestParameters) throws WebClientResponseException { + return this.loginUserWithHttpInfo(requestParameters.username(), requestParameters.password()); + } - /** - * Logs user into the system - * - *

200 - successful operation - *

400 - Invalid username/password supplied - * @param requestParameters The loginUser request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec loginUserWithResponseSpec(LoginUserRequest requestParameters) throws WebClientResponseException { - return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); - } + /** + * Logs user into the system + * + *

200 - successful operation + *

400 - Invalid username/password supplied + * @param requestParameters The loginUser request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec loginUserWithResponseSpec(LoginUserRequest requestParameters) throws WebClientResponseException { + return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); + } + /** * Logs user into the system * @@ -553,6 +560,7 @@ public Mono> loginUserWithHttpInfo(String username, Strin public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -613,60 +621,62 @@ public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseExcepti return logoutUserRequestCreation(); } + public class UpdateUserRequest { - private final String username; - private final User user; + private final String username; + private final User user; - public UpdateUserRequest(String username, User user) { - this.username = username; - this.user = user; + public UpdateUserRequest(String username, User user) { + this.username = username; + this.user = user; } - public String username() { - return this.username; - } - public User user() { - return this.user; - } + public String username() { + return this.username; + } + public User user() { + return this.user; + } } - /** - * Updated user - * This can only be done by the logged in user. - *

400 - Invalid user supplied - *

404 - User not found - * @param requestParameters The updateUser request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono updateUser(UpdateUserRequest requestParameters) throws WebClientResponseException { - return this.updateUser(requestParameters.username(), requestParameters.user()); - } + /** + * Updated user + * This can only be done by the logged in user. + *

400 - Invalid user supplied + *

404 - User not found + * @param requestParameters The updateUser request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono updateUser(UpdateUserRequest requestParameters) throws WebClientResponseException { + return this.updateUser(requestParameters.username(), requestParameters.user()); + } - /** - * Updated user - * This can only be done by the logged in user. - *

400 - Invalid user supplied - *

404 - User not found - * @param requestParameters The updateUser request parameters as object - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public Mono> updateUserWithHttpInfo(UpdateUserRequest requestParameters) throws WebClientResponseException { - return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); - } + /** + * Updated user + * This can only be done by the logged in user. + *

400 - Invalid user supplied + *

404 - User not found + * @param requestParameters The updateUser request parameters as object + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public Mono> updateUserWithHttpInfo(UpdateUserRequest requestParameters) throws WebClientResponseException { + return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); + } - /** - * Updated user - * This can only be done by the logged in user. - *

400 - Invalid user supplied - *

404 - User not found - * @param requestParameters The updateUser request parameters as object - * @return ResponseSpec - * @throws WebClientResponseException if an error occurs while attempting to invoke the API - */ - public ResponseSpec updateUserWithResponseSpec(UpdateUserRequest requestParameters) throws WebClientResponseException { - return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); - } + /** + * Updated user + * This can only be done by the logged in user. + *

400 - Invalid user supplied + *

404 - User not found + * @param requestParameters The updateUser request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + */ + public ResponseSpec updateUserWithResponseSpec(UpdateUserRequest requestParameters) throws WebClientResponseException { + return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); + } + /** * Updated user * This can only be done by the logged in user. diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index e76b7813609e9..f3baafcae65aa 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -30,22 +30,23 @@ public class AnotherFakeApi { private ApiClient apiClient; public AnotherFakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public AnotherFakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test special tags * To test special tags and operation ID starting with number diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/DefaultApi.java index 118aaa2df4d8b..26bab469b2dea 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/DefaultApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/DefaultApi.java @@ -30,22 +30,23 @@ public class DefaultApi { private ApiClient apiClient; public DefaultApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public DefaultApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java index fcc5ef7af8ef9..07718aedea933 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -44,22 +44,23 @@ public class FakeApi { private ApiClient apiClient; public FakeApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys @@ -124,6 +125,7 @@ public Mono> fakeBigDecimalMapWithH public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -188,6 +190,7 @@ public Mono> fakeHealthGetWithHttpInfo() throw public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException { return fakeHealthGetRequestCreation(); } + /** * test http signature authentication * @@ -270,6 +273,7 @@ public Mono> fakeHttpSignatureTestWithHttpInfo(Pet pet, Str public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -340,6 +344,7 @@ public Mono> fakeOuterBooleanSerializeWithHttpInfo(Boole public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -410,6 +415,7 @@ public Mono> fakeOuterCompositeSerializeWithHttpI public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -480,6 +486,7 @@ public Mono> fakeOuterNumberSerializeWithHttpInfo(Big public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -550,6 +557,7 @@ public Mono> fakeOuterStringSerializeWithHttpInfo(String public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -624,6 +632,7 @@ public Mono> fakePropertyEnumInteger public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -693,6 +702,7 @@ public Mono> testAdditionalPropertiesReferenceWithHttpInfo( public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map requestBody) throws WebClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -762,6 +772,7 @@ public Mono> testBodyWithBinaryWithHttpInfo(File body) thro public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -831,6 +842,7 @@ public Mono> testBodyWithFileSchemaWithHttpInfo(FileSchemaT public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + /** * * @@ -910,6 +922,7 @@ public Mono> testBodyWithQueryParamsWithHttpInfo(String que public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -984,6 +997,7 @@ public Mono> testClientModelWithHttpInfo(Client client) t public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException { return testClientModelRequestCreation(client); } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1150,6 +1164,7 @@ public Mono> testEndpointParametersWithHttpInfo(BigDecimal public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws WebClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + /** * To test enum parameters * To test enum parameters @@ -1267,6 +1282,7 @@ public Mono> testEnumParametersWithHttpInfo(List en public ResponseSpec testEnumParametersWithResponseSpec(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws WebClientResponseException { return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } + /** * Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional) @@ -1372,6 +1388,7 @@ public Mono> testGroupParametersWithHttpInfo(Integer requir public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1441,6 +1458,7 @@ public Mono> testInlineAdditionalPropertiesWithHttpInfo(Map public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map requestBody) throws WebClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1510,6 +1528,7 @@ public Mono> testInlineFreeformAdditionalPropertiesWithHttp public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + /** * test json serialization of form data * @@ -1592,6 +1611,7 @@ public Mono> testJsonFormDataWithHttpInfo(String param, Str public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1661,6 +1681,7 @@ public Mono> testNullableWithHttpInfo(ChildWithNullable chi public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException { return testNullableRequestCreation(childWithNullable); } + /** * * To test the collection format in query parameters @@ -1780,6 +1801,7 @@ public Mono> testQueryParameterCollectionFormatWithHttpInfo public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws WebClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 376a516fe104b..63d5efd218d43 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -30,22 +30,23 @@ public class FakeClassnameTags123Api { private ApiClient apiClient; public FakeClassnameTags123Api() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public FakeClassnameTags123Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * To test class name in snake case * To test class name in snake case diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java index 160b903b1b2c8..43e4eda0da6fc 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -33,22 +33,23 @@ public class PetApi { private ApiClient apiClient; public PetApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public PetApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Add a new pet to the store * @@ -122,6 +123,7 @@ public Mono> addPetWithHttpInfo(Pet pet) throws WebClientRe public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException { return addPetRequestCreation(pet); } + /** * Deletes a pet * @@ -202,6 +204,7 @@ public Mono> deletePetWithHttpInfo(Long petId, String apiKe public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -280,6 +283,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu public ResponseSpec findPetsByStatusWithResponseSpec(List status) throws WebClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -360,6 +364,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) th public ResponseSpec findPetsByTagsWithResponseSpec(Set tags) throws WebClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -442,6 +447,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws WebClientRe public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -523,6 +529,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws WebClientRespo public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException { return updatePetRequestCreation(pet); } + /** * Updates a pet in the store with form data * @@ -611,6 +618,7 @@ public Mono> updatePetWithFormWithHttpInfo(Long petId, Stri public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } + /** * uploads an image * @@ -700,6 +708,7 @@ public Mono> uploadFileWithHttpInfo(Long petId, public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java index 4bcde0fcf3781..1853bd5869664 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -30,22 +30,23 @@ public class StoreApi { private ApiClient apiClient; public StoreApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public StoreApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Delete purchase order by ID * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -119,6 +120,7 @@ public Mono> deleteOrderWithHttpInfo(String orderId) throws public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -183,6 +185,7 @@ public Mono>> getInventoryWithHttpInfo() thr public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -265,6 +268,7 @@ public Mono> getOrderByIdWithHttpInfo(Long orderId) throws public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java index 141d507229410..8f69f490c5c66 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -31,22 +31,23 @@ public class UserApi { private ApiClient apiClient; public UserApi() { - this(new ApiClient()); + this(new ApiClient()); } @Autowired public UserApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return apiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.apiClient = apiClient; } + /** * Create user * This can only be done by the logged in user. @@ -116,6 +117,7 @@ public Mono> createUserWithHttpInfo(User user) throws WebCl public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -185,6 +187,7 @@ public Mono> createUsersWithArrayInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -254,6 +257,7 @@ public Mono> createUsersWithListInputWithHttpInfo(List user) throws WebClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -327,6 +331,7 @@ public Mono> deleteUserWithHttpInfo(String username) throws public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -409,6 +414,7 @@ public Mono> getUserByNameWithHttpInfo(String username) thr public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException { return getUserByNameRequestCreation(username); } + /** * Logs user into the system * @@ -496,6 +502,7 @@ public Mono> loginUserWithHttpInfo(String username, Strin public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -555,6 +562,7 @@ public Mono> logoutUserWithHttpInfo() throws WebClientRespo public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException { return logoutUserRequestCreation(); } + /** * Updated user * This can only be done by the logged in user.