mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 14:10:56 +00:00
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
This commit is contained in:
parent
e948355127
commit
050dcae3ab
@ -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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/externalDocs}}
|
||||
*/
|
||||
public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity<Void>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}}
|
||||
|
@ -0,0 +1,110 @@
|
||||
{{#hasParams}}
|
||||
{{^hasSingleParam}}
|
||||
|
||||
{{^staticRequest}}
|
||||
public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/externalDocs}}
|
||||
*/
|
||||
public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity<Void>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}}
|
@ -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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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<Void>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/externalDocs}}
|
||||
*/
|
||||
public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<List<{{#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}}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<Void>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono<ResponseEntity<List<{{#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<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}}Mono<ResponseEntity<Void>>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}}
|
||||
|
@ -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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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<org.springframework.core.io.AbstractResource>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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<Void>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/externalDocs}}
|
||||
*/
|
||||
public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<List<{{#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}}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<Void>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono<ResponseEntity<List<{{#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<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}}Mono<ResponseEntity<Void>>{{/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}} * <p><b>{{code}}</b>{{#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 <a href="{{url}}">{{summary}} Documentation</a>
|
||||
{{/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}}
|
@ -107,6 +107,7 @@ public class AuthApi {
|
||||
public ResponseSpec testAuthHttpBasicWithResponseSpec() throws RestClientResponseException {
|
||||
return testAuthHttpBasicRequestCreation();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test HTTP bearer authentication
|
||||
* To test HTTP bearer authentication
|
||||
|
@ -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<File> 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)
|
||||
|
@ -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
|
||||
|
@ -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<Integer> 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<String> 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)
|
||||
|
@ -46,7 +46,6 @@ public class ResourceApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Response file abstraction
|
||||
|
@ -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<String, Object> 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<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> 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<String, String> 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<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
|
||||
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
}
|
||||
|
||||
/**
|
||||
* test referenced string map
|
||||
*
|
||||
|
@ -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<String> 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<String> 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)
|
||||
*
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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> 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> 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.
|
||||
|
@ -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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - 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<String, Object> 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 {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - Success
|
||||
* @param requestParameters The testBodyWithQueryParams request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException {
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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<Void> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - 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
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - Not found
|
||||
* @param requestParameters The testEnumParameters request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - 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)
|
||||
* <p><b>400</b> - 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)
|
||||
* <p><b>400</b> - Something wrong
|
||||
* @param requestParameters The testGroupParameters request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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)
|
||||
* <p><b>400</b> - 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<String, String> 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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param requestParameters The testJsonFormData request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
* <p><b>200</b> - 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
|
||||
* <p><b>200</b> - Success
|
||||
* @param requestParameters The testQueryParameterCollectionFormat request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
* <p><b>200</b> - 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<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
|
||||
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
}
|
||||
|
||||
/**
|
||||
* test referenced string map
|
||||
*
|
||||
|
@ -168,40 +168,40 @@ public class PetApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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<String> 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<String> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param requestParameters The updatePetWithForm request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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<ModelApiResponse> 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
|
||||
*
|
||||
* <p><b>200</b> - 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)
|
||||
*
|
||||
* <p><b>200</b> - 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)
|
||||
*
|
||||
* <p><b>200</b> - 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<ModelApiResponse> 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)
|
||||
*
|
||||
* <p><b>200</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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> 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> 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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<String> 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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<Void> 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - 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<String, Object> 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){}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - Success
|
||||
* @param requestParameters The testBodyWithQueryParams request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(TestBodyWithQueryParamsRequest requestParameters) throws RestClientResponseException {
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(requestParameters.query(), requestParameters.user());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>200</b> - 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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<Void> 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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - 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<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> enumFormStringArray, @jakarta.annotation.Nullable String enumFormString){}
|
||||
|
||||
/**
|
||||
* To test enum parameters
|
||||
* To test enum parameters
|
||||
* To test enum parameters
|
||||
* To test enum parameters
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - 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
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - Not found
|
||||
* @param requestParameters The testEnumParameters request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
* <p><b>400</b> - Invalid request
|
||||
* <p><b>404</b> - 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)
|
||||
* <p><b>400</b> - 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)
|
||||
* <p><b>400</b> - Something wrong
|
||||
* @param requestParameters The testGroupParameters request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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)
|
||||
* <p><b>400</b> - 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<String, String> 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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param requestParameters The testJsonFormData request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - 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<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language){}
|
||||
|
||||
/**
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
*
|
||||
* To test the collection format in query parameters
|
||||
* <p><b>200</b> - 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
|
||||
* <p><b>200</b> - Success
|
||||
* @param requestParameters The testQueryParameterCollectionFormat request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
* <p><b>200</b> - 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<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
|
||||
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
}
|
||||
|
||||
/**
|
||||
* test referenced string map
|
||||
*
|
||||
|
@ -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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - 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<String> 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<String> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param requestParameters The updatePetWithForm request parameters as object
|
||||
* @throws RestClientResponseException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
*/
|
||||
public ResponseEntity<Void> 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
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - 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<ModelApiResponse> 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
|
||||
*
|
||||
* <p><b>200</b> - 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)
|
||||
*
|
||||
* <p><b>200</b> - 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)
|
||||
*
|
||||
* <p><b>200</b> - 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<ModelApiResponse> 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)
|
||||
*
|
||||
* <p><b>200</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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> 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> 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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<String> 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
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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<Void> 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.
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - 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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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<String, Object> 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<String> enumHeaderStringArray, @jakarta.annotation.Nullable String enumHeaderString, @jakarta.annotation.Nullable List<String> enumQueryStringArray, @jakarta.annotation.Nullable String enumQueryString, @jakarta.annotation.Nullable Integer enumQueryInteger, @jakarta.annotation.Nullable Double enumQueryDouble, @jakarta.annotation.Nullable List<EnumClass> enumQueryModelArray, @jakarta.annotation.Nullable List<String> 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<String, String> 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<String> pipe, @jakarta.annotation.Nonnull List<String> ioutil, @jakarta.annotation.Nonnull List<String> http, @jakarta.annotation.Nonnull List<String> url, @jakarta.annotation.Nonnull List<String> context, @jakarta.annotation.Nonnull String allowEmpty, @jakarta.annotation.Nullable Map<String, String> language) throws RestClientResponseException {
|
||||
return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
}
|
||||
|
||||
/**
|
||||
* test referenced string map
|
||||
*
|
||||
|
@ -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<String> 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<String> 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)
|
||||
*
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -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> 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> 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.
|
||||
|
@ -46,7 +46,6 @@ public class AnotherFakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
|
@ -46,7 +46,6 @@ public class DefaultApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -60,7 +60,6 @@ public class FakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
|
@ -46,7 +46,6 @@ public class FakeClassnameTags123Api {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
|
@ -49,7 +49,6 @@ public class PetApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,6 @@ public class UserApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
|
@ -46,7 +46,6 @@ public class DefaultApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -46,7 +46,6 @@ public class AnotherFakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
|
@ -46,7 +46,6 @@ public class DefaultApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -60,7 +60,6 @@ public class FakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
|
@ -46,7 +46,6 @@ public class FakeClassnameTags123Api {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
|
@ -49,7 +49,6 @@ public class PetApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,6 @@ public class UserApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
|
@ -46,7 +46,6 @@ public class AnotherFakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
|
@ -46,7 +46,6 @@ public class DefaultApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -46,7 +46,6 @@ public class FakeClassnameTags123Api {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
|
@ -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)
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -46,7 +46,6 @@ public class AnotherFakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
|
@ -46,7 +46,6 @@ public class DefaultApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -60,7 +60,6 @@ public class FakeApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
|
@ -46,7 +46,6 @@ public class FakeClassnameTags123Api {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
|
@ -49,7 +49,6 @@ public class PetApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,6 @@ public class UserApi {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
|
Loading…
x
Reference in New Issue
Block a user