From 050dcae3ab6c29d4a75554bdcacf9182d37a9c20 Mon Sep 17 00:00:00 2001 From: Mattias Sehlstedt <60173714+Mattias-Sehlstedt@users.noreply.github.com> Date: Wed, 2 Jul 2025 09:18:52 +0200 Subject: [PATCH] Move the singleRequestParameter template into a separate file (#21489) * Move the singleRequestParameter template into a separate file * Update formatting of non-singleRequestParameter webclient and restclient samples --- .../Java/libraries/restclient/api.mustache | 115 +-------- .../single_request_parameter.mustache | 110 ++++++++ .../Java/libraries/webclient/api.mustache | 106 +------- .../single_request_parameter.mustache | 106 ++++++++ .../org/openapitools/client/api/AuthApi.java | 1 + .../org/openapitools/client/api/BodyApi.java | 9 + .../org/openapitools/client/api/FormApi.java | 2 + .../org/openapitools/client/api/QueryApi.java | 9 + .../openapitools/client/api/ResourceApi.java | 1 - .../org/openapitools/client/api/FakeApi.java | 21 ++ .../org/openapitools/client/api/PetApi.java | 8 + .../org/openapitools/client/api/StoreApi.java | 3 + .../org/openapitools/client/api/UserApi.java | 7 + .../org/openapitools/client/api/FakeApi.java | 238 +++++++++--------- .../org/openapitools/client/api/PetApi.java | 132 +++++----- .../org/openapitools/client/api/StoreApi.java | 3 + .../org/openapitools/client/api/UserApi.java | 69 ++--- .../org/openapitools/client/api/FakeApi.java | 238 +++++++++--------- .../org/openapitools/client/api/PetApi.java | 132 +++++----- .../org/openapitools/client/api/StoreApi.java | 3 + .../org/openapitools/client/api/UserApi.java | 69 ++--- .../org/openapitools/client/api/FakeApi.java | 21 ++ .../org/openapitools/client/api/PetApi.java | 8 + .../org/openapitools/client/api/StoreApi.java | 3 + .../org/openapitools/client/api/UserApi.java | 7 + .../client/api/AnotherFakeApi.java | 1 - .../openapitools/client/api/DefaultApi.java | 1 - .../org/openapitools/client/api/FakeApi.java | 1 - .../client/api/FakeClassnameTags123Api.java | 1 - .../org/openapitools/client/api/PetApi.java | 1 - .../org/openapitools/client/api/StoreApi.java | 1 - .../org/openapitools/client/api/UserApi.java | 1 - .../openapitools/client/api/DefaultApi.java | 1 - .../client/api/AnotherFakeApi.java | 1 - .../openapitools/client/api/DefaultApi.java | 1 - .../org/openapitools/client/api/FakeApi.java | 1 - .../client/api/FakeClassnameTags123Api.java | 1 - .../org/openapitools/client/api/PetApi.java | 1 - .../org/openapitools/client/api/StoreApi.java | 1 - .../org/openapitools/client/api/UserApi.java | 1 - .../client/api/AnotherFakeApi.java | 1 - .../openapitools/client/api/DefaultApi.java | 1 - .../org/openapitools/client/api/FakeApi.java | 29 ++- .../client/api/FakeClassnameTags123Api.java | 1 - .../org/openapitools/client/api/PetApi.java | 17 +- .../org/openapitools/client/api/StoreApi.java | 1 - .../org/openapitools/client/api/UserApi.java | 9 +- .../client/api/AnotherFakeApi.java | 1 - .../openapitools/client/api/DefaultApi.java | 1 - .../org/openapitools/client/api/FakeApi.java | 1 - .../client/api/FakeClassnameTags123Api.java | 1 - .../org/openapitools/client/api/PetApi.java | 1 - .../org/openapitools/client/api/StoreApi.java | 1 - .../org/openapitools/client/api/UserApi.java | 1 - 54 files changed, 812 insertions(+), 690 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/Java/libraries/restclient/single_request_parameter.mustache create mode 100644 modules/openapi-generator/src/main/resources/Java/libraries/webclient/single_request_parameter.mustache diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache index 1ea63880985..4b08a644db9 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache @@ -62,121 +62,8 @@ public class {{classname}} { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - {{#operation}} -{{#singleRequestParameter}} -{{#hasParams}} -{{^hasSingleParam}} - - {{^staticRequest}} - public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){} - {{/staticRequest}} - {{#staticRequest}} - public static class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { - {{#allParams}} - private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; - {{/allParams}} - - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} - - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{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}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { - return this.{{paramName}}; - } - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { - this.{{paramName}} = {{paramName}}; - return this; - } - - {{/allParams}} - @Override - public boolean equals(Object o) { - {{#useReflectionEqualsHashCode}} - return EqualsBuilder.reflectionEquals(this, o, false, null, true); - {{/useReflectionEqualsHashCode}} - {{^useReflectionEqualsHashCode}} - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - }{{#hasParams}} - {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request request = ({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request) o; - return {{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && - {{/-last}}{{/allParams}};{{/hasParams}}{{^hasParams}} - return true;{{/hasParams}} - {{/useReflectionEqualsHashCode}} - } - - @Override - public int hashCode() { - {{#useReflectionEqualsHashCode}} - return HashCodeBuilder.reflectionHashCode(this); - {{/useReflectionEqualsHashCode}} - {{^useReflectionEqualsHashCode}} - return Objects.hash({{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{paramName}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{paramName}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{paramName}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/allParams}}); - {{/useReflectionEqualsHashCode}} - } - } - {{/staticRequest}} - - /** - * {{summary}} - * {{notes}} -{{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} -{{/responses}} * @param requestParameters The {{operationId}} request parameters as object -{{#returnType}} * @return {{.}} -{{/returnType}} * @throws RestClientResponseException if an error occurs while attempting to invoke the API -{{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation -{{/externalDocs}} - */ - public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { - {{#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 RestClientResponseException if an error occurs while attempting to invoke the API -{{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation -{{/externalDocs}} - */ - public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { - 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 RestClientResponseException 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 RestClientResponseException { - return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); - } - -{{/hasSingleParam}} -{{/hasParams}} -{{/singleRequestParameter}} +{{#singleRequestParameter}}{{>single_request_parameter}}{{/singleRequestParameter}}{{^singleRequestParameter}}{{/singleRequestParameter}} /** * {{summary}} * {{notes}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/restclient/single_request_parameter.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/single_request_parameter.mustache new file mode 100644 index 00000000000..94ee10c4920 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/libraries/restclient/single_request_parameter.mustache @@ -0,0 +1,110 @@ +{{#hasParams}} +{{^hasSingleParam}} + + {{^staticRequest}} + public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){} + {{/staticRequest}} + {{#staticRequest}} + public static class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { + {{#allParams}} + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; + {{/allParams}} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{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}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { + return this.{{paramName}}; + } + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/allParams}} + @Override + public boolean equals(Object o) { + {{#useReflectionEqualsHashCode}} + return EqualsBuilder.reflectionEquals(this, o, false, null, true); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + }{{#hasParams}} + {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request request = ({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request) o; + return {{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && + {{/-last}}{{/allParams}};{{/hasParams}}{{^hasParams}} + return true;{{/hasParams}} + {{/useReflectionEqualsHashCode}} + } + + @Override + public int hashCode() { + {{#useReflectionEqualsHashCode}} + return HashCodeBuilder.reflectionHashCode(this); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + return Objects.hash({{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{paramName}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{paramName}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{paramName}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/allParams}}); + {{/useReflectionEqualsHashCode}} + } + } + {{/staticRequest}} + + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + {{#returnType}} * @return {{.}} + {{/returnType}} * @throws RestClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { + {{#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 RestClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { + 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 RestClientResponseException 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 RestClientResponseException { + return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } +{{/hasSingleParam}} +{{/hasParams}} \ No newline at end of file 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 b62130eb0eb..3b9d025f29f 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 @@ -64,110 +64,8 @@ public class {{classname}} { public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - - {{#operation}}{{#singleRequestParameter}}{{#hasParams}}{{^hasSingleParam}} - public {{#staticRequest}}static {{/staticRequest}}class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { - {{#allParams}} - private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; - {{/allParams}} - - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} - - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{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}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { - return this.{{paramName}}; - } - public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { - this.{{paramName}} = {{paramName}}; - return this; - } - - {{/allParams}} - @Override - public boolean equals(Object o) { - {{#useReflectionEqualsHashCode}} - return EqualsBuilder.reflectionEquals(this, o, false, null, true); - {{/useReflectionEqualsHashCode}} - {{^useReflectionEqualsHashCode}} - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - }{{#hasParams}} - {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request request = ({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request) o; - return {{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && - {{/-last}}{{/allParams}};{{/hasParams}}{{^hasParams}} - return true;{{/hasParams}} - {{/useReflectionEqualsHashCode}} - } - - @Override - public int hashCode() { - {{#useReflectionEqualsHashCode}} - return HashCodeBuilder.reflectionHashCode(this); - {{/useReflectionEqualsHashCode}} - {{^useReflectionEqualsHashCode}} - return Objects.hash({{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{paramName}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{paramName}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{paramName}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/allParams}}); - {{/useReflectionEqualsHashCode}} - } - } - - /** - * {{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 - * @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}}{{/singleRequestParameter}} + {{#operation}} +{{#singleRequestParameter}}{{>single_request_parameter}}{{/singleRequestParameter}}{{^singleRequestParameter}}{{/singleRequestParameter}} /** * {{summary}} * {{notes}} diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/webclient/single_request_parameter.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/single_request_parameter.mustache new file mode 100644 index 00000000000..1ea323aa937 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/Java/libraries/webclient/single_request_parameter.mustache @@ -0,0 +1,106 @@ +{{#hasParams}} +{{^hasSingleParam}} + + public {{#staticRequest}}static {{/staticRequest}}class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { + {{#allParams}} + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}; + {{/allParams}} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{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}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}() { + return this.{{paramName}}; + } + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{>nullable_var_annotations}} {{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{>nullable_var_annotations}} {{{dataType}}}{{/isFile}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/allParams}} + @Override + public boolean equals(Object o) { + {{#useReflectionEqualsHashCode}} + return EqualsBuilder.reflectionEquals(this, o, false, null, true); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + }{{#hasParams}} + {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request request = ({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request) o; + return {{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{paramName}}, request.{{paramName}}()){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && + {{/-last}}{{/allParams}};{{/hasParams}}{{^hasParams}} + return true;{{/hasParams}} + {{/useReflectionEqualsHashCode}} + } + + @Override + public int hashCode() { + {{#useReflectionEqualsHashCode}} + return HashCodeBuilder.reflectionHashCode(this); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + return Objects.hash({{#allParams}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{paramName}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{paramName}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{paramName}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/allParams}}); + {{/useReflectionEqualsHashCode}} + } + } + + /** + * {{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 + * @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}} \ No newline at end of file diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/AuthApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/AuthApi.java index 69e8d80ca13..cab0c4635d1 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/AuthApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/AuthApi.java @@ -107,6 +107,7 @@ public class AuthApi { public ResponseSpec testAuthHttpBasicWithResponseSpec() throws RestClientResponseException { return testAuthHttpBasicRequestCreation(); } + /** * To test HTTP bearer authentication * To test HTTP bearer authentication diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java index 45e842e6d49..104a0294bf0 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java @@ -111,6 +111,7 @@ public class BodyApi { public ResponseSpec testBinaryGifWithResponseSpec() throws RestClientResponseException { return testBinaryGifRequestCreation(); } + /** * Test body parameter(s) * Test body parameter(s) @@ -181,6 +182,7 @@ public class BodyApi { public ResponseSpec testBodyApplicationOctetstreamBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyApplicationOctetstreamBinaryRequestCreation(body); } + /** * Test array of binary in multipart mime * Test array of binary in multipart mime @@ -258,6 +260,7 @@ public class BodyApi { public ResponseSpec testBodyMultipartFormdataArrayOfBinaryWithResponseSpec(@jakarta.annotation.Nonnull List files) throws RestClientResponseException { return testBodyMultipartFormdataArrayOfBinaryRequestCreation(files); } + /** * Test single binary in multipart mime * Test single binary in multipart mime @@ -331,6 +334,7 @@ public class BodyApi { public ResponseSpec testBodyMultipartFormdataSingleBinaryWithResponseSpec(@jakarta.annotation.Nullable File myFile) throws RestClientResponseException { return testBodyMultipartFormdataSingleBinaryRequestCreation(myFile); } + /** * Test body parameter(s) * Test body parameter(s) @@ -401,6 +405,7 @@ public class BodyApi { public ResponseSpec testEchoBodyAllOfPetWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyAllOfPetRequestCreation(pet); } + /** * Test free form object * Test free form object @@ -471,6 +476,7 @@ public class BodyApi { public ResponseSpec testEchoBodyFreeFormObjectResponseStringWithResponseSpec(@jakarta.annotation.Nullable Object body) throws RestClientResponseException { return testEchoBodyFreeFormObjectResponseStringRequestCreation(body); } + /** * Test body parameter(s) * Test body parameter(s) @@ -541,6 +547,7 @@ public class BodyApi { public ResponseSpec testEchoBodyPetWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyPetRequestCreation(pet); } + /** * Test empty response body * Test empty response body @@ -611,6 +618,7 @@ public class BodyApi { public ResponseSpec testEchoBodyPetResponseStringWithResponseSpec(@jakarta.annotation.Nullable Pet pet) throws RestClientResponseException { return testEchoBodyPetResponseStringRequestCreation(pet); } + /** * Test string enum response body * Test string enum response body @@ -681,6 +689,7 @@ public class BodyApi { public ResponseSpec testEchoBodyStringEnumWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return testEchoBodyStringEnumRequestCreation(body); } + /** * Test empty json (request body) * Test empty json (request body) diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java index 5761b9ea6b0..c6a4d0a332f 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/FormApi.java @@ -129,6 +129,7 @@ public class FormApi { public ResponseSpec testFormIntegerBooleanStringWithResponseSpec(@jakarta.annotation.Nullable Integer integerForm, @jakarta.annotation.Nullable Boolean booleanForm, @jakarta.annotation.Nullable String stringForm) throws RestClientResponseException { return testFormIntegerBooleanStringRequestCreation(integerForm, booleanForm, stringForm); } + /** * Test form parameter(s) for multipart schema * Test form parameter(s) for multipart schema @@ -206,6 +207,7 @@ public class FormApi { public ResponseSpec testFormObjectMultipartWithResponseSpec(@jakarta.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientResponseException { return testFormObjectMultipartRequestCreation(marker); } + /** * Test form parameter(s) for oneOf schema * Test form parameter(s) for oneOf schema diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java index 6852e46bde6..0f58b5e3cc0 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/QueryApi.java @@ -125,6 +125,7 @@ public class QueryApi { public ResponseSpec testEnumRefStringWithResponseSpec(@jakarta.annotation.Nullable String enumNonrefStringQuery, @jakarta.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientResponseException { return testEnumRefStringRequestCreation(enumNonrefStringQuery, enumRefStringQuery); } + /** * Test query parameter(s) * Test query parameter(s) @@ -205,6 +206,7 @@ public class QueryApi { public ResponseSpec testQueryDatetimeDateStringWithResponseSpec(@jakarta.annotation.Nullable Instant datetimeQuery, @jakarta.annotation.Nullable LocalDate dateQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { return testQueryDatetimeDateStringRequestCreation(datetimeQuery, dateQuery, stringQuery); } + /** * Test query parameter(s) * Test query parameter(s) @@ -285,6 +287,7 @@ public class QueryApi { public ResponseSpec testQueryIntegerBooleanStringWithResponseSpec(@jakarta.annotation.Nullable Integer integerQuery, @jakarta.annotation.Nullable Boolean booleanQuery, @jakarta.annotation.Nullable String stringQuery) throws RestClientResponseException { return testQueryIntegerBooleanStringRequestCreation(integerQuery, booleanQuery, stringQuery); } + /** * Test query parameter(s) * Test query parameter(s) @@ -360,6 +363,7 @@ public class QueryApi { public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectWithResponseSpec(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { return testQueryStyleDeepObjectExplodeTrueObjectRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) @@ -430,6 +434,7 @@ public class QueryApi { public ResponseSpec testQueryStyleDeepObjectExplodeTrueObjectAllOfWithResponseSpec(@jakarta.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientResponseException { return testQueryStyleDeepObjectExplodeTrueObjectAllOfRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) @@ -500,6 +505,7 @@ public class QueryApi { public ResponseSpec testQueryStyleFormExplodeFalseArrayIntegerWithResponseSpec(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeFalseArrayIntegerRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) @@ -570,6 +576,7 @@ public class QueryApi { public ResponseSpec testQueryStyleFormExplodeFalseArrayStringWithResponseSpec(@jakarta.annotation.Nullable List queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeFalseArrayStringRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) @@ -640,6 +647,7 @@ public class QueryApi { public ResponseSpec testQueryStyleFormExplodeTrueArrayStringWithResponseSpec(@jakarta.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeTrueArrayStringRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) @@ -715,6 +723,7 @@ public class QueryApi { public ResponseSpec testQueryStyleFormExplodeTrueObjectWithResponseSpec(@jakarta.annotation.Nullable Pet queryObject) throws RestClientResponseException { return testQueryStyleFormExplodeTrueObjectRequestCreation(queryObject); } + /** * Test query parameter(s) * Test query parameter(s) 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 7a999536751..b543318329d 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 @@ -46,7 +46,6 @@ public class ResourceApi { this.apiClient = apiClient; } - /** * * Response file abstraction diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index 39bd66c45d9..0892c9611f2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -122,6 +122,7 @@ public class FakeApi { public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -186,6 +187,7 @@ public class FakeApi { public ResponseSpec fakeHealthGetWithResponseSpec() throws RestClientResponseException { return fakeHealthGetRequestCreation(); } + /** * test http signature authentication * @@ -268,6 +270,7 @@ public class FakeApi { public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -338,6 +341,7 @@ public class FakeApi { public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -408,6 +412,7 @@ public class FakeApi { public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -478,6 +483,7 @@ public class FakeApi { public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -548,6 +554,7 @@ public class FakeApi { public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -622,6 +629,7 @@ public class FakeApi { public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -691,6 +699,7 @@ public class FakeApi { public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -760,6 +769,7 @@ public class FakeApi { public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -829,6 +839,7 @@ public class FakeApi { public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + /** * * @@ -908,6 +919,7 @@ public class FakeApi { public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -982,6 +994,7 @@ public class FakeApi { public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClientModelRequestCreation(client); } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1148,6 +1161,7 @@ public class FakeApi { public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + /** * To test enum parameters * To test enum parameters @@ -1265,6 +1279,7 @@ public class FakeApi { public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { 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) @@ -1370,6 +1385,7 @@ public class FakeApi { public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1439,6 +1455,7 @@ public class FakeApi { public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1508,6 +1525,7 @@ public class FakeApi { public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + /** * test json serialization of form data * @@ -1590,6 +1608,7 @@ public class FakeApi { public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1659,6 +1678,7 @@ public class FakeApi { public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { return testNullableRequestCreation(childWithNullable); } + /** * * To test the collection format in query parameters @@ -1778,6 +1798,7 @@ public class FakeApi { public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 0c9e6b2d175..d2384a985c9 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -120,6 +120,7 @@ public class PetApi { public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return addPetRequestCreation(pet); } + /** * Deletes a pet * @@ -200,6 +201,7 @@ public class PetApi { public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -278,6 +280,7 @@ public class PetApi { public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -358,6 +361,7 @@ public class PetApi { public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -440,6 +444,7 @@ public class PetApi { public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -521,6 +526,7 @@ public class PetApi { public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return updatePetRequestCreation(pet); } + /** * Updates a pet in the store with form data * @@ -609,6 +615,7 @@ public class PetApi { public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } + /** * uploads an image * @@ -698,6 +705,7 @@ public class PetApi { public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index 5881babd315..f66f606db3b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -117,6 +117,7 @@ public class StoreApi { public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -181,6 +182,7 @@ public class StoreApi { public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -263,6 +265,7 @@ public class StoreApi { public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 431da789790..97b26ac5a55 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -114,6 +114,7 @@ public class UserApi { public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -183,6 +184,7 @@ public class UserApi { public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -252,6 +254,7 @@ public class UserApi { public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -325,6 +328,7 @@ public class UserApi { public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -407,6 +411,7 @@ public class UserApi { public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return getUserByNameRequestCreation(username); } + /** * Logs user into the system * @@ -494,6 +499,7 @@ public class UserApi { public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -553,6 +559,7 @@ public class UserApi { public ResponseSpec logoutUserWithResponseSpec() throws RestClientResponseException { return logoutUserRequestCreation(); } + /** * Updated user * This can only be done by the logged in user. diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java index cb7c302e66b..102d61198ce 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java @@ -122,6 +122,7 @@ public class FakeApi { public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -245,37 +246,37 @@ public class FakeApi { } /** - * test http signature authentication - * + * test http signature authentication + * *

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

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

200 - The instance started successfully * @param requestParameters The fakeHttpSignatureTest request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec fakeHttpSignatureTestWithResponseSpec(FakeHttpSignatureTestRequest requestParameters) throws RestClientResponseException { - return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); + return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); } /** @@ -360,6 +361,7 @@ public class FakeApi { public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -430,6 +432,7 @@ public class FakeApi { public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -500,6 +503,7 @@ public class FakeApi { public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -570,6 +574,7 @@ public class FakeApi { public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -640,6 +645,7 @@ public class FakeApi { public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -714,6 +720,7 @@ public class FakeApi { public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -783,6 +790,7 @@ public class FakeApi { public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -852,6 +860,7 @@ public class FakeApi { public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -969,37 +978,37 @@ public class FakeApi { } /** - * - * + * + * *

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

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

200 - Success * @param requestParameters The testBodyWithQueryParams request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testBodyWithQueryParamsWithResponseSpec(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException { - return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); + return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); } /** @@ -1081,6 +1090,7 @@ public class FakeApi { public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -1335,40 +1345,40 @@ public class FakeApi { } /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testEndpointParameters(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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 假端點 偽のエンドポイント 가짜 엔드 포인트 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testEndpointParametersWithHttpInfo(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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 假端點 偽のエンドポイント 가짜 엔드 포인트 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testEndpointParametersWithResponseSpec(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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()); } /** @@ -1662,40 +1672,40 @@ public class FakeApi { } /** - * To test enum parameters - * To test enum parameters + * To test enum parameters + * To test enum parameters *

400 - Invalid request *

404 - Not found * @param requestParameters The testEnumParameters request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testEnumParameters(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + 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 + /** + * To test enum parameters + * To test enum parameters *

400 - Invalid request *

404 - Not found * @param requestParameters The testEnumParameters request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testEnumParametersWithHttpInfo(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + 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 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testEnumParametersWithResponseSpec(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); } /** @@ -1907,37 +1917,37 @@ public class FakeApi { } /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testGroupParameters(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + 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) + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testGroupParametersWithHttpInfo(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + 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) + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testGroupParametersWithResponseSpec(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); } /** @@ -2045,6 +2055,7 @@ public class FakeApi { public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -2114,6 +2125,7 @@ public class FakeApi { public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -2231,37 +2243,37 @@ public class FakeApi { } /** - * test json serialization of form data - * + * test json serialization of form data + * *

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

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

200 - successful operation * @param requestParameters The testJsonFormData request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testJsonFormDataWithResponseSpec(TestJsonFormDataRequest requestParameters) throws RestClientResponseException { - return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); + return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); } /** @@ -2346,6 +2358,7 @@ public class FakeApi { public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -2518,37 +2531,37 @@ public class FakeApi { } /** - * - * To test the collection format in query parameters + * + * To test the collection format in query parameters *

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

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

200 - Success * @param requestParameters The testQueryParameterCollectionFormat request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(TestQueryParameterCollectionFormatRequest requestParameters) throws RestClientResponseException { - return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); + return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); } /** @@ -2670,6 +2683,7 @@ public class FakeApi { public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/PetApi.java index d2ac9c373f9..b55e91ddd9b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/PetApi.java @@ -168,40 +168,40 @@ public class PetApi { } /** - * Deletes a pet - * + * Deletes a pet + * *

200 - Successful operation *

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

200 - Successful operation *

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

200 - Successful operation *

400 - Invalid pet value * @param requestParameters The deletePet request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws RestClientResponseException { - return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); + return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); } /** @@ -284,6 +284,7 @@ public class PetApi { public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -362,6 +363,7 @@ public class PetApi { public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -442,6 +444,7 @@ public class PetApi { public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -524,6 +527,7 @@ public class PetApi { public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -664,40 +668,40 @@ public class PetApi { } /** - * Updates a pet in the store with form data - * + * Updates a pet in the store with form data + * *

200 - Successful operation *

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

200 - Successful operation *

405 - Invalid input * @param requestParameters The updatePetWithForm request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity updatePetWithFormWithHttpInfo(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException { - return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); } - /** - * Updates a pet in the store with form data - * + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec updatePetWithFormWithResponseSpec(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException { - return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); } /** @@ -847,39 +851,39 @@ public class PetApi { } /** - * uploads an image - * + * uploads an image + * *

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

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

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

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

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

200 - successful operation * @param requestParameters The uploadFileWithRequiredFile request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(UploadFileWithRequiredFileRequest requestParameters) throws RestClientResponseException { - return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); + return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); } /** diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/StoreApi.java index 5881babd315..f66f606db3b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/StoreApi.java @@ -117,6 +117,7 @@ public class StoreApi { public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -181,6 +182,7 @@ public class StoreApi { public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -263,6 +265,7 @@ public class StoreApi { public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/UserApi.java index 4c5994b4825..81688b4101d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/UserApi.java @@ -114,6 +114,7 @@ public class UserApi { public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -183,6 +184,7 @@ public class UserApi { public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -252,6 +254,7 @@ public class UserApi { public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -325,6 +328,7 @@ public class UserApi { public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -455,42 +459,42 @@ public class UserApi { } /** - * Logs user into the system - * + * Logs user into the system + * *

200 - successful operation *

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

200 - successful operation *

400 - Invalid username/password supplied * @param requestParameters The loginUser request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec loginUserWithResponseSpec(LoginUserRequest requestParameters) throws RestClientResponseException { - return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); + return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); } /** @@ -580,6 +584,7 @@ public class UserApi { public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -687,40 +692,40 @@ public class UserApi { } /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void updateUser(UpdateUserRequest requestParameters) throws RestClientResponseException { - this.updateUser(requestParameters.username(), requestParameters.user()); + this.updateUser(requestParameters.username(), requestParameters.user()); } - /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity updateUserWithHttpInfo(UpdateUserRequest requestParameters) throws RestClientResponseException { - return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); + return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); } - /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec updateUserWithResponseSpec(UpdateUserRequest requestParameters) throws RestClientResponseException { - return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); + return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); } /** diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index be8f9e17b05..38653fe6c4b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -122,6 +122,7 @@ public class FakeApi { public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -190,37 +191,37 @@ public class FakeApi { public record FakeHttpSignatureTestRequest(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1){} /** - * test http signature authentication - * + * test http signature authentication + * *

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

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

200 - The instance started successfully * @param requestParameters The fakeHttpSignatureTest request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec fakeHttpSignatureTestWithResponseSpec(FakeHttpSignatureTestRequest requestParameters) throws RestClientResponseException { - return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); + return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); } /** @@ -305,6 +306,7 @@ public class FakeApi { public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -375,6 +377,7 @@ public class FakeApi { public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -445,6 +448,7 @@ public class FakeApi { public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -515,6 +519,7 @@ public class FakeApi { public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -585,6 +590,7 @@ public class FakeApi { public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -659,6 +665,7 @@ public class FakeApi { public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -728,6 +735,7 @@ public class FakeApi { public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -797,6 +805,7 @@ public class FakeApi { public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -870,37 +879,37 @@ public class FakeApi { public record TestBodyWithQueryParamsRequest(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user){} /** - * - * + * + * *

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

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

200 - Success * @param requestParameters The testBodyWithQueryParams request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testBodyWithQueryParamsWithResponseSpec(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException { - return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); + return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); } /** @@ -982,6 +991,7 @@ public class FakeApi { public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -1060,40 +1070,40 @@ public class FakeApi { public record TestEndpointParametersRequest(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback){} /** - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testEndpointParameters(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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 假端點 偽のエンドポイント 가짜 엔드 포인트 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testEndpointParametersWithHttpInfo(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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 假端點 偽のエンドポイント 가짜 엔드 포인트 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testEndpointParametersWithResponseSpec(TestEndpointParametersRequest requestParameters) throws RestClientResponseException { - 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()); + 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()); } /** @@ -1266,40 +1276,40 @@ public class FakeApi { public record TestEnumParametersRequest(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString){} /** - * To test enum parameters - * To test enum parameters + * To test enum parameters + * To test enum parameters *

400 - Invalid request *

404 - Not found * @param requestParameters The testEnumParameters request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testEnumParameters(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - this.testEnumParameters(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + 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 + /** + * To test enum parameters + * To test enum parameters *

400 - Invalid request *

404 - Not found * @param requestParameters The testEnumParameters request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testEnumParametersWithHttpInfo(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - return this.testEnumParametersWithHttpInfo(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + 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 + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testEnumParametersWithResponseSpec(TestEnumParametersRequest requestParameters) throws RestClientResponseException { - return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); + return this.testEnumParametersWithResponseSpec(requestParameters.enumHeaderStringArray(), requestParameters.enumHeaderString(), requestParameters.enumQueryStringArray(), requestParameters.enumQueryString(), requestParameters.enumQueryInteger(), requestParameters.enumQueryDouble(), requestParameters.enumQueryModelArray(), requestParameters.enumFormStringArray(), requestParameters.enumFormString()); } /** @@ -1423,37 +1433,37 @@ public class FakeApi { public record TestGroupParametersRequest(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group){} /** - * Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void testGroupParameters(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - this.testGroupParameters(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + 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) + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity testGroupParametersWithHttpInfo(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - return this.testGroupParametersWithHttpInfo(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + 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) + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testGroupParametersWithResponseSpec(TestGroupParametersRequest requestParameters) throws RestClientResponseException { - return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); + return this.testGroupParametersWithResponseSpec(requestParameters.requiredStringGroup(), requestParameters.requiredBooleanGroup(), requestParameters.requiredInt64Group(), requestParameters.stringGroup(), requestParameters.booleanGroup(), requestParameters.int64Group()); } /** @@ -1561,6 +1571,7 @@ public class FakeApi { public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1630,6 +1641,7 @@ public class FakeApi { public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1703,37 +1715,37 @@ public class FakeApi { public record TestJsonFormDataRequest(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2){} /** - * test json serialization of form data - * + * test json serialization of form data + * *

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

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

200 - successful operation * @param requestParameters The testJsonFormData request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testJsonFormDataWithResponseSpec(TestJsonFormDataRequest requestParameters) throws RestClientResponseException { - return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); + return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); } /** @@ -1818,6 +1830,7 @@ public class FakeApi { public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1891,37 +1904,37 @@ public class FakeApi { public record TestQueryParameterCollectionFormatRequest(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language){} /** - * - * To test the collection format in query parameters + * + * To test the collection format in query parameters *

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

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

200 - Success * @param requestParameters The testQueryParameterCollectionFormat request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(TestQueryParameterCollectionFormatRequest requestParameters) throws RestClientResponseException { - return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); + return this.testQueryParameterCollectionFormatWithResponseSpec(requestParameters.pipe(), requestParameters.ioutil(), requestParameters.http(), requestParameters.url(), requestParameters.context(), requestParameters.allowEmpty(), requestParameters.language()); } /** @@ -2043,6 +2056,7 @@ public class FakeApi { public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java index d5c9a04ad01..9a280dd4eb6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/PetApi.java @@ -124,40 +124,40 @@ public class PetApi { public record DeletePetRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey){} /** - * Deletes a pet - * + * Deletes a pet + * *

200 - Successful operation *

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

200 - Successful operation *

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

200 - Successful operation *

400 - Invalid pet value * @param requestParameters The deletePet request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws RestClientResponseException { - return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); + return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); } /** @@ -240,6 +240,7 @@ public class PetApi { public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -318,6 +319,7 @@ public class PetApi { public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -398,6 +400,7 @@ public class PetApi { public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -480,6 +483,7 @@ public class PetApi { public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -565,40 +569,40 @@ public class PetApi { public record UpdatePetWithFormRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status){} /** - * Updates a pet in the store with form data - * + * Updates a pet in the store with form data + * *

200 - Successful operation *

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

200 - Successful operation *

405 - Invalid input * @param requestParameters The updatePetWithForm request parameters as object * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity updatePetWithFormWithHttpInfo(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException { - return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + return this.updatePetWithFormWithHttpInfo(requestParameters.petId(), requestParameters.name(), requestParameters.status()); } - /** - * Updates a pet in the store with form data - * + /** + * 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec updatePetWithFormWithResponseSpec(UpdatePetWithFormRequest requestParameters) throws RestClientResponseException { - return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); + return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); } /** @@ -693,39 +697,39 @@ public class PetApi { public record UploadFileRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file){} /** - * uploads an image - * + * uploads an image + * *

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

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

200 - successful operation * @param requestParameters The uploadFile request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec uploadFileWithResponseSpec(UploadFileRequest requestParameters) throws RestClientResponseException { - return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); + return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); } /** @@ -821,39 +825,39 @@ public class PetApi { public record UploadFileWithRequiredFileRequest(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nonnull File requiredFile, @jakarta.annotation.Nullable String additionalMetadata){} /** - * uploads an image (required) - * + * uploads an image (required) + * *

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

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

200 - successful operation * @param requestParameters The uploadFileWithRequiredFile request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec uploadFileWithRequiredFileWithResponseSpec(UploadFileWithRequiredFileRequest requestParameters) throws RestClientResponseException { - return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); + return this.uploadFileWithRequiredFileWithResponseSpec(requestParameters.petId(), requestParameters.requiredFile(), requestParameters.additionalMetadata()); } /** diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java index 5881babd315..f66f606db3b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/StoreApi.java @@ -117,6 +117,7 @@ public class StoreApi { public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -181,6 +182,7 @@ public class StoreApi { public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -263,6 +265,7 @@ public class StoreApi { public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java index ef441bd9220..4e961792804 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/UserApi.java @@ -114,6 +114,7 @@ public class UserApi { public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -183,6 +184,7 @@ public class UserApi { public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -252,6 +254,7 @@ public class UserApi { public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -325,6 +328,7 @@ public class UserApi { public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -411,42 +415,42 @@ public class UserApi { public record LoginUserRequest(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password){} /** - * Logs user into the system - * + * Logs user into the system + * *

200 - successful operation *

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

200 - successful operation *

400 - Invalid username/password supplied * @param requestParameters The loginUser request parameters as object - * @return ResponseSpec - * @throws RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec loginUserWithResponseSpec(LoginUserRequest requestParameters) throws RestClientResponseException { - return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); + return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); } /** @@ -536,6 +540,7 @@ public class UserApi { public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -599,40 +604,40 @@ public class UserApi { public record UpdateUserRequest(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user){} /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public void updateUser(UpdateUserRequest requestParameters) throws RestClientResponseException { - this.updateUser(requestParameters.username(), requestParameters.user()); + this.updateUser(requestParameters.username(), requestParameters.user()); } - /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + */ public ResponseEntity updateUserWithHttpInfo(UpdateUserRequest requestParameters) throws RestClientResponseException { - return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); + return this.updateUserWithHttpInfo(requestParameters.username(), requestParameters.user()); } - /** - * Updated user - * This can only be done by the logged in 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 RestClientResponseException if an error occurs while attempting to invoke the API - */ + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API + */ public ResponseSpec updateUserWithResponseSpec(UpdateUserRequest requestParameters) throws RestClientResponseException { - return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); + return this.updateUserWithResponseSpec(requestParameters.username(), requestParameters.user()); } /** diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java index 39bd66c45d9..0892c9611f2 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -122,6 +122,7 @@ public class FakeApi { public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws RestClientResponseException { return fakeBigDecimalMapRequestCreation(); } + /** * Health check endpoint * @@ -186,6 +187,7 @@ public class FakeApi { public ResponseSpec fakeHealthGetWithResponseSpec() throws RestClientResponseException { return fakeHealthGetRequestCreation(); } + /** * test http signature authentication * @@ -268,6 +270,7 @@ public class FakeApi { public ResponseSpec fakeHttpSignatureTestWithResponseSpec(@jakarta.annotation.Nonnull Pet pet, @jakarta.annotation.Nullable String query1, @jakarta.annotation.Nullable String header1) throws RestClientResponseException { return fakeHttpSignatureTestRequestCreation(pet, query1, header1); } + /** * * Test serialization of outer boolean types @@ -338,6 +341,7 @@ public class FakeApi { public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(@jakarta.annotation.Nullable Boolean body) throws RestClientResponseException { return fakeOuterBooleanSerializeRequestCreation(body); } + /** * * Test serialization of object with outer number type @@ -408,6 +412,7 @@ public class FakeApi { public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterComposite outerComposite) throws RestClientResponseException { return fakeOuterCompositeSerializeRequestCreation(outerComposite); } + /** * * Test serialization of outer number types @@ -478,6 +483,7 @@ public class FakeApi { public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation.Nullable BigDecimal body) throws RestClientResponseException { return fakeOuterNumberSerializeRequestCreation(body); } + /** * * Test serialization of outer string types @@ -548,6 +554,7 @@ public class FakeApi { public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { return fakeOuterStringSerializeRequestCreation(body); } + /** * * Test serialization of enum (int) properties with examples @@ -622,6 +629,7 @@ public class FakeApi { public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(@jakarta.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException { return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty); } + /** * test referenced additionalProperties * @@ -691,6 +699,7 @@ public class FakeApi { public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testAdditionalPropertiesReferenceRequestCreation(requestBody); } + /** * * For this test, the body has to be a binary file. @@ -760,6 +769,7 @@ public class FakeApi { public ResponseSpec testBodyWithBinaryWithResponseSpec(@jakarta.annotation.Nullable File body) throws RestClientResponseException { return testBodyWithBinaryRequestCreation(body); } + /** * * For this test, the body for this request must reference a schema named `File`. @@ -829,6 +839,7 @@ public class FakeApi { public ResponseSpec testBodyWithFileSchemaWithResponseSpec(@jakarta.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException { return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass); } + /** * * @@ -908,6 +919,7 @@ public class FakeApi { public ResponseSpec testBodyWithQueryParamsWithResponseSpec(@jakarta.annotation.Nonnull String query, @jakarta.annotation.Nonnull User user) throws RestClientResponseException { return testBodyWithQueryParamsRequestCreation(query, user); } + /** * To test \"client\" model * To test \"client\" model @@ -982,6 +994,7 @@ public class FakeApi { public ResponseSpec testClientModelWithResponseSpec(@jakarta.annotation.Nonnull Client client) throws RestClientResponseException { return testClientModelRequestCreation(client); } + /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1148,6 +1161,7 @@ public class FakeApi { public ResponseSpec testEndpointParametersWithResponseSpec(@jakarta.annotation.Nonnull BigDecimal number, @jakarta.annotation.Nonnull Double _double, @jakarta.annotation.Nonnull String patternWithoutDelimiter, @jakarta.annotation.Nonnull byte[] _byte, @jakarta.annotation.Nullable Integer integer, @jakarta.annotation.Nullable Integer int32, @jakarta.annotation.Nullable Long int64, @jakarta.annotation.Nullable Float _float, @jakarta.annotation.Nullable String string, @jakarta.annotation.Nullable File binary, @jakarta.annotation.Nullable LocalDate date, @jakarta.annotation.Nullable OffsetDateTime dateTime, @jakarta.annotation.Nullable String password, @jakarta.annotation.Nullable String paramCallback) throws RestClientResponseException { return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } + /** * To test enum parameters * To test enum parameters @@ -1265,6 +1279,7 @@ public class FakeApi { public ResponseSpec testEnumParametersWithResponseSpec(@jakarta.annotation.Nullable List enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List enumQueryModelArray, @jakarta.annotation.Nullable List enumFormStringArray, @jakarta.annotation.Nullable String enumFormString) throws RestClientResponseException { 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) @@ -1370,6 +1385,7 @@ public class FakeApi { public ResponseSpec testGroupParametersWithResponseSpec(@jakarta.annotation.Nonnull Integer requiredStringGroup, @jakarta.annotation.Nonnull Boolean requiredBooleanGroup, @jakarta.annotation.Nonnull Long requiredInt64Group, @jakarta.annotation.Nullable Integer stringGroup, @jakarta.annotation.Nullable Boolean booleanGroup, @jakarta.annotation.Nullable Long int64Group) throws RestClientResponseException { return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } + /** * test inline additionalProperties * @@ -1439,6 +1455,7 @@ public class FakeApi { public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull Map requestBody) throws RestClientResponseException { return testInlineAdditionalPropertiesRequestCreation(requestBody); } + /** * test inline free-form additionalProperties * @@ -1508,6 +1525,7 @@ public class FakeApi { public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(@jakarta.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException { return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest); } + /** * test json serialization of form data * @@ -1590,6 +1608,7 @@ public class FakeApi { public ResponseSpec testJsonFormDataWithResponseSpec(@jakarta.annotation.Nonnull String param, @jakarta.annotation.Nonnull String param2) throws RestClientResponseException { return testJsonFormDataRequestCreation(param, param2); } + /** * test nullable parent property * @@ -1659,6 +1678,7 @@ public class FakeApi { public ResponseSpec testNullableWithResponseSpec(@jakarta.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientResponseException { return testNullableRequestCreation(childWithNullable); } + /** * * To test the collection format in query parameters @@ -1778,6 +1798,7 @@ public class FakeApi { public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(@jakarta.annotation.Nonnull List pipe, @jakarta.annotation.Nonnull List ioutil, @jakarta.annotation.Nonnull List http, @jakarta.annotation.Nonnull List url, @jakarta.annotation.Nonnull List context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map language) throws RestClientResponseException { return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language); } + /** * test referenced string map * diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java index 0c9e6b2d175..d2384a985c9 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/PetApi.java @@ -120,6 +120,7 @@ public class PetApi { public ResponseSpec addPetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return addPetRequestCreation(pet); } + /** * Deletes a pet * @@ -200,6 +201,7 @@ public class PetApi { public ResponseSpec deletePetWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientResponseException { return deletePetRequestCreation(petId, apiKey); } + /** * Finds Pets by status * Multiple status values can be provided with comma separated strings @@ -278,6 +280,7 @@ public class PetApi { public ResponseSpec findPetsByStatusWithResponseSpec(@jakarta.annotation.Nonnull List status) throws RestClientResponseException { return findPetsByStatusRequestCreation(status); } + /** * Finds Pets by tags * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -358,6 +361,7 @@ public class PetApi { public ResponseSpec findPetsByTagsWithResponseSpec(@jakarta.annotation.Nonnull Set tags) throws RestClientResponseException { return findPetsByTagsRequestCreation(tags); } + /** * Find pet by ID * Returns a single pet @@ -440,6 +444,7 @@ public class PetApi { public ResponseSpec getPetByIdWithResponseSpec(@jakarta.annotation.Nonnull Long petId) throws RestClientResponseException { return getPetByIdRequestCreation(petId); } + /** * Update an existing pet * @@ -521,6 +526,7 @@ public class PetApi { public ResponseSpec updatePetWithResponseSpec(@jakarta.annotation.Nonnull Pet pet) throws RestClientResponseException { return updatePetRequestCreation(pet); } + /** * Updates a pet in the store with form data * @@ -609,6 +615,7 @@ public class PetApi { public ResponseSpec updatePetWithFormWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientResponseException { return updatePetWithFormRequestCreation(petId, name, status); } + /** * uploads an image * @@ -698,6 +705,7 @@ public class PetApi { public ResponseSpec uploadFileWithResponseSpec(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientResponseException { return uploadFileRequestCreation(petId, additionalMetadata, _file); } + /** * uploads an image (required) * diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java index 5881babd315..f66f606db3b 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/StoreApi.java @@ -117,6 +117,7 @@ public class StoreApi { public ResponseSpec deleteOrderWithResponseSpec(@jakarta.annotation.Nonnull String orderId) throws RestClientResponseException { return deleteOrderRequestCreation(orderId); } + /** * Returns pet inventories by status * Returns a map of status codes to quantities @@ -181,6 +182,7 @@ public class StoreApi { public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException { return getInventoryRequestCreation(); } + /** * Find purchase order by ID * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -263,6 +265,7 @@ public class StoreApi { public ResponseSpec getOrderByIdWithResponseSpec(@jakarta.annotation.Nonnull Long orderId) throws RestClientResponseException { return getOrderByIdRequestCreation(orderId); } + /** * Place an order for a pet * diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java index 431da789790..97b26ac5a55 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/UserApi.java @@ -114,6 +114,7 @@ public class UserApi { public ResponseSpec createUserWithResponseSpec(@jakarta.annotation.Nonnull User user) throws RestClientResponseException { return createUserRequestCreation(user); } + /** * Creates list of users with given input array * @@ -183,6 +184,7 @@ public class UserApi { public ResponseSpec createUsersWithArrayInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithArrayInputRequestCreation(user); } + /** * Creates list of users with given input array * @@ -252,6 +254,7 @@ public class UserApi { public ResponseSpec createUsersWithListInputWithResponseSpec(@jakarta.annotation.Nonnull List user) throws RestClientResponseException { return createUsersWithListInputRequestCreation(user); } + /** * Delete user * This can only be done by the logged in user. @@ -325,6 +328,7 @@ public class UserApi { public ResponseSpec deleteUserWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return deleteUserRequestCreation(username); } + /** * Get user by user name * @@ -407,6 +411,7 @@ public class UserApi { public ResponseSpec getUserByNameWithResponseSpec(@jakarta.annotation.Nonnull String username) throws RestClientResponseException { return getUserByNameRequestCreation(username); } + /** * Logs user into the system * @@ -494,6 +499,7 @@ public class UserApi { public ResponseSpec loginUserWithResponseSpec(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientResponseException { return loginUserRequestCreation(username, password); } + /** * Logs out current logged in user session * @@ -553,6 +559,7 @@ public class UserApi { public ResponseSpec logoutUserWithResponseSpec() throws RestClientResponseException { return logoutUserRequestCreation(); } + /** * Updated user * This can only be done by the logged in user. 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 eced361e4da..8995dc5e19d 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 @@ -46,7 +46,6 @@ public class AnotherFakeApi { 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 c64a06a7679..626bcbdd59f 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 @@ -46,7 +46,6 @@ public class DefaultApi { 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 eb436488d93..db6a1bbdb54 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 @@ -60,7 +60,6 @@ public class FakeApi { this.apiClient = apiClient; } - /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys 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 c4fa751bfaa..274065021df 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 @@ -46,7 +46,6 @@ public class FakeClassnameTags123Api { 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 67912482373..46c07b6a3de 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 @@ -49,7 +49,6 @@ public class PetApi { this.apiClient = apiClient; } - /** * Add a new pet to the store * 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 d38f7d36740..e9e1e62d3cd 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 @@ -46,7 +46,6 @@ public class StoreApi { 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 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 c29fd4583c5..5d389224f3e 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 @@ -47,7 +47,6 @@ public class UserApi { this.apiClient = apiClient; } - /** * Create 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 034658ff195..08c1936f9de 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 @@ -46,7 +46,6 @@ public class DefaultApi { 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 2cfbe956810..e3fb802398a 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 @@ -46,7 +46,6 @@ public class AnotherFakeApi { 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 fab23605f6a..04f5e90a566 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 @@ -46,7 +46,6 @@ public class DefaultApi { 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 b665d104ad0..e28312062c3 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 @@ -60,7 +60,6 @@ public class FakeApi { this.apiClient = apiClient; } - /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys 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 4e7976be0d8..4c87024e88f 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 @@ -46,7 +46,6 @@ public class FakeClassnameTags123Api { 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 d03def6e672..39275d5a910 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 @@ -49,7 +49,6 @@ public class PetApi { this.apiClient = apiClient; } - /** * Add a new pet to the store * 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 0575f22a955..3c60cca602c 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 @@ -46,7 +46,6 @@ public class StoreApi { 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 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 ae5047b980e..709c33f0757 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 @@ -47,7 +47,6 @@ public class UserApi { this.apiClient = apiClient; } - /** * Create 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 2cfbe956810..e3fb802398a 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 @@ -46,7 +46,6 @@ public class AnotherFakeApi { 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 fab23605f6a..04f5e90a566 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 @@ -46,7 +46,6 @@ public class DefaultApi { 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 dc7a1150085..154b1ec1cf2 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 @@ -60,7 +60,6 @@ public class FakeApi { this.apiClient = apiClient; } - /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys @@ -279,10 +278,10 @@ public class FakeApi { * @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()); + return this.fakeHttpSignatureTestWithResponseSpec(requestParameters.pet(), requestParameters.query1(), requestParameters.header1()); } - + /** * test http signature authentication * @@ -1012,10 +1011,10 @@ public class FakeApi { * @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()); + return this.testBodyWithQueryParamsWithResponseSpec(requestParameters.query(), requestParameters.user()); } - + /** * * @@ -1383,10 +1382,10 @@ public class FakeApi { * @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()); + 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1711,10 +1710,10 @@ public class FakeApi { * @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()); + 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 @@ -1954,10 +1953,10 @@ public class FakeApi { * @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()); + 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) @@ -2281,10 +2280,10 @@ public class FakeApi { * @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()); + return this.testJsonFormDataWithResponseSpec(requestParameters.param(), requestParameters.param2()); } - + /** * test json serialization of form data * @@ -2570,10 +2569,10 @@ public class FakeApi { * @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()); + 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 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 4e7976be0d8..4c87024e88f 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 @@ -46,7 +46,6 @@ public class FakeClassnameTags123Api { 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 c7ba0844867..cecacd074e8 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 @@ -49,7 +49,6 @@ public class PetApi { this.apiClient = apiClient; } - /** * Add a new pet to the store * @@ -204,10 +203,10 @@ public class PetApi { * @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()); + return this.deletePetWithResponseSpec(requestParameters.petId(), requestParameters.apiKey()); } - + /** * Deletes a pet * @@ -705,10 +704,10 @@ public class PetApi { * @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()); + return this.updatePetWithFormWithResponseSpec(requestParameters.petId(), requestParameters.name(), requestParameters.status()); } - + /** * Updates a pet in the store with form data * @@ -888,10 +887,10 @@ public class PetApi { * @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()); + return this.uploadFileWithResponseSpec(requestParameters.petId(), requestParameters.additionalMetadata(), requestParameters._file()); } - + /** * uploads an image * @@ -1072,10 +1071,10 @@ public class PetApi { * @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()); + 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 0575f22a955..3c60cca602c 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 @@ -46,7 +46,6 @@ public class StoreApi { 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 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 eff5993afb7..99a2f427d64 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 @@ -47,7 +47,6 @@ public class UserApi { this.apiClient = apiClient; } - /** * Create user * This can only be done by the logged in user. @@ -497,10 +496,10 @@ public class UserApi { * @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()); + return this.loginUserWithResponseSpec(requestParameters.username(), requestParameters.password()); } - + /** * Logs user into the system * @@ -729,10 +728,10 @@ public class UserApi { * @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()); + 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 2cfbe956810..e3fb802398a 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 @@ -46,7 +46,6 @@ public class AnotherFakeApi { 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 fab23605f6a..04f5e90a566 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 @@ -46,7 +46,6 @@ public class DefaultApi { 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 b665d104ad0..e28312062c3 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 @@ -60,7 +60,6 @@ public class FakeApi { this.apiClient = apiClient; } - /** * * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys 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 4e7976be0d8..4c87024e88f 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 @@ -46,7 +46,6 @@ public class FakeClassnameTags123Api { 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 d03def6e672..39275d5a910 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 @@ -49,7 +49,6 @@ public class PetApi { this.apiClient = apiClient; } - /** * Add a new pet to the store * 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 0575f22a955..3c60cca602c 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 @@ -46,7 +46,6 @@ public class StoreApi { 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 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 ae5047b980e..709c33f0757 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 @@ -47,7 +47,6 @@ public class UserApi { this.apiClient = apiClient; } - /** * Create user * This can only be done by the logged in user.