forked from loafle/openapi-generator-original
		
	feat (#19407 JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient (#19827)
* chore (JAVA SPRING WEBCLIENT): Remove comments used for debugging * feat (JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient * feat (JAVA SPRING WEBCLIENT): Generate samples and docs * fix (JAVA SPRING WEBCLIENT): Fix missing return error & Fix JDK17 action webclient useSingleRequestParameter test path * fix (JAVA SPRING WEBCLIENT): Fix code indention * fix (JAVA SPRING WEBCLIENT): Fix code indention again * fix (JAVA SPRING WEBCLIENT): Update samples * feat (JAVA SPRING WEBCLIENT): Regenerate after pull rebase
This commit is contained in:
		
							parent
							
								
									cc40f40ead
								
							
						
					
					
						commit
						07d19baf89
					
				@ -14,6 +14,7 @@ on:
 | 
			
		||||
      - samples/client/others/java/okhttp-gson-oneOf-array/**
 | 
			
		||||
      - samples/client/others/java/resttemplate-useAbstractionForFiles/**
 | 
			
		||||
      - samples/client/others/java/webclient-useAbstractionForFiles/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-useSingleRequestParameter/**
 | 
			
		||||
      - samples/client/others/java/jersey2-oneOf-duplicates/**
 | 
			
		||||
      - samples/client/others/java/jersey2-oneOf-Mixed/**
 | 
			
		||||
      - samples/client/others/java/resttemplate-list-schema-validation/**
 | 
			
		||||
@ -31,6 +32,7 @@ on:
 | 
			
		||||
      - samples/client/others/java/okhttp-gson-oneOf-array/**
 | 
			
		||||
      - samples/client/others/java/resttemplate-useAbstractionForFiles/**
 | 
			
		||||
      - samples/client/others/java/webclient-useAbstractionForFiles/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-useSingleRequestParameter/**
 | 
			
		||||
      - samples/client/others/java/jersey2-oneOf-duplicates/**
 | 
			
		||||
      - samples/client/others/java/jersey2-oneOf-Mixed/**
 | 
			
		||||
      - samples/client/others/java/resttemplate-list-schema-validation/**
 | 
			
		||||
@ -57,6 +59,7 @@ jobs:
 | 
			
		||||
          - samples/client/petstore/java/webclient
 | 
			
		||||
          - samples/client/petstore/java/webclient-nullable-arrays
 | 
			
		||||
          - samples/client/petstore/java/webclient-swagger2
 | 
			
		||||
          - samples/client/petstore/java/webclient-useSingleRequestParameter
 | 
			
		||||
          - samples/client/petstore/java/vertx
 | 
			
		||||
          - samples/client/petstore/java/jersey2-java8-localdatetime
 | 
			
		||||
          - samples/client/petstore/java/google-api-client
 | 
			
		||||
 | 
			
		||||
@ -6,11 +6,13 @@ on:
 | 
			
		||||
      - samples/client/petstore/java/resttemplate-jakarta/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-jakarta/**
 | 
			
		||||
      - samples/client/petstore/java/restclient-*/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-useSingleRequestParameter/**
 | 
			
		||||
  pull_request:
 | 
			
		||||
    paths:
 | 
			
		||||
      - samples/client/petstore/java/resttemplate-jakarta/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-jakarta/**
 | 
			
		||||
      - samples/client/petstore/java/restclient-*/**
 | 
			
		||||
      - samples/client/petstore/java/webclient-useSingleRequestParameter/**
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    name: Build Java Client JDK17
 | 
			
		||||
@ -26,6 +28,7 @@ jobs:
 | 
			
		||||
          - samples/client/petstore/java/restclient-nullable-arrays
 | 
			
		||||
          - samples/client/petstore/java/restclient-swagger2
 | 
			
		||||
          - samples/client/petstore/java/restclient-useSingleRequestParameter
 | 
			
		||||
          - samples/client/petstore/java/webclient-useSingleRequestParameter
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - uses: actions/setup-java@v4
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,9 @@
 | 
			
		||||
generatorName: java
 | 
			
		||||
outputDir: samples/client/petstore/java/webclient-useSingleRequestParameter
 | 
			
		||||
library: webclient
 | 
			
		||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
 | 
			
		||||
templateDir: modules/openapi-generator/src/main/resources/Java
 | 
			
		||||
additionalProperties:
 | 
			
		||||
  artifactId: singleparam-webclient
 | 
			
		||||
  hideGenerationTimestamp: "true"
 | 
			
		||||
  useSingleRequestParameter: true
 | 
			
		||||
@ -100,7 +100,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
			
		||||
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
 | 
			
		||||
|useRxJava2|Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
 | 
			
		||||
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
 | 
			
		||||
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option.| |false|
 | 
			
		||||
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option.| |false|
 | 
			
		||||
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
 | 
			
		||||
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
 | 
			
		||||
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
 | 
			
		||||
 | 
			
		||||
@ -100,7 +100,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
 | 
			
		||||
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
 | 
			
		||||
|useRxJava2|Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
 | 
			
		||||
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
 | 
			
		||||
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option.| |false|
 | 
			
		||||
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option.| |false|
 | 
			
		||||
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
 | 
			
		||||
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
 | 
			
		||||
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
 | 
			
		||||
 | 
			
		||||
@ -237,7 +237,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
 | 
			
		||||
        cliOptions.add(CliOption.newString(CONFIG_KEY_FROM_CLASS_NAME, "If true, set tag as key in @RegisterRestClient. Default to false. Only `microprofile` supports this option."));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP, CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP_DESC + " Only jersey2, jersey3, native, okhttp-gson support this option."));
 | 
			
		||||
        cliOptions.add(CliOption.newString(MICROPROFILE_REST_CLIENT_VERSION, "Version of MicroProfile Rest Client API."));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option."));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option."));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(WEBCLIENT_BLOCKING_OPERATIONS, "Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync", this.webclientBlockingOperations));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(GENERATE_CLIENT_AS_BEAN, "For resttemplate, configure whether to create `ApiClient.java` and Apis clients as bean (with `@Component` annotation).", this.generateClientAsBean));
 | 
			
		||||
        cliOptions.add(CliOption.newBoolean(SUPPORT_URL_QUERY, "Generate toUrlQueryString in POJO (default to true). Available on `native`, `apache-httpclient` libraries."));
 | 
			
		||||
 | 
			
		||||
@ -54,22 +54,6 @@ public class {{classname}} {
 | 
			
		||||
    {{#operation}}
 | 
			
		||||
{{#useSingleRequestParameter}}
 | 
			
		||||
{{#hasParams}}
 | 
			
		||||
{{#hasSingleParam}}
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
{{#allParams}}
 | 
			
		||||
* {{paramName}}
 | 
			
		||||
{{/allParams}}
 | 
			
		||||
*/
 | 
			
		||||
{{/hasSingleParam}}
 | 
			
		||||
{{^hasSingleParam}}
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
{{#allParams}}
 | 
			
		||||
* {{paramName}}
 | 
			
		||||
{{/allParams}}
 | 
			
		||||
*/
 | 
			
		||||
{{/hasSingleParam}}
 | 
			
		||||
{{^hasSingleParam}}
 | 
			
		||||
 | 
			
		||||
    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}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){}
 | 
			
		||||
 | 
			
		||||
@ -53,7 +53,74 @@ public class {{classname}} {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    {{#operation}}
 | 
			
		||||
    {{#operation}}{{#useSingleRequestParameter}}{{#hasParams}}{{^hasSingleParam}}
 | 
			
		||||
    public class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {
 | 
			
		||||
    {{#allParams}}
 | 
			
		||||
        private final {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}};
 | 
			
		||||
    {{/allParams}}
 | 
			
		||||
 | 
			
		||||
        public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) {
 | 
			
		||||
      {{#allParams}}
 | 
			
		||||
          this.{{paramName}} = {{paramName}};
 | 
			
		||||
      {{/allParams}}
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
    {{#allParams}}
 | 
			
		||||
        public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() {
 | 
			
		||||
            return this.{{paramName}};
 | 
			
		||||
        }
 | 
			
		||||
    {{/allParams}}
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
      /**
 | 
			
		||||
      * {{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}}{{/useSingleRequestParameter}}
 | 
			
		||||
    /**
 | 
			
		||||
     * {{summary}}
 | 
			
		||||
     * {{notes}}
 | 
			
		||||
 | 
			
		||||
@ -3210,6 +3210,35 @@ public class JavaClientCodegenTest {
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Test public void testWebClientWithUseSingleRequestParameter_issue_19407() {
 | 
			
		||||
        final Path output = newTempFolder();
 | 
			
		||||
        final CodegenConfigurator configurator = new CodegenConfigurator()
 | 
			
		||||
                .setGeneratorName("java")
 | 
			
		||||
                .setLibrary(JavaClientCodegen.WEBCLIENT)
 | 
			
		||||
                .setAdditionalProperties(Map.of(
 | 
			
		||||
                        CodegenConstants.API_PACKAGE, "xyz.abcdef.api",
 | 
			
		||||
                        CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, true
 | 
			
		||||
                ))
 | 
			
		||||
                .setInputSpec("src/test/resources/3_1/java/petstore.yaml")
 | 
			
		||||
                .setOutputDir(output.toString().replace("\\", "/"));
 | 
			
		||||
 | 
			
		||||
        new DefaultGenerator().opts(configurator.toClientOptInput()).generate();
 | 
			
		||||
 | 
			
		||||
        TestUtils.assertFileContains(
 | 
			
		||||
                output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"),
 | 
			
		||||
                "public class DeletePetRequest {",
 | 
			
		||||
                "DeletePetRequest(Long petId, String apiKey)",
 | 
			
		||||
                "Long petId()",
 | 
			
		||||
                "String apiKey()",
 | 
			
		||||
                "public Mono<Void> deletePet(DeletePetRequest requestParameters) throws WebClientResponseException {",
 | 
			
		||||
                "public Mono<ResponseEntity<Void>> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException {",
 | 
			
		||||
                "public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException {",
 | 
			
		||||
                "public Mono<Void> deletePet(Long petId, String apiKey) throws WebClientResponseException {",
 | 
			
		||||
                "public Mono<ResponseEntity<Void>> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException {",
 | 
			
		||||
                "public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {"
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void testGenerateParameterId() {
 | 
			
		||||
        final Path output = newTempFolder();
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class ResourceApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Response file abstraction
 | 
			
		||||
 | 
			
		||||
@ -44,10 +44,6 @@ public class AnotherFakeApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* client
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * To test special tags
 | 
			
		||||
     * To test special tags and operation ID starting with number
 | 
			
		||||
 | 
			
		||||
@ -186,12 +186,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHealthGetWithResponseSpec() throws RestClientResponseException {
 | 
			
		||||
        return fakeHealthGetRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* pet
 | 
			
		||||
* query1
 | 
			
		||||
* header1
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record FakeHttpSignatureTestRequest(Pet pet, String query1, String header1){}
 | 
			
		||||
 | 
			
		||||
@ -311,10 +305,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws RestClientResponseException {
 | 
			
		||||
        return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* body
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer boolean types
 | 
			
		||||
@ -385,10 +375,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws RestClientResponseException {
 | 
			
		||||
        return fakeOuterBooleanSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* outerComposite
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of object with outer number type
 | 
			
		||||
@ -459,10 +445,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws RestClientResponseException {
 | 
			
		||||
        return fakeOuterCompositeSerializeRequestCreation(outerComposite);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* body
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer number types
 | 
			
		||||
@ -533,10 +515,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws RestClientResponseException {
 | 
			
		||||
        return fakeOuterNumberSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* body
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer string types
 | 
			
		||||
@ -607,10 +585,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws RestClientResponseException {
 | 
			
		||||
        return fakeOuterStringSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* outerObjectWithEnumProperty
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of enum (int) properties with examples
 | 
			
		||||
@ -685,10 +659,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientResponseException {
 | 
			
		||||
        return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* requestBody
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -758,10 +728,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws RestClientResponseException {
 | 
			
		||||
        return testAdditionalPropertiesReferenceRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* body
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body has to be a binary file.
 | 
			
		||||
@ -831,10 +797,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws RestClientResponseException {
 | 
			
		||||
        return testBodyWithBinaryRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* fileSchemaTestClass
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body for this request must reference a schema named `File`.
 | 
			
		||||
@ -904,11 +866,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws RestClientResponseException {
 | 
			
		||||
        return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* query
 | 
			
		||||
* user
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestBodyWithQueryParamsRequest(String query, User user){}
 | 
			
		||||
 | 
			
		||||
@ -1025,10 +982,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws RestClientResponseException {
 | 
			
		||||
        return testBodyWithQueryParamsRequestCreation(query, user);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* client
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
@ -1103,23 +1056,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testClientModelWithResponseSpec(Client client) throws RestClientResponseException {
 | 
			
		||||
        return testClientModelRequestCreation(client);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* number
 | 
			
		||||
* _double
 | 
			
		||||
* patternWithoutDelimiter
 | 
			
		||||
* _byte
 | 
			
		||||
* integer
 | 
			
		||||
* int32
 | 
			
		||||
* int64
 | 
			
		||||
* _float
 | 
			
		||||
* string
 | 
			
		||||
* binary
 | 
			
		||||
* date
 | 
			
		||||
* dateTime
 | 
			
		||||
* password
 | 
			
		||||
* paramCallback
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestEndpointParametersRequest(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback){}
 | 
			
		||||
 | 
			
		||||
@ -1326,18 +1262,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientResponseException {
 | 
			
		||||
        return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* enumHeaderStringArray
 | 
			
		||||
* enumHeaderString
 | 
			
		||||
* enumQueryStringArray
 | 
			
		||||
* enumQueryString
 | 
			
		||||
* enumQueryInteger
 | 
			
		||||
* enumQueryDouble
 | 
			
		||||
* enumQueryModelArray
 | 
			
		||||
* enumFormStringArray
 | 
			
		||||
* enumFormString
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestEnumParametersRequest(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString){}
 | 
			
		||||
 | 
			
		||||
@ -1495,15 +1419,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEnumParametersWithResponseSpec(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientResponseException {
 | 
			
		||||
        return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* requiredStringGroup
 | 
			
		||||
* requiredBooleanGroup
 | 
			
		||||
* requiredInt64Group
 | 
			
		||||
* stringGroup
 | 
			
		||||
* booleanGroup
 | 
			
		||||
* int64Group
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestGroupParametersRequest(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group){}
 | 
			
		||||
 | 
			
		||||
@ -1646,10 +1561,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientResponseException {
 | 
			
		||||
        return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* requestBody
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1719,10 +1630,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws RestClientResponseException {
 | 
			
		||||
        return testInlineAdditionalPropertiesRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* testInlineFreeformAdditionalPropertiesRequest
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline free-form additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1792,11 +1699,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientResponseException {
 | 
			
		||||
        return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* param
 | 
			
		||||
* param2
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestJsonFormDataRequest(String param, String param2){}
 | 
			
		||||
 | 
			
		||||
@ -1916,10 +1818,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws RestClientResponseException {
 | 
			
		||||
        return testJsonFormDataRequestCreation(param, param2);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* childWithNullable
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * test nullable parent property
 | 
			
		||||
     * 
 | 
			
		||||
@ -1989,16 +1887,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws RestClientResponseException {
 | 
			
		||||
        return testNullableRequestCreation(childWithNullable);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* pipe
 | 
			
		||||
* ioutil
 | 
			
		||||
* http
 | 
			
		||||
* url
 | 
			
		||||
* context
 | 
			
		||||
* allowEmpty
 | 
			
		||||
* language
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record TestQueryParameterCollectionFormatRequest(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language){}
 | 
			
		||||
 | 
			
		||||
@ -2155,10 +2043,6 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientResponseException {
 | 
			
		||||
        return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* requestBody
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced string map
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -44,10 +44,6 @@ public class FakeClassnameTags123Api {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* client
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
 | 
			
		||||
@ -47,10 +47,6 @@ public class PetApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* pet
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Add a new pet to the store
 | 
			
		||||
     * 
 | 
			
		||||
@ -124,11 +120,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec addPetWithResponseSpec(Pet pet) throws RestClientResponseException {
 | 
			
		||||
        return addPetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* petId
 | 
			
		||||
* apiKey
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record DeletePetRequest(Long petId, String apiKey){}
 | 
			
		||||
 | 
			
		||||
@ -249,10 +240,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws RestClientResponseException {
 | 
			
		||||
        return deletePetRequestCreation(petId, apiKey);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* status
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by status
 | 
			
		||||
     * Multiple status values can be provided with comma separated strings
 | 
			
		||||
@ -331,10 +318,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByStatusWithResponseSpec(List<String> status) throws RestClientResponseException {
 | 
			
		||||
        return findPetsByStatusRequestCreation(status);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* tags
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by tags
 | 
			
		||||
     * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
 | 
			
		||||
@ -415,10 +398,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws RestClientResponseException {
 | 
			
		||||
        return findPetsByTagsRequestCreation(tags);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* petId
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Find pet by ID
 | 
			
		||||
     * Returns a single pet
 | 
			
		||||
@ -501,10 +480,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws RestClientResponseException {
 | 
			
		||||
        return getPetByIdRequestCreation(petId);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* pet
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Update an existing pet
 | 
			
		||||
     * 
 | 
			
		||||
@ -586,12 +561,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithResponseSpec(Pet pet) throws RestClientResponseException {
 | 
			
		||||
        return updatePetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* petId
 | 
			
		||||
* name
 | 
			
		||||
* status
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record UpdatePetWithFormRequest(Long petId, String name, String status){}
 | 
			
		||||
 | 
			
		||||
@ -720,12 +689,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws RestClientResponseException {
 | 
			
		||||
        return updatePetWithFormRequestCreation(petId, name, status);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* petId
 | 
			
		||||
* additionalMetadata
 | 
			
		||||
* _file
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record UploadFileRequest(Long petId, String additionalMetadata, File _file){}
 | 
			
		||||
 | 
			
		||||
@ -854,12 +817,6 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws RestClientResponseException {
 | 
			
		||||
        return uploadFileRequestCreation(petId, additionalMetadata, _file);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* petId
 | 
			
		||||
* requiredFile
 | 
			
		||||
* additionalMetadata
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record UploadFileWithRequiredFileRequest(Long petId, File requiredFile, String additionalMetadata){}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -44,10 +44,6 @@ public class StoreApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* orderId
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Delete purchase order by ID
 | 
			
		||||
     * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
 | 
			
		||||
@ -185,10 +181,6 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getInventoryWithResponseSpec() throws RestClientResponseException {
 | 
			
		||||
        return getInventoryRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* orderId
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Find purchase order by ID
 | 
			
		||||
     * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
 | 
			
		||||
@ -271,10 +263,6 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws RestClientResponseException {
 | 
			
		||||
        return getOrderByIdRequestCreation(orderId);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* order
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Place an order for a pet
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -45,10 +45,6 @@ public class UserApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* user
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Create user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -118,10 +114,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUserWithResponseSpec(User user) throws RestClientResponseException {
 | 
			
		||||
        return createUserRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* user
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -191,10 +183,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithArrayInputWithResponseSpec(List<User> user) throws RestClientResponseException {
 | 
			
		||||
        return createUsersWithArrayInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* user
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -264,10 +252,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithListInputWithResponseSpec(List<User> user) throws RestClientResponseException {
 | 
			
		||||
        return createUsersWithListInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* username
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Delete user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -341,10 +325,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec deleteUserWithResponseSpec(String username) throws RestClientResponseException {
 | 
			
		||||
        return deleteUserRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
// It has a single param!
 | 
			
		||||
/*
 | 
			
		||||
* username
 | 
			
		||||
*/
 | 
			
		||||
    /**
 | 
			
		||||
     * Get user by user name
 | 
			
		||||
     * 
 | 
			
		||||
@ -427,11 +407,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec getUserByNameWithResponseSpec(String username) throws RestClientResponseException {
 | 
			
		||||
        return getUserByNameRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* username
 | 
			
		||||
* password
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record LoginUserRequest(String username, String password){}
 | 
			
		||||
 | 
			
		||||
@ -620,11 +595,6 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec logoutUserWithResponseSpec() throws RestClientResponseException {
 | 
			
		||||
        return logoutUserRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
// It has NO single param!
 | 
			
		||||
/*
 | 
			
		||||
* username
 | 
			
		||||
* user
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
    public record UpdateUserRequest(String username, User user){}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class AnotherFakeApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * To test special tags
 | 
			
		||||
     * To test special tags and operation ID starting with number
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class DefaultApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,7 @@ public class FakeApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
 | 
			
		||||
@ -124,6 +125,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return fakeBigDecimalMapRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Health check endpoint
 | 
			
		||||
     * 
 | 
			
		||||
@ -188,6 +190,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return fakeHealthGetRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test http signature authentication
 | 
			
		||||
     * 
 | 
			
		||||
@ -270,6 +273,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException {
 | 
			
		||||
        return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer boolean types
 | 
			
		||||
@ -340,6 +344,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterBooleanSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of object with outer number type
 | 
			
		||||
@ -410,6 +415,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterCompositeSerializeRequestCreation(outerComposite);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer number types
 | 
			
		||||
@ -480,6 +486,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterNumberSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer string types
 | 
			
		||||
@ -550,6 +557,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterStringSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of enum (int) properties with examples
 | 
			
		||||
@ -624,6 +632,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
 | 
			
		||||
        return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -693,6 +702,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws WebClientResponseException {
 | 
			
		||||
        return testAdditionalPropertiesReferenceRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body has to be a binary file.
 | 
			
		||||
@ -762,6 +772,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithBinaryRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body for this request must reference a schema named `File`.
 | 
			
		||||
@ -831,6 +842,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * 
 | 
			
		||||
@ -910,6 +922,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithQueryParamsRequestCreation(query, user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
@ -984,6 +997,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException {
 | 
			
		||||
        return testClientModelRequestCreation(client);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
 | 
			
		||||
     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
 | 
			
		||||
@ -1150,6 +1164,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws WebClientResponseException {
 | 
			
		||||
        return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * To test enum parameters
 | 
			
		||||
     * To test enum parameters
 | 
			
		||||
@ -1267,6 +1282,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEnumParametersWithResponseSpec(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws WebClientResponseException {
 | 
			
		||||
        return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Fake endpoint to test group parameters (optional)
 | 
			
		||||
     * Fake endpoint to test group parameters (optional)
 | 
			
		||||
@ -1372,6 +1388,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException {
 | 
			
		||||
        return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1441,6 +1458,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws WebClientResponseException {
 | 
			
		||||
        return testInlineAdditionalPropertiesRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline free-form additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1510,6 +1528,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException {
 | 
			
		||||
        return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test json serialization of form data
 | 
			
		||||
     * 
 | 
			
		||||
@ -1592,6 +1611,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException {
 | 
			
		||||
        return testJsonFormDataRequestCreation(param, param2);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test nullable parent property
 | 
			
		||||
     * 
 | 
			
		||||
@ -1661,6 +1681,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException {
 | 
			
		||||
        return testNullableRequestCreation(childWithNullable);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * To test the collection format in query parameters
 | 
			
		||||
@ -1780,6 +1801,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws WebClientResponseException {
 | 
			
		||||
        return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced string map
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class FakeClassnameTags123Api {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
 | 
			
		||||
@ -49,6 +49,7 @@ public class PetApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Add a new pet to the store
 | 
			
		||||
     * 
 | 
			
		||||
@ -122,6 +123,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException {
 | 
			
		||||
        return addPetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Deletes a pet
 | 
			
		||||
     * 
 | 
			
		||||
@ -202,6 +204,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {
 | 
			
		||||
        return deletePetRequestCreation(petId, apiKey);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by status
 | 
			
		||||
     * Multiple status values can be provided with comma separated strings
 | 
			
		||||
@ -280,6 +283,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByStatusWithResponseSpec(List<String> status) throws WebClientResponseException {
 | 
			
		||||
        return findPetsByStatusRequestCreation(status);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by tags
 | 
			
		||||
     * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
 | 
			
		||||
@ -360,6 +364,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws WebClientResponseException {
 | 
			
		||||
        return findPetsByTagsRequestCreation(tags);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Find pet by ID
 | 
			
		||||
     * Returns a single pet
 | 
			
		||||
@ -442,6 +447,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException {
 | 
			
		||||
        return getPetByIdRequestCreation(petId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Update an existing pet
 | 
			
		||||
     * 
 | 
			
		||||
@ -523,6 +529,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException {
 | 
			
		||||
        return updatePetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Updates a pet in the store with form data
 | 
			
		||||
     * 
 | 
			
		||||
@ -611,6 +618,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException {
 | 
			
		||||
        return updatePetWithFormRequestCreation(petId, name, status);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * uploads an image
 | 
			
		||||
     * 
 | 
			
		||||
@ -700,6 +708,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException {
 | 
			
		||||
        return uploadFileRequestCreation(petId, additionalMetadata, _file);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * uploads an image (required)
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ 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
 | 
			
		||||
@ -119,6 +120,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException {
 | 
			
		||||
        return deleteOrderRequestCreation(orderId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns pet inventories by status
 | 
			
		||||
     * Returns a map of status codes to quantities
 | 
			
		||||
@ -183,6 +185,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return getInventoryRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Find purchase order by ID
 | 
			
		||||
     * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
 | 
			
		||||
@ -265,6 +268,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException {
 | 
			
		||||
        return getOrderByIdRequestCreation(orderId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Place an order for a pet
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -47,6 +47,7 @@ public class UserApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Create user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -116,6 +117,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException {
 | 
			
		||||
        return createUserRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -185,6 +187,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithArrayInputWithResponseSpec(List<User> user) throws WebClientResponseException {
 | 
			
		||||
        return createUsersWithArrayInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -254,6 +257,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithListInputWithResponseSpec(List<User> user) throws WebClientResponseException {
 | 
			
		||||
        return createUsersWithListInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Delete user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -327,6 +331,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException {
 | 
			
		||||
        return deleteUserRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get user by user name
 | 
			
		||||
     * 
 | 
			
		||||
@ -409,6 +414,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException {
 | 
			
		||||
        return getUserByNameRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Logs user into the system
 | 
			
		||||
     * 
 | 
			
		||||
@ -496,6 +502,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException {
 | 
			
		||||
        return loginUserRequestCreation(username, password);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Logs out current logged in user session
 | 
			
		||||
     * 
 | 
			
		||||
@ -555,6 +562,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return logoutUserRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Updated user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class DefaultApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class AnotherFakeApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * To test special tags
 | 
			
		||||
     * To test special tags and operation ID starting with number
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class DefaultApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -60,6 +60,7 @@ public class FakeApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
 | 
			
		||||
@ -124,6 +125,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeBigDecimalMapWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return fakeBigDecimalMapRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Health check endpoint
 | 
			
		||||
     * 
 | 
			
		||||
@ -188,6 +190,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHealthGetWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return fakeHealthGetRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test http signature authentication
 | 
			
		||||
     * 
 | 
			
		||||
@ -270,6 +273,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeHttpSignatureTestWithResponseSpec(Pet pet, String query1, String header1) throws WebClientResponseException {
 | 
			
		||||
        return fakeHttpSignatureTestRequestCreation(pet, query1, header1);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer boolean types
 | 
			
		||||
@ -340,6 +344,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterBooleanSerializeWithResponseSpec(Boolean body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterBooleanSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of object with outer number type
 | 
			
		||||
@ -410,6 +415,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterCompositeSerializeWithResponseSpec(OuterComposite outerComposite) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterCompositeSerializeRequestCreation(outerComposite);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer number types
 | 
			
		||||
@ -480,6 +486,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(BigDecimal body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterNumberSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of outer string types
 | 
			
		||||
@ -550,6 +557,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakeOuterStringSerializeWithResponseSpec(String body) throws WebClientResponseException {
 | 
			
		||||
        return fakeOuterStringSerializeRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * Test serialization of enum (int) properties with examples
 | 
			
		||||
@ -624,6 +632,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec fakePropertyEnumIntegerSerializeWithResponseSpec(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws WebClientResponseException {
 | 
			
		||||
        return fakePropertyEnumIntegerSerializeRequestCreation(outerObjectWithEnumProperty);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -693,6 +702,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testAdditionalPropertiesReferenceWithResponseSpec(Map<String, Object> requestBody) throws WebClientResponseException {
 | 
			
		||||
        return testAdditionalPropertiesReferenceRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body has to be a binary file.
 | 
			
		||||
@ -762,6 +772,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithBinaryWithResponseSpec(File body) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithBinaryRequestCreation(body);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * For this test, the body for this request must reference a schema named `File`.
 | 
			
		||||
@ -831,6 +842,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithFileSchemaWithResponseSpec(FileSchemaTestClass fileSchemaTestClass) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithFileSchemaRequestCreation(fileSchemaTestClass);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * 
 | 
			
		||||
@ -910,6 +922,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testBodyWithQueryParamsWithResponseSpec(String query, User user) throws WebClientResponseException {
 | 
			
		||||
        return testBodyWithQueryParamsRequestCreation(query, user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
     * To test \"client\" model
 | 
			
		||||
@ -984,6 +997,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testClientModelWithResponseSpec(Client client) throws WebClientResponseException {
 | 
			
		||||
        return testClientModelRequestCreation(client);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
 | 
			
		||||
     * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
 | 
			
		||||
@ -1150,6 +1164,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEndpointParametersWithResponseSpec(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws WebClientResponseException {
 | 
			
		||||
        return testEndpointParametersRequestCreation(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * To test enum parameters
 | 
			
		||||
     * To test enum parameters
 | 
			
		||||
@ -1267,6 +1282,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testEnumParametersWithResponseSpec(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws WebClientResponseException {
 | 
			
		||||
        return testEnumParametersRequestCreation(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Fake endpoint to test group parameters (optional)
 | 
			
		||||
     * Fake endpoint to test group parameters (optional)
 | 
			
		||||
@ -1372,6 +1388,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testGroupParametersWithResponseSpec(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws WebClientResponseException {
 | 
			
		||||
        return testGroupParametersRequestCreation(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1441,6 +1458,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineAdditionalPropertiesWithResponseSpec(Map<String, String> requestBody) throws WebClientResponseException {
 | 
			
		||||
        return testInlineAdditionalPropertiesRequestCreation(requestBody);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test inline free-form additionalProperties
 | 
			
		||||
     * 
 | 
			
		||||
@ -1510,6 +1528,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testInlineFreeformAdditionalPropertiesWithResponseSpec(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws WebClientResponseException {
 | 
			
		||||
        return testInlineFreeformAdditionalPropertiesRequestCreation(testInlineFreeformAdditionalPropertiesRequest);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test json serialization of form data
 | 
			
		||||
     * 
 | 
			
		||||
@ -1592,6 +1611,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testJsonFormDataWithResponseSpec(String param, String param2) throws WebClientResponseException {
 | 
			
		||||
        return testJsonFormDataRequestCreation(param, param2);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test nullable parent property
 | 
			
		||||
     * 
 | 
			
		||||
@ -1661,6 +1681,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testNullableWithResponseSpec(ChildWithNullable childWithNullable) throws WebClientResponseException {
 | 
			
		||||
        return testNullableRequestCreation(childWithNullable);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * To test the collection format in query parameters
 | 
			
		||||
@ -1780,6 +1801,7 @@ public class FakeApi {
 | 
			
		||||
    public ResponseSpec testQueryParameterCollectionFormatWithResponseSpec(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws WebClientResponseException {
 | 
			
		||||
        return testQueryParameterCollectionFormatRequestCreation(pipe, ioutil, http, url, context, allowEmpty, language);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * test referenced string map
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ public class FakeClassnameTags123Api {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
     * To test class name in snake case
 | 
			
		||||
 | 
			
		||||
@ -49,6 +49,7 @@ public class PetApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Add a new pet to the store
 | 
			
		||||
     * 
 | 
			
		||||
@ -122,6 +123,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec addPetWithResponseSpec(Pet pet) throws WebClientResponseException {
 | 
			
		||||
        return addPetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Deletes a pet
 | 
			
		||||
     * 
 | 
			
		||||
@ -202,6 +204,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {
 | 
			
		||||
        return deletePetRequestCreation(petId, apiKey);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by status
 | 
			
		||||
     * Multiple status values can be provided with comma separated strings
 | 
			
		||||
@ -280,6 +283,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByStatusWithResponseSpec(List<String> status) throws WebClientResponseException {
 | 
			
		||||
        return findPetsByStatusRequestCreation(status);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds Pets by tags
 | 
			
		||||
     * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
 | 
			
		||||
@ -360,6 +364,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec findPetsByTagsWithResponseSpec(Set<String> tags) throws WebClientResponseException {
 | 
			
		||||
        return findPetsByTagsRequestCreation(tags);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Find pet by ID
 | 
			
		||||
     * Returns a single pet
 | 
			
		||||
@ -442,6 +447,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec getPetByIdWithResponseSpec(Long petId) throws WebClientResponseException {
 | 
			
		||||
        return getPetByIdRequestCreation(petId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Update an existing pet
 | 
			
		||||
     * 
 | 
			
		||||
@ -523,6 +529,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithResponseSpec(Pet pet) throws WebClientResponseException {
 | 
			
		||||
        return updatePetRequestCreation(pet);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Updates a pet in the store with form data
 | 
			
		||||
     * 
 | 
			
		||||
@ -611,6 +618,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec updatePetWithFormWithResponseSpec(Long petId, String name, String status) throws WebClientResponseException {
 | 
			
		||||
        return updatePetWithFormRequestCreation(petId, name, status);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * uploads an image
 | 
			
		||||
     * 
 | 
			
		||||
@ -700,6 +708,7 @@ public class PetApi {
 | 
			
		||||
    public ResponseSpec uploadFileWithResponseSpec(Long petId, String additionalMetadata, File _file) throws WebClientResponseException {
 | 
			
		||||
        return uploadFileRequestCreation(petId, additionalMetadata, _file);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * uploads an image (required)
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ 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
 | 
			
		||||
@ -119,6 +120,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec deleteOrderWithResponseSpec(String orderId) throws WebClientResponseException {
 | 
			
		||||
        return deleteOrderRequestCreation(orderId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns pet inventories by status
 | 
			
		||||
     * Returns a map of status codes to quantities
 | 
			
		||||
@ -183,6 +185,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getInventoryWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return getInventoryRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Find purchase order by ID
 | 
			
		||||
     * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
 | 
			
		||||
@ -265,6 +268,7 @@ public class StoreApi {
 | 
			
		||||
    public ResponseSpec getOrderByIdWithResponseSpec(Long orderId) throws WebClientResponseException {
 | 
			
		||||
        return getOrderByIdRequestCreation(orderId);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Place an order for a pet
 | 
			
		||||
     * 
 | 
			
		||||
 | 
			
		||||
@ -47,6 +47,7 @@ public class UserApi {
 | 
			
		||||
        this.apiClient = apiClient;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * Create user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -116,6 +117,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUserWithResponseSpec(User user) throws WebClientResponseException {
 | 
			
		||||
        return createUserRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -185,6 +187,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithArrayInputWithResponseSpec(List<User> user) throws WebClientResponseException {
 | 
			
		||||
        return createUsersWithArrayInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates list of users with given input array
 | 
			
		||||
     * 
 | 
			
		||||
@ -254,6 +257,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec createUsersWithListInputWithResponseSpec(List<User> user) throws WebClientResponseException {
 | 
			
		||||
        return createUsersWithListInputRequestCreation(user);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Delete user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
@ -327,6 +331,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec deleteUserWithResponseSpec(String username) throws WebClientResponseException {
 | 
			
		||||
        return deleteUserRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get user by user name
 | 
			
		||||
     * 
 | 
			
		||||
@ -409,6 +414,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec getUserByNameWithResponseSpec(String username) throws WebClientResponseException {
 | 
			
		||||
        return getUserByNameRequestCreation(username);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Logs user into the system
 | 
			
		||||
     * 
 | 
			
		||||
@ -496,6 +502,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec loginUserWithResponseSpec(String username, String password) throws WebClientResponseException {
 | 
			
		||||
        return loginUserRequestCreation(username, password);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Logs out current logged in user session
 | 
			
		||||
     * 
 | 
			
		||||
@ -555,6 +562,7 @@ public class UserApi {
 | 
			
		||||
    public ResponseSpec logoutUserWithResponseSpec() throws WebClientResponseException {
 | 
			
		||||
        return logoutUserRequestCreation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Updated user
 | 
			
		||||
     * This can only be done by the logged in user.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										30
									
								
								samples/client/petstore/java/webclient-useSingleRequestParameter/.github/workflows/maven.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								samples/client/petstore/java/webclient-useSingleRequestParameter/.github/workflows/maven.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
 | 
			
		||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
 | 
			
		||||
#
 | 
			
		||||
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
 | 
			
		||||
 | 
			
		||||
name: Java CI with Maven
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ main, master ]
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: [ main, master ]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    name: Build OpenAPI Petstore
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        java: [ 17, 21 ]
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v4
 | 
			
		||||
    - name: Set up JDK
 | 
			
		||||
      uses: actions/setup-java@v4
 | 
			
		||||
      with:
 | 
			
		||||
        java-version: ${{ matrix.java }}
 | 
			
		||||
        distribution: 'temurin'
 | 
			
		||||
        cache: maven
 | 
			
		||||
    - name: Build with Maven
 | 
			
		||||
      run: mvn -B package --no-transfer-progress --file pom.xml
 | 
			
		||||
							
								
								
									
										21
									
								
								samples/client/petstore/java/webclient-useSingleRequestParameter/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								samples/client/petstore/java/webclient-useSingleRequestParameter/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,21 @@
 | 
			
		||||
*.class
 | 
			
		||||
 | 
			
		||||
# Mobile Tools for Java (J2ME)
 | 
			
		||||
.mtj.tmp/
 | 
			
		||||
 | 
			
		||||
# Package Files #
 | 
			
		||||
*.jar
 | 
			
		||||
*.war
 | 
			
		||||
*.ear
 | 
			
		||||
 | 
			
		||||
# exclude jar for gradle wrapper
 | 
			
		||||
!gradle/wrapper/*.jar
 | 
			
		||||
 | 
			
		||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
 | 
			
		||||
hs_err_pid*
 | 
			
		||||
 | 
			
		||||
# build files
 | 
			
		||||
**/target
 | 
			
		||||
target
 | 
			
		||||
.gradle
 | 
			
		||||
build
 | 
			
		||||
@ -0,0 +1,23 @@
 | 
			
		||||
# OpenAPI Generator Ignore
 | 
			
		||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
 | 
			
		||||
 | 
			
		||||
# Use this file to prevent files from being overwritten by the generator.
 | 
			
		||||
# The patterns follow closely to .gitignore or .dockerignore.
 | 
			
		||||
 | 
			
		||||
# As an example, the C# client generator defines ApiClient.cs.
 | 
			
		||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
 | 
			
		||||
#ApiClient.cs
 | 
			
		||||
 | 
			
		||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
 | 
			
		||||
#foo/*/qux
 | 
			
		||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
 | 
			
		||||
 | 
			
		||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
 | 
			
		||||
#foo/**/qux
 | 
			
		||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
 | 
			
		||||
 | 
			
		||||
# You can also negate patterns with an exclamation (!).
 | 
			
		||||
# For example, you can ignore all files in a docs folder with the file extension .md:
 | 
			
		||||
#docs/*.md
 | 
			
		||||
# Then explicitly reverse the ignore rule for a single file:
 | 
			
		||||
#!docs/README.md
 | 
			
		||||
@ -0,0 +1,142 @@
 | 
			
		||||
.github/workflows/maven.yml
 | 
			
		||||
.gitignore
 | 
			
		||||
.travis.yml
 | 
			
		||||
README.md
 | 
			
		||||
api/openapi.yaml
 | 
			
		||||
build.gradle
 | 
			
		||||
build.sbt
 | 
			
		||||
docs/AdditionalPropertiesClass.md
 | 
			
		||||
docs/AllOfWithSingleRef.md
 | 
			
		||||
docs/Animal.md
 | 
			
		||||
docs/AnotherFakeApi.md
 | 
			
		||||
docs/ArrayOfArrayOfNumberOnly.md
 | 
			
		||||
docs/ArrayOfNumberOnly.md
 | 
			
		||||
docs/ArrayTest.md
 | 
			
		||||
docs/Capitalization.md
 | 
			
		||||
docs/Cat.md
 | 
			
		||||
docs/Category.md
 | 
			
		||||
docs/ChildWithNullable.md
 | 
			
		||||
docs/ClassModel.md
 | 
			
		||||
docs/Client.md
 | 
			
		||||
docs/DefaultApi.md
 | 
			
		||||
docs/DeprecatedObject.md
 | 
			
		||||
docs/Dog.md
 | 
			
		||||
docs/EnumArrays.md
 | 
			
		||||
docs/EnumClass.md
 | 
			
		||||
docs/EnumTest.md
 | 
			
		||||
docs/FakeApi.md
 | 
			
		||||
docs/FakeBigDecimalMap200Response.md
 | 
			
		||||
docs/FakeClassnameTags123Api.md
 | 
			
		||||
docs/FileSchemaTestClass.md
 | 
			
		||||
docs/Foo.md
 | 
			
		||||
docs/FooGetDefaultResponse.md
 | 
			
		||||
docs/FormatTest.md
 | 
			
		||||
docs/HasOnlyReadOnly.md
 | 
			
		||||
docs/HealthCheckResult.md
 | 
			
		||||
docs/MapTest.md
 | 
			
		||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
 | 
			
		||||
docs/Model200Response.md
 | 
			
		||||
docs/ModelApiResponse.md
 | 
			
		||||
docs/ModelFile.md
 | 
			
		||||
docs/ModelList.md
 | 
			
		||||
docs/ModelReturn.md
 | 
			
		||||
docs/Name.md
 | 
			
		||||
docs/NullableClass.md
 | 
			
		||||
docs/NumberOnly.md
 | 
			
		||||
docs/ObjectWithDeprecatedFields.md
 | 
			
		||||
docs/Order.md
 | 
			
		||||
docs/OuterComposite.md
 | 
			
		||||
docs/OuterEnum.md
 | 
			
		||||
docs/OuterEnumDefaultValue.md
 | 
			
		||||
docs/OuterEnumInteger.md
 | 
			
		||||
docs/OuterEnumIntegerDefaultValue.md
 | 
			
		||||
docs/OuterObjectWithEnumProperty.md
 | 
			
		||||
docs/ParentWithNullable.md
 | 
			
		||||
docs/Pet.md
 | 
			
		||||
docs/PetApi.md
 | 
			
		||||
docs/ReadOnlyFirst.md
 | 
			
		||||
docs/SingleRefType.md
 | 
			
		||||
docs/SpecialModelName.md
 | 
			
		||||
docs/StoreApi.md
 | 
			
		||||
docs/Tag.md
 | 
			
		||||
docs/TestInlineFreeformAdditionalPropertiesRequest.md
 | 
			
		||||
docs/User.md
 | 
			
		||||
docs/UserApi.md
 | 
			
		||||
git_push.sh
 | 
			
		||||
gradle.properties
 | 
			
		||||
gradle/wrapper/gradle-wrapper.jar
 | 
			
		||||
gradle/wrapper/gradle-wrapper.properties
 | 
			
		||||
gradlew
 | 
			
		||||
gradlew.bat
 | 
			
		||||
pom.xml
 | 
			
		||||
settings.gradle
 | 
			
		||||
src/main/AndroidManifest.xml
 | 
			
		||||
src/main/java/org/openapitools/client/ApiClient.java
 | 
			
		||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
 | 
			
		||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
 | 
			
		||||
src/main/java/org/openapitools/client/ServerConfiguration.java
 | 
			
		||||
src/main/java/org/openapitools/client/ServerVariable.java
 | 
			
		||||
src/main/java/org/openapitools/client/StringUtil.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/DefaultApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/FakeApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/PetApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/StoreApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/api/UserApi.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/ApiKeyAuth.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/Authentication.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/HttpBasicAuth.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/HttpBearerAuth.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/OAuth.java
 | 
			
		||||
src/main/java/org/openapitools/client/auth/OAuthFlow.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Animal.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ArrayTest.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Capitalization.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Cat.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Category.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ChildWithNullable.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ClassModel.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Client.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/DeprecatedObject.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Dog.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/EnumArrays.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/EnumClass.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/EnumTest.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Foo.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/FormatTest.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/HealthCheckResult.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/MapTest.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Model200Response.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ModelApiResponse.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ModelFile.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ModelList.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ModelReturn.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Name.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/NullableClass.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/NumberOnly.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Order.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterComposite.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterEnum.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterEnumInteger.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ParentWithNullable.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Pet.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/SingleRefType.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/SpecialModelName.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/Tag.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java
 | 
			
		||||
src/main/java/org/openapitools/client/model/User.java
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
7.11.0-SNAPSHOT
 | 
			
		||||
@ -0,0 +1,22 @@
 | 
			
		||||
#
 | 
			
		||||
# Generated by OpenAPI Generator: https://openapi-generator.tech
 | 
			
		||||
#
 | 
			
		||||
# Ref: https://docs.travis-ci.com/user/languages/java/
 | 
			
		||||
#
 | 
			
		||||
language: java
 | 
			
		||||
jdk:
 | 
			
		||||
  - openjdk12
 | 
			
		||||
  - openjdk11
 | 
			
		||||
  - openjdk10
 | 
			
		||||
  - openjdk9
 | 
			
		||||
  - openjdk8
 | 
			
		||||
before_install:
 | 
			
		||||
  # ensure gradlew has proper permission
 | 
			
		||||
  - chmod a+x ./gradlew
 | 
			
		||||
script:
 | 
			
		||||
  # test using maven
 | 
			
		||||
  #- mvn test
 | 
			
		||||
  # test using gradle
 | 
			
		||||
  - gradle test
 | 
			
		||||
  # test using sbt
 | 
			
		||||
  # - sbt test
 | 
			
		||||
@ -0,0 +1,278 @@
 | 
			
		||||
# singleparam-webclient
 | 
			
		||||
 | 
			
		||||
OpenAPI Petstore
 | 
			
		||||
 | 
			
		||||
- API version: 1.0.0
 | 
			
		||||
 | 
			
		||||
- Generator version: 7.11.0-SNAPSHOT
 | 
			
		||||
 | 
			
		||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
 | 
			
		||||
 | 
			
		||||
## Requirements
 | 
			
		||||
 | 
			
		||||
Building the API client library requires:
 | 
			
		||||
 | 
			
		||||
1. Java 1.8+
 | 
			
		||||
2. Maven/Gradle
 | 
			
		||||
 | 
			
		||||
## Installation
 | 
			
		||||
 | 
			
		||||
To install the API client library to your local Maven repository, simply execute:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
mvn clean install
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
mvn clean deploy
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.
 | 
			
		||||
 | 
			
		||||
### Maven users
 | 
			
		||||
 | 
			
		||||
Add this dependency to your project's POM:
 | 
			
		||||
 | 
			
		||||
```xml
 | 
			
		||||
<dependency>
 | 
			
		||||
  <groupId>org.openapitools</groupId>
 | 
			
		||||
  <artifactId>singleparam-webclient</artifactId>
 | 
			
		||||
  <version>1.0.0</version>
 | 
			
		||||
  <scope>compile</scope>
 | 
			
		||||
</dependency>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Gradle users
 | 
			
		||||
 | 
			
		||||
Add this dependency to your project's build file:
 | 
			
		||||
 | 
			
		||||
```groovy
 | 
			
		||||
  repositories {
 | 
			
		||||
    mavenCentral()     // Needed if the 'singleparam-webclient' jar has been published to maven central.
 | 
			
		||||
    mavenLocal()       // Needed if the 'singleparam-webclient' jar has been published to the local maven repo.
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  dependencies {
 | 
			
		||||
     implementation "org.openapitools:singleparam-webclient:1.0.0"
 | 
			
		||||
  }
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Others
 | 
			
		||||
 | 
			
		||||
At first generate the JAR by executing:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
mvn clean package
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then manually install the following JARs:
 | 
			
		||||
 | 
			
		||||
- `target/singleparam-webclient-1.0.0.jar`
 | 
			
		||||
- `target/lib/*.jar`
 | 
			
		||||
 | 
			
		||||
## Getting Started
 | 
			
		||||
 | 
			
		||||
Please follow the [installation](#installation) instruction and execute the following Java code:
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
 | 
			
		||||
import org.openapitools.client.*;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.model.*;
 | 
			
		||||
import org.openapitools.client.api.AnotherFakeApi;
 | 
			
		||||
 | 
			
		||||
public class AnotherFakeApiExample {
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
 | 
			
		||||
        Client client = new Client(); // Client | client model
 | 
			
		||||
        try {
 | 
			
		||||
            Client result = apiInstance.call123testSpecialTags(client);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Documentation for API Endpoints
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
Class | Method | HTTP request | Description
 | 
			
		||||
------------ | ------------- | ------------- | -------------
 | 
			
		||||
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
 | 
			
		||||
*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo | 
 | 
			
		||||
*FakeApi* | [**fakeBigDecimalMap**](docs/FakeApi.md#fakeBigDecimalMap) | **GET** /fake/BigDecimalMap | 
 | 
			
		||||
*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
 | 
			
		||||
*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
 | 
			
		||||
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | 
 | 
			
		||||
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | 
 | 
			
		||||
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | 
 | 
			
		||||
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | 
 | 
			
		||||
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](docs/FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int | 
 | 
			
		||||
*FakeApi* | [**testAdditionalPropertiesReference**](docs/FakeApi.md#testAdditionalPropertiesReference) | **POST** /fake/additionalProperties-reference | test referenced additionalProperties
 | 
			
		||||
*FakeApi* | [**testBodyWithBinary**](docs/FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary | 
 | 
			
		||||
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | 
 | 
			
		||||
*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | 
 | 
			
		||||
*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
 | 
			
		||||
*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 
 | 
			
		||||
*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
 | 
			
		||||
*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
 | 
			
		||||
*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
 | 
			
		||||
*FakeApi* | [**testInlineFreeformAdditionalProperties**](docs/FakeApi.md#testInlineFreeformAdditionalProperties) | **POST** /fake/inline-freeform-additionalProperties | test inline free-form additionalProperties
 | 
			
		||||
*FakeApi* | [**testJsonFormData**](docs/FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
 | 
			
		||||
*FakeApi* | [**testNullable**](docs/FakeApi.md#testNullable) | **POST** /fake/nullable | test nullable parent property
 | 
			
		||||
*FakeApi* | [**testQueryParameterCollectionFormat**](docs/FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters | 
 | 
			
		||||
*FakeApi* | [**testStringMapReference**](docs/FakeApi.md#testStringMapReference) | **POST** /fake/stringMap-reference | test referenced string map
 | 
			
		||||
*FakeClassnameTags123Api* | [**testClassname**](docs/FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
 | 
			
		||||
*PetApi* | [**addPet**](docs/PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
 | 
			
		||||
*PetApi* | [**deletePet**](docs/PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
 | 
			
		||||
*PetApi* | [**findPetsByStatus**](docs/PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
 | 
			
		||||
*PetApi* | [**findPetsByTags**](docs/PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
 | 
			
		||||
*PetApi* | [**getPetById**](docs/PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
 | 
			
		||||
*PetApi* | [**updatePet**](docs/PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
 | 
			
		||||
*PetApi* | [**updatePetWithForm**](docs/PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
 | 
			
		||||
*PetApi* | [**uploadFile**](docs/PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
 | 
			
		||||
*PetApi* | [**uploadFileWithRequiredFile**](docs/PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
 | 
			
		||||
*StoreApi* | [**deleteOrder**](docs/StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
 | 
			
		||||
*StoreApi* | [**getInventory**](docs/StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
 | 
			
		||||
*StoreApi* | [**getOrderById**](docs/StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
 | 
			
		||||
*StoreApi* | [**placeOrder**](docs/StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
 | 
			
		||||
*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create user
 | 
			
		||||
*UserApi* | [**createUsersWithArrayInput**](docs/UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
 | 
			
		||||
*UserApi* | [**createUsersWithListInput**](docs/UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
 | 
			
		||||
*UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
 | 
			
		||||
*UserApi* | [**getUserByName**](docs/UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
 | 
			
		||||
*UserApi* | [**loginUser**](docs/UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
 | 
			
		||||
*UserApi* | [**logoutUser**](docs/UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
 | 
			
		||||
*UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Documentation for Models
 | 
			
		||||
 | 
			
		||||
 - [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
 | 
			
		||||
 - [AllOfWithSingleRef](docs/AllOfWithSingleRef.md)
 | 
			
		||||
 - [Animal](docs/Animal.md)
 | 
			
		||||
 - [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
 | 
			
		||||
 - [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
 | 
			
		||||
 - [ArrayTest](docs/ArrayTest.md)
 | 
			
		||||
 - [Capitalization](docs/Capitalization.md)
 | 
			
		||||
 - [Cat](docs/Cat.md)
 | 
			
		||||
 - [Category](docs/Category.md)
 | 
			
		||||
 - [ChildWithNullable](docs/ChildWithNullable.md)
 | 
			
		||||
 - [ClassModel](docs/ClassModel.md)
 | 
			
		||||
 - [Client](docs/Client.md)
 | 
			
		||||
 - [DeprecatedObject](docs/DeprecatedObject.md)
 | 
			
		||||
 - [Dog](docs/Dog.md)
 | 
			
		||||
 - [EnumArrays](docs/EnumArrays.md)
 | 
			
		||||
 - [EnumClass](docs/EnumClass.md)
 | 
			
		||||
 - [EnumTest](docs/EnumTest.md)
 | 
			
		||||
 - [FakeBigDecimalMap200Response](docs/FakeBigDecimalMap200Response.md)
 | 
			
		||||
 - [FileSchemaTestClass](docs/FileSchemaTestClass.md)
 | 
			
		||||
 - [Foo](docs/Foo.md)
 | 
			
		||||
 - [FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
 | 
			
		||||
 - [FormatTest](docs/FormatTest.md)
 | 
			
		||||
 - [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
 | 
			
		||||
 - [HealthCheckResult](docs/HealthCheckResult.md)
 | 
			
		||||
 - [MapTest](docs/MapTest.md)
 | 
			
		||||
 - [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
 | 
			
		||||
 - [Model200Response](docs/Model200Response.md)
 | 
			
		||||
 - [ModelApiResponse](docs/ModelApiResponse.md)
 | 
			
		||||
 - [ModelFile](docs/ModelFile.md)
 | 
			
		||||
 - [ModelList](docs/ModelList.md)
 | 
			
		||||
 - [ModelReturn](docs/ModelReturn.md)
 | 
			
		||||
 - [Name](docs/Name.md)
 | 
			
		||||
 - [NullableClass](docs/NullableClass.md)
 | 
			
		||||
 - [NumberOnly](docs/NumberOnly.md)
 | 
			
		||||
 - [ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
 | 
			
		||||
 - [Order](docs/Order.md)
 | 
			
		||||
 - [OuterComposite](docs/OuterComposite.md)
 | 
			
		||||
 - [OuterEnum](docs/OuterEnum.md)
 | 
			
		||||
 - [OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
 | 
			
		||||
 - [OuterEnumInteger](docs/OuterEnumInteger.md)
 | 
			
		||||
 - [OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
 | 
			
		||||
 - [OuterObjectWithEnumProperty](docs/OuterObjectWithEnumProperty.md)
 | 
			
		||||
 - [ParentWithNullable](docs/ParentWithNullable.md)
 | 
			
		||||
 - [Pet](docs/Pet.md)
 | 
			
		||||
 - [ReadOnlyFirst](docs/ReadOnlyFirst.md)
 | 
			
		||||
 - [SingleRefType](docs/SingleRefType.md)
 | 
			
		||||
 - [SpecialModelName](docs/SpecialModelName.md)
 | 
			
		||||
 - [Tag](docs/Tag.md)
 | 
			
		||||
 - [TestInlineFreeformAdditionalPropertiesRequest](docs/TestInlineFreeformAdditionalPropertiesRequest.md)
 | 
			
		||||
 - [User](docs/User.md)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<a id="documentation-for-authorization"></a>
 | 
			
		||||
## Documentation for Authorization
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Authentication schemes defined for the API:
 | 
			
		||||
<a id="petstore_auth"></a>
 | 
			
		||||
### petstore_auth
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: OAuth
 | 
			
		||||
- **Flow**: implicit
 | 
			
		||||
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
 | 
			
		||||
- **Scopes**: 
 | 
			
		||||
  - write:pets: modify pets in your account
 | 
			
		||||
  - read:pets: read your pets
 | 
			
		||||
 | 
			
		||||
<a id="api_key"></a>
 | 
			
		||||
### api_key
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: API key
 | 
			
		||||
- **API key parameter name**: api_key
 | 
			
		||||
- **Location**: HTTP header
 | 
			
		||||
 | 
			
		||||
<a id="api_key_query"></a>
 | 
			
		||||
### api_key_query
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: API key
 | 
			
		||||
- **API key parameter name**: api_key_query
 | 
			
		||||
- **Location**: URL query string
 | 
			
		||||
 | 
			
		||||
<a id="http_basic_test"></a>
 | 
			
		||||
### http_basic_test
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: HTTP basic authentication
 | 
			
		||||
 | 
			
		||||
<a id="bearer_test"></a>
 | 
			
		||||
### bearer_test
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: HTTP Bearer Token authentication (JWT)
 | 
			
		||||
 | 
			
		||||
<a id="http_signature_test"></a>
 | 
			
		||||
### http_signature_test
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- **Type**: HTTP signature authentication
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Recommendation
 | 
			
		||||
 | 
			
		||||
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
 | 
			
		||||
 | 
			
		||||
## Author
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -0,0 +1,139 @@
 | 
			
		||||
apply plugin: 'idea'
 | 
			
		||||
apply plugin: 'eclipse'
 | 
			
		||||
 | 
			
		||||
group = 'org.openapitools'
 | 
			
		||||
version = '1.0.0'
 | 
			
		||||
 | 
			
		||||
buildscript {
 | 
			
		||||
    repositories {
 | 
			
		||||
        mavenCentral()
 | 
			
		||||
    }
 | 
			
		||||
    dependencies {
 | 
			
		||||
        classpath 'com.android.tools.build:gradle:2.3.+'
 | 
			
		||||
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
repositories {
 | 
			
		||||
    mavenCentral()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if(hasProperty('target') && target == 'android') {
 | 
			
		||||
 | 
			
		||||
    apply plugin: 'com.android.library'
 | 
			
		||||
    apply plugin: 'com.github.dcendents.android-maven'
 | 
			
		||||
 | 
			
		||||
    android {
 | 
			
		||||
        compileSdkVersion 25
 | 
			
		||||
        buildToolsVersion '25.0.2'
 | 
			
		||||
        defaultConfig {
 | 
			
		||||
            minSdkVersion 14
 | 
			
		||||
            targetSdkVersion 25
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        compileOptions {
 | 
			
		||||
            sourceCompatibility JavaVersion.VERSION_1_8
 | 
			
		||||
            targetCompatibility JavaVersion.VERSION_1_8
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Rename the aar correctly
 | 
			
		||||
        libraryVariants.all { variant ->
 | 
			
		||||
            variant.outputs.each { output ->
 | 
			
		||||
                def outputFile = output.outputFile
 | 
			
		||||
                if (outputFile != null && outputFile.name.endsWith('.aar')) {
 | 
			
		||||
                    def fileName = "${project.name}-${variant.baseName}-${version}.aar"
 | 
			
		||||
                    output.outputFile = new File(outputFile.parent, fileName)
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        dependencies {
 | 
			
		||||
            provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    afterEvaluate {
 | 
			
		||||
        android.libraryVariants.all { variant ->
 | 
			
		||||
            def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
 | 
			
		||||
            task.description = "Create jar artifact for ${variant.name}"
 | 
			
		||||
            task.dependsOn variant.javaCompile
 | 
			
		||||
            task.from variant.javaCompile.destinationDirectory
 | 
			
		||||
            task.destinationDirectory = project.file("${project.buildDir}/outputs/jar")
 | 
			
		||||
            task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar"
 | 
			
		||||
            artifacts.add('archives', task);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    task sourcesJar(type: Jar) {
 | 
			
		||||
        from android.sourceSets.main.java.srcDirs
 | 
			
		||||
        archiveClassifier = 'sources'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    artifacts {
 | 
			
		||||
        archives sourcesJar
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
} else {
 | 
			
		||||
 | 
			
		||||
    apply plugin: 'java'
 | 
			
		||||
    apply plugin: 'maven-publish'
 | 
			
		||||
 | 
			
		||||
    sourceCompatibility = JavaVersion.VERSION_1_8
 | 
			
		||||
    targetCompatibility = JavaVersion.VERSION_1_8
 | 
			
		||||
 | 
			
		||||
    publishing {
 | 
			
		||||
        publications {
 | 
			
		||||
            maven(MavenPublication) {
 | 
			
		||||
               artifactId = 'singleparam-webclient'
 | 
			
		||||
               from components.java
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    task execute(type:JavaExec) {
 | 
			
		||||
       mainClass = System.getProperty('mainClass')
 | 
			
		||||
       classpath = sourceSets.main.runtimeClasspath
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    task sourcesJar(type: Jar, dependsOn: classes) {
 | 
			
		||||
        archiveClassifier = 'sources'
 | 
			
		||||
        from sourceSets.main.allSource
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    task javadocJar(type: Jar, dependsOn: javadoc) {
 | 
			
		||||
        archiveClassifier = 'javadoc'
 | 
			
		||||
        from javadoc.destinationDir
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    artifacts {
 | 
			
		||||
        archives sourcesJar
 | 
			
		||||
        archives javadocJar
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
ext {
 | 
			
		||||
    spring_boot_version = "2.7.17"
 | 
			
		||||
    jakarta_annotation_version = "1.3.5"
 | 
			
		||||
    beanvalidation_version = "2.0.2"
 | 
			
		||||
    reactor_version = "3.4.34"
 | 
			
		||||
    reactor_netty_version = "1.0.39"
 | 
			
		||||
    jackson_version = "2.17.1"
 | 
			
		||||
    jackson_databind_version = "2.17.1"
 | 
			
		||||
    jackson_databind_nullable_version = "0.2.6"
 | 
			
		||||
    junit_version = "5.10.2"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
    implementation "com.google.code.findbugs:jsr305:3.0.2"
 | 
			
		||||
    implementation "io.projectreactor:reactor-core:$reactor_version"
 | 
			
		||||
    implementation "org.springframework.boot:spring-boot-starter-webflux:$spring_boot_version"
 | 
			
		||||
    implementation "io.projectreactor.netty:reactor-netty-http:$reactor_netty_version"
 | 
			
		||||
    implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
 | 
			
		||||
    implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
 | 
			
		||||
    implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
 | 
			
		||||
    implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
 | 
			
		||||
    implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
 | 
			
		||||
    implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
 | 
			
		||||
    implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
 | 
			
		||||
    testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1 @@
 | 
			
		||||
# TODO
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# AdditionalPropertiesClass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**mapProperty** | **Map<String, String>** |  |  [optional] |
 | 
			
		||||
|**mapOfMapProperty** | **Map<String, Map<String, String>>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# AllOfWithSingleRef
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**username** | **String** |  |  [optional] |
 | 
			
		||||
|**singleRefType** | **SingleRefType** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Animal
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**className** | **String** |  |  |
 | 
			
		||||
|**color** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,75 @@
 | 
			
		||||
# AnotherFakeApi
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## call123testSpecialTags
 | 
			
		||||
 | 
			
		||||
> Client call123testSpecialTags(client)
 | 
			
		||||
 | 
			
		||||
To test special tags
 | 
			
		||||
 | 
			
		||||
To test special tags and operation ID starting with number
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.AnotherFakeApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
 | 
			
		||||
        Client client = new Client(); // Client | client model
 | 
			
		||||
        try {
 | 
			
		||||
            Client result = apiInstance.call123testSpecialTags(client);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **client** | [**Client**](Client.md)| client model | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Client**](Client.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ArrayOfArrayOfNumberOnly
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**arrayArrayNumber** | **List<List<BigDecimal>>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ArrayOfNumberOnly
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**arrayNumber** | **List<BigDecimal>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ArrayTest
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**arrayOfString** | **List<String>** |  |  [optional] |
 | 
			
		||||
|**arrayArrayOfInteger** | **List<List<Long>>** |  |  [optional] |
 | 
			
		||||
|**arrayArrayOfModel** | **List<List<ReadOnlyFirst>>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,18 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Capitalization
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**smallCamel** | **String** |  |  [optional] |
 | 
			
		||||
|**capitalCamel** | **String** |  |  [optional] |
 | 
			
		||||
|**smallSnake** | **String** |  |  [optional] |
 | 
			
		||||
|**capitalSnake** | **String** |  |  [optional] |
 | 
			
		||||
|**scAETHFlowPoints** | **String** |  |  [optional] |
 | 
			
		||||
|**ATT_NAME** | **String** | Name of the pet  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Cat
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**declawed** | **Boolean** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Category
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**id** | **Long** |  |  [optional] |
 | 
			
		||||
|**name** | **String** |  |  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ChildWithNullable
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**otherProperty** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ClassModel
 | 
			
		||||
 | 
			
		||||
Model for testing model with \"_class\" property
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**propertyClass** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Client
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**client** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,69 @@
 | 
			
		||||
# DefaultApi
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## fooGet
 | 
			
		||||
 | 
			
		||||
> FooGetDefaultResponse fooGet()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.DefaultApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        DefaultApi apiInstance = new DefaultApi(defaultClient);
 | 
			
		||||
        try {
 | 
			
		||||
            FooGetDefaultResponse result = apiInstance.fooGet();
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling DefaultApi#fooGet");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
This endpoint does not need any parameter.
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**FooGetDefaultResponse**](FooGetDefaultResponse.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **0** | response |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# DeprecatedObject
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**name** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Dog
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**breed** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,32 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# EnumArrays
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**justSymbol** | [**JustSymbolEnum**](#JustSymbolEnum) |  |  [optional] |
 | 
			
		||||
|**arrayEnum** | [**List<ArrayEnumEnum>**](#List<ArrayEnumEnum>) |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: JustSymbolEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| GREATER_THAN_OR_EQUAL_TO | ">=" |
 | 
			
		||||
| DOLLAR | "$" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: List<ArrayEnumEnum>
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| FISH | "fish" |
 | 
			
		||||
| CRAB | "crab" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# EnumClass
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `_ABC` (value: `"_abc"`)
 | 
			
		||||
 | 
			
		||||
* `_EFG` (value: `"-efg"`)
 | 
			
		||||
 | 
			
		||||
* `_XYZ_` (value: `"(xyz)"`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,58 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# EnumTest
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**enumString** | [**EnumStringEnum**](#EnumStringEnum) |  |  [optional] |
 | 
			
		||||
|**enumStringRequired** | [**EnumStringRequiredEnum**](#EnumStringRequiredEnum) |  |  |
 | 
			
		||||
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) |  |  [optional] |
 | 
			
		||||
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) |  |  [optional] |
 | 
			
		||||
|**outerEnum** | **OuterEnum** |  |  [optional] |
 | 
			
		||||
|**outerEnumInteger** | **OuterEnumInteger** |  |  [optional] |
 | 
			
		||||
|**outerEnumDefaultValue** | **OuterEnumDefaultValue** |  |  [optional] |
 | 
			
		||||
|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: EnumStringEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| UPPER | "UPPER" |
 | 
			
		||||
| LOWER | "lower" |
 | 
			
		||||
| EMPTY | "" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: EnumStringRequiredEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| UPPER | "UPPER" |
 | 
			
		||||
| LOWER | "lower" |
 | 
			
		||||
| EMPTY | "" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: EnumIntegerEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| NUMBER_1 | 1 |
 | 
			
		||||
| NUMBER_MINUS_1 | -1 |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: EnumNumberEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| NUMBER_1_DOT_1 | 1.1 |
 | 
			
		||||
| NUMBER_MINUS_1_DOT_2 | -1.2 |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# FakeBigDecimalMap200Response
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**someId** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
|**someMap** | **Map<String, BigDecimal>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,82 @@
 | 
			
		||||
# FakeClassnameTags123Api
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## testClassname
 | 
			
		||||
 | 
			
		||||
> Client testClassname(client)
 | 
			
		||||
 | 
			
		||||
To test class name in snake case
 | 
			
		||||
 | 
			
		||||
To test class name in snake case
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.FakeClassnameTags123Api;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure API key authorization: api_key_query
 | 
			
		||||
        ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
 | 
			
		||||
        api_key_query.setApiKey("YOUR API KEY");
 | 
			
		||||
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
 | 
			
		||||
        //api_key_query.setApiKeyPrefix("Token");
 | 
			
		||||
 | 
			
		||||
        FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
 | 
			
		||||
        Client client = new Client(); // Client | client model
 | 
			
		||||
        try {
 | 
			
		||||
            Client result = apiInstance.testClassname(client);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **client** | [**Client**](Client.md)| client model | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Client**](Client.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[api_key_query](../README.md#api_key_query)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# FileSchemaTestClass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**_file** | [**ModelFile**](ModelFile.md) |  |  [optional] |
 | 
			
		||||
|**files** | [**List<ModelFile>**](ModelFile.md) |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Foo
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**bar** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# FooGetDefaultResponse
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**string** | [**Foo**](Foo.md) |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,28 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# FormatTest
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**integer** | **Integer** |  |  [optional] |
 | 
			
		||||
|**int32** | **Integer** |  |  [optional] |
 | 
			
		||||
|**int64** | **Long** |  |  [optional] |
 | 
			
		||||
|**number** | **BigDecimal** |  |  |
 | 
			
		||||
|**_float** | **Float** |  |  [optional] |
 | 
			
		||||
|**_double** | **Double** |  |  [optional] |
 | 
			
		||||
|**decimal** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
|**string** | **String** |  |  [optional] |
 | 
			
		||||
|**_byte** | **byte[]** |  |  |
 | 
			
		||||
|**binary** | **File** |  |  [optional] |
 | 
			
		||||
|**date** | **LocalDate** |  |  |
 | 
			
		||||
|**dateTime** | **OffsetDateTime** |  |  [optional] |
 | 
			
		||||
|**uuid** | **UUID** |  |  [optional] |
 | 
			
		||||
|**password** | **String** |  |  |
 | 
			
		||||
|**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. |  [optional] |
 | 
			
		||||
|**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# HasOnlyReadOnly
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**bar** | **String** |  |  [optional] [readonly] |
 | 
			
		||||
|**foo** | **String** |  |  [optional] [readonly] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# HealthCheckResult
 | 
			
		||||
 | 
			
		||||
Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**nullableMessage** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,25 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# MapTest
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**mapMapOfString** | **Map<String, Map<String, String>>** |  |  [optional] |
 | 
			
		||||
|**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) |  |  [optional] |
 | 
			
		||||
|**directMap** | **Map<String, Boolean>** |  |  [optional] |
 | 
			
		||||
|**indirectMap** | **Map<String, Boolean>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: Map<String, InnerEnum>
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| UPPER | "UPPER" |
 | 
			
		||||
| LOWER | "lower" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# MixedPropertiesAndAdditionalPropertiesClass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**uuid** | **UUID** |  |  [optional] |
 | 
			
		||||
|**dateTime** | **OffsetDateTime** |  |  [optional] |
 | 
			
		||||
|**map** | [**Map<String, Animal>**](Animal.md) |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Model200Response
 | 
			
		||||
 | 
			
		||||
Model for testing model name starting with number
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**name** | **Integer** |  |  [optional] |
 | 
			
		||||
|**propertyClass** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ModelApiResponse
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**code** | **Integer** |  |  [optional] |
 | 
			
		||||
|**type** | **String** |  |  [optional] |
 | 
			
		||||
|**message** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ModelFile
 | 
			
		||||
 | 
			
		||||
Must be named `File` for test.
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**sourceURI** | **String** | Test capitalization |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ModelList
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**_123list** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ModelReturn
 | 
			
		||||
 | 
			
		||||
Model for testing reserved words
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**_return** | **Integer** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,17 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Name
 | 
			
		||||
 | 
			
		||||
Model for testing model name same as property name
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**name** | **Integer** |  |  |
 | 
			
		||||
|**snakeCase** | **Integer** |  |  [optional] [readonly] |
 | 
			
		||||
|**property** | **String** |  |  [optional] |
 | 
			
		||||
|**_123number** | **Integer** |  |  [optional] [readonly] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,24 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# NullableClass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**integerProp** | **Integer** |  |  [optional] |
 | 
			
		||||
|**numberProp** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
|**booleanProp** | **Boolean** |  |  [optional] |
 | 
			
		||||
|**stringProp** | **String** |  |  [optional] |
 | 
			
		||||
|**dateProp** | **LocalDate** |  |  [optional] |
 | 
			
		||||
|**datetimeProp** | **OffsetDateTime** |  |  [optional] |
 | 
			
		||||
|**arrayNullableProp** | **List<Object>** |  |  [optional] |
 | 
			
		||||
|**arrayAndItemsNullableProp** | **List<Object>** |  |  [optional] |
 | 
			
		||||
|**arrayItemsNullable** | **List<Object>** |  |  [optional] |
 | 
			
		||||
|**objectNullableProp** | **Map<String, Object>** |  |  [optional] |
 | 
			
		||||
|**objectAndItemsNullableProp** | **Map<String, Object>** |  |  [optional] |
 | 
			
		||||
|**objectItemsNullable** | **Map<String, Object>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# NumberOnly
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**justNumber** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,16 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ObjectWithDeprecatedFields
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**uuid** | **String** |  |  [optional] |
 | 
			
		||||
|**id** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
|**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) |  |  [optional] |
 | 
			
		||||
|**bars** | **List<String>** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,28 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Order
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**id** | **Long** |  |  [optional] |
 | 
			
		||||
|**petId** | **Long** |  |  [optional] |
 | 
			
		||||
|**quantity** | **Integer** |  |  [optional] |
 | 
			
		||||
|**shipDate** | **OffsetDateTime** |  |  [optional] |
 | 
			
		||||
|**status** | [**StatusEnum**](#StatusEnum) | Order Status |  [optional] |
 | 
			
		||||
|**complete** | **Boolean** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: StatusEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| PLACED | "placed" |
 | 
			
		||||
| APPROVED | "approved" |
 | 
			
		||||
| DELIVERED | "delivered" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterComposite
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**myNumber** | **BigDecimal** |  |  [optional] |
 | 
			
		||||
|**myString** | **String** |  |  [optional] |
 | 
			
		||||
|**myBoolean** | **Boolean** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterEnum
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `PLACED` (value: `"placed"`)
 | 
			
		||||
 | 
			
		||||
* `APPROVED` (value: `"approved"`)
 | 
			
		||||
 | 
			
		||||
* `DELIVERED` (value: `"delivered"`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterEnumDefaultValue
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `PLACED` (value: `"placed"`)
 | 
			
		||||
 | 
			
		||||
* `APPROVED` (value: `"approved"`)
 | 
			
		||||
 | 
			
		||||
* `DELIVERED` (value: `"delivered"`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterEnumInteger
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `NUMBER_0` (value: `0`)
 | 
			
		||||
 | 
			
		||||
* `NUMBER_1` (value: `1`)
 | 
			
		||||
 | 
			
		||||
* `NUMBER_2` (value: `2`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterEnumIntegerDefaultValue
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `NUMBER_0` (value: `0`)
 | 
			
		||||
 | 
			
		||||
* `NUMBER_1` (value: `1`)
 | 
			
		||||
 | 
			
		||||
* `NUMBER_2` (value: `2`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# OuterObjectWithEnumProperty
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**value** | **OuterEnumInteger** |  |  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,22 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ParentWithNullable
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**type** | [**TypeEnum**](#TypeEnum) |  |  [optional] |
 | 
			
		||||
|**nullableProperty** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: TypeEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| CHILD_WITH_NULLABLE | "ChildWithNullable" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,28 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Pet
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**id** | **Long** |  |  [optional] |
 | 
			
		||||
|**category** | [**Category**](Category.md) |  |  [optional] |
 | 
			
		||||
|**name** | **String** |  |  |
 | 
			
		||||
|**photoUrls** | **Set<String>** |  |  |
 | 
			
		||||
|**tags** | [**List<Tag>**](Tag.md) |  |  [optional] |
 | 
			
		||||
|**status** | [**StatusEnum**](#StatusEnum) | pet status in the store |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Enum: StatusEnum
 | 
			
		||||
 | 
			
		||||
| Name | Value |
 | 
			
		||||
|---- | -----|
 | 
			
		||||
| AVAILABLE | "available" |
 | 
			
		||||
| PENDING | "pending" |
 | 
			
		||||
| SOLD | "sold" |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,678 @@
 | 
			
		||||
# PetApi
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store |
 | 
			
		||||
| [**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet |
 | 
			
		||||
| [**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status |
 | 
			
		||||
| [**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags |
 | 
			
		||||
| [**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID |
 | 
			
		||||
| [**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet |
 | 
			
		||||
| [**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data |
 | 
			
		||||
| [**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image |
 | 
			
		||||
| [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## addPet
 | 
			
		||||
 | 
			
		||||
> addPet(pet)
 | 
			
		||||
 | 
			
		||||
Add a new pet to the store
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.addPet(pet);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#addPet");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json, application/xml
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | Successful operation |  -  |
 | 
			
		||||
| **405** | Invalid input |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## deletePet
 | 
			
		||||
 | 
			
		||||
> deletePet(petId, apiKey)
 | 
			
		||||
 | 
			
		||||
Deletes a pet
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Long petId = 56L; // Long | Pet id to delete
 | 
			
		||||
        String apiKey = "apiKey_example"; // String | 
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.deletePet(petId, apiKey);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#deletePet");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **petId** | **Long**| Pet id to delete | |
 | 
			
		||||
| **apiKey** | **String**|  | [optional] |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | Successful operation |  -  |
 | 
			
		||||
| **400** | Invalid pet value |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## findPetsByStatus
 | 
			
		||||
 | 
			
		||||
> List<Pet> findPetsByStatus(status)
 | 
			
		||||
 | 
			
		||||
Finds Pets by status
 | 
			
		||||
 | 
			
		||||
Multiple status values can be provided with comma separated strings
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        List<String> status = Arrays.asList("available"); // List<String> | Status values that need to be considered for filter
 | 
			
		||||
        try {
 | 
			
		||||
            List<Pet> result = apiInstance.findPetsByStatus(status);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#findPetsByStatus");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **status** | [**List<String>**](String.md)| Status values that need to be considered for filter | [enum: available, pending, sold] |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**List<Pet>**](Pet.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid status value |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## findPetsByTags
 | 
			
		||||
 | 
			
		||||
> Set<Pet> findPetsByTags(tags)
 | 
			
		||||
 | 
			
		||||
Finds Pets by tags
 | 
			
		||||
 | 
			
		||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Set<String> tags = Arrays.asList(); // Set<String> | Tags to filter by
 | 
			
		||||
        try {
 | 
			
		||||
            Set<Pet> result = apiInstance.findPetsByTags(tags);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#findPetsByTags");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **tags** | [**Set<String>**](String.md)| Tags to filter by | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Set<Pet>**](Pet.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid tag value |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## getPetById
 | 
			
		||||
 | 
			
		||||
> Pet getPetById(petId)
 | 
			
		||||
 | 
			
		||||
Find pet by ID
 | 
			
		||||
 | 
			
		||||
Returns a single pet
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure API key authorization: api_key
 | 
			
		||||
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
 | 
			
		||||
        api_key.setApiKey("YOUR API KEY");
 | 
			
		||||
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
 | 
			
		||||
        //api_key.setApiKeyPrefix("Token");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Long petId = 56L; // Long | ID of pet to return
 | 
			
		||||
        try {
 | 
			
		||||
            Pet result = apiInstance.getPetById(petId);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#getPetById");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **petId** | **Long**| ID of pet to return | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Pet**](Pet.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[api_key](../README.md#api_key)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid ID supplied |  -  |
 | 
			
		||||
| **404** | Pet not found |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## updatePet
 | 
			
		||||
 | 
			
		||||
> updatePet(pet)
 | 
			
		||||
 | 
			
		||||
Update an existing pet
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.updatePet(pet);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#updatePet");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json, application/xml
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | Successful operation |  -  |
 | 
			
		||||
| **400** | Invalid ID supplied |  -  |
 | 
			
		||||
| **404** | Pet not found |  -  |
 | 
			
		||||
| **405** | Validation exception |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## updatePetWithForm
 | 
			
		||||
 | 
			
		||||
> updatePetWithForm(petId, name, status)
 | 
			
		||||
 | 
			
		||||
Updates a pet in the store with form data
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Long petId = 56L; // Long | ID of pet that needs to be updated
 | 
			
		||||
        String name = "name_example"; // String | Updated name of the pet
 | 
			
		||||
        String status = "status_example"; // String | Updated status of the pet
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.updatePetWithForm(petId, name, status);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#updatePetWithForm");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **petId** | **Long**| ID of pet that needs to be updated | |
 | 
			
		||||
| **name** | **String**| Updated name of the pet | [optional] |
 | 
			
		||||
| **status** | **String**| Updated status of the pet | [optional] |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/x-www-form-urlencoded
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | Successful operation |  -  |
 | 
			
		||||
| **405** | Invalid input |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## uploadFile
 | 
			
		||||
 | 
			
		||||
> ModelApiResponse uploadFile(petId, additionalMetadata, _file)
 | 
			
		||||
 | 
			
		||||
uploads an image
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Long petId = 56L; // Long | ID of pet to update
 | 
			
		||||
        String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
 | 
			
		||||
        File _file = new File("/path/to/file"); // File | file to upload
 | 
			
		||||
        try {
 | 
			
		||||
            ModelApiResponse result = apiInstance.uploadFile(petId, additionalMetadata, _file);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#uploadFile");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **petId** | **Long**| ID of pet to update | |
 | 
			
		||||
| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
 | 
			
		||||
| **_file** | **File**| file to upload | [optional] |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**ModelApiResponse**](ModelApiResponse.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: multipart/form-data
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## uploadFileWithRequiredFile
 | 
			
		||||
 | 
			
		||||
> ModelApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
 | 
			
		||||
 | 
			
		||||
uploads an image (required)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.PetApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure OAuth2 access token for authorization: petstore_auth
 | 
			
		||||
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
 | 
			
		||||
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
 | 
			
		||||
 | 
			
		||||
        PetApi apiInstance = new PetApi(defaultClient);
 | 
			
		||||
        Long petId = 56L; // Long | ID of pet to update
 | 
			
		||||
        File requiredFile = new File("/path/to/file"); // File | file to upload
 | 
			
		||||
        String additionalMetadata = "additionalMetadata_example"; // String | Additional data to pass to server
 | 
			
		||||
        try {
 | 
			
		||||
            ModelApiResponse result = apiInstance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling PetApi#uploadFileWithRequiredFile");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **petId** | **Long**| ID of pet to update | |
 | 
			
		||||
| **requiredFile** | **File**| file to upload | |
 | 
			
		||||
| **additionalMetadata** | **String**| Additional data to pass to server | [optional] |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**ModelApiResponse**](ModelApiResponse.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[petstore_auth](../README.md#petstore_auth)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: multipart/form-data
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ReadOnlyFirst
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**bar** | **String** |  |  [optional] [readonly] |
 | 
			
		||||
|**baz** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# SingleRefType
 | 
			
		||||
 | 
			
		||||
## Enum
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* `ADMIN` (value: `"admin"`)
 | 
			
		||||
 | 
			
		||||
* `USER` (value: `"user"`)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# SpecialModelName
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**$specialPropertyName** | **Long** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,282 @@
 | 
			
		||||
# StoreApi
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID |
 | 
			
		||||
| [**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status |
 | 
			
		||||
| [**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID |
 | 
			
		||||
| [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## deleteOrder
 | 
			
		||||
 | 
			
		||||
> deleteOrder(orderId)
 | 
			
		||||
 | 
			
		||||
Delete purchase order by ID
 | 
			
		||||
 | 
			
		||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.StoreApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        StoreApi apiInstance = new StoreApi(defaultClient);
 | 
			
		||||
        String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.deleteOrder(orderId);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling StoreApi#deleteOrder");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **orderId** | **String**| ID of the order that needs to be deleted | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **400** | Invalid ID supplied |  -  |
 | 
			
		||||
| **404** | Order not found |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## getInventory
 | 
			
		||||
 | 
			
		||||
> Map<String, Integer> getInventory()
 | 
			
		||||
 | 
			
		||||
Returns pet inventories by status
 | 
			
		||||
 | 
			
		||||
Returns a map of status codes to quantities
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.auth.*;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.StoreApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
        
 | 
			
		||||
        // Configure API key authorization: api_key
 | 
			
		||||
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
 | 
			
		||||
        api_key.setApiKey("YOUR API KEY");
 | 
			
		||||
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
 | 
			
		||||
        //api_key.setApiKeyPrefix("Token");
 | 
			
		||||
 | 
			
		||||
        StoreApi apiInstance = new StoreApi(defaultClient);
 | 
			
		||||
        try {
 | 
			
		||||
            Map<String, Integer> result = apiInstance.getInventory();
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling StoreApi#getInventory");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
This endpoint does not need any parameter.
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
**Map<String, Integer>**
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
[api_key](../README.md#api_key)
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## getOrderById
 | 
			
		||||
 | 
			
		||||
> Order getOrderById(orderId)
 | 
			
		||||
 | 
			
		||||
Find purchase order by ID
 | 
			
		||||
 | 
			
		||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.StoreApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        StoreApi apiInstance = new StoreApi(defaultClient);
 | 
			
		||||
        Long orderId = 56L; // Long | ID of pet that needs to be fetched
 | 
			
		||||
        try {
 | 
			
		||||
            Order result = apiInstance.getOrderById(orderId);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling StoreApi#getOrderById");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **orderId** | **Long**| ID of pet that needs to be fetched | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Order**](Order.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid ID supplied |  -  |
 | 
			
		||||
| **404** | Order not found |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## placeOrder
 | 
			
		||||
 | 
			
		||||
> Order placeOrder(order)
 | 
			
		||||
 | 
			
		||||
Place an order for a pet
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.StoreApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        StoreApi apiInstance = new StoreApi(defaultClient);
 | 
			
		||||
        Order order = new Order(); // Order | order placed for purchasing the pet
 | 
			
		||||
        try {
 | 
			
		||||
            Order result = apiInstance.placeOrder(order);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling StoreApi#placeOrder");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**Order**](Order.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid Order |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,14 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Tag
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**id** | **Long** |  |  [optional] |
 | 
			
		||||
|**name** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,13 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# TestInlineFreeformAdditionalPropertiesRequest
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**someProperty** | **String** |  |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,20 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# User
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Properties
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description | Notes |
 | 
			
		||||
|------------ | ------------- | ------------- | -------------|
 | 
			
		||||
|**id** | **Long** |  |  [optional] |
 | 
			
		||||
|**username** | **String** |  |  [optional] |
 | 
			
		||||
|**firstName** | **String** |  |  [optional] |
 | 
			
		||||
|**lastName** | **String** |  |  [optional] |
 | 
			
		||||
|**email** | **String** |  |  [optional] |
 | 
			
		||||
|**password** | **String** |  |  [optional] |
 | 
			
		||||
|**phone** | **String** |  |  [optional] |
 | 
			
		||||
|**userStatus** | **Integer** | User Status |  [optional] |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,543 @@
 | 
			
		||||
# UserApi
 | 
			
		||||
 | 
			
		||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
 | 
			
		||||
 | 
			
		||||
| Method | HTTP request | Description |
 | 
			
		||||
|------------- | ------------- | -------------|
 | 
			
		||||
| [**createUser**](UserApi.md#createUser) | **POST** /user | Create user |
 | 
			
		||||
| [**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array |
 | 
			
		||||
| [**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array |
 | 
			
		||||
| [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user |
 | 
			
		||||
| [**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name |
 | 
			
		||||
| [**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system |
 | 
			
		||||
| [**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session |
 | 
			
		||||
| [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## createUser
 | 
			
		||||
 | 
			
		||||
> createUser(user)
 | 
			
		||||
 | 
			
		||||
Create user
 | 
			
		||||
 | 
			
		||||
This can only be done by the logged in user.
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        User user = new User(); // User | Created user object
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.createUser(user);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#createUser");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **user** | [**User**](User.md)| Created user object | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **0** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## createUsersWithArrayInput
 | 
			
		||||
 | 
			
		||||
> createUsersWithArrayInput(user)
 | 
			
		||||
 | 
			
		||||
Creates list of users with given input array
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        List<User> user = Arrays.asList(); // List<User> | List of user object
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.createUsersWithArrayInput(user);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **user** | [**List<User>**](User.md)| List of user object | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **0** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## createUsersWithListInput
 | 
			
		||||
 | 
			
		||||
> createUsersWithListInput(user)
 | 
			
		||||
 | 
			
		||||
Creates list of users with given input array
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        List<User> user = Arrays.asList(); // List<User> | List of user object
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.createUsersWithListInput(user);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#createUsersWithListInput");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **user** | [**List<User>**](User.md)| List of user object | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **0** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## deleteUser
 | 
			
		||||
 | 
			
		||||
> deleteUser(username)
 | 
			
		||||
 | 
			
		||||
Delete user
 | 
			
		||||
 | 
			
		||||
This can only be done by the logged in user.
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        String username = "username_example"; // String | The name that needs to be deleted
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.deleteUser(username);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#deleteUser");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **username** | **String**| The name that needs to be deleted | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **400** | Invalid username supplied |  -  |
 | 
			
		||||
| **404** | User not found |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## getUserByName
 | 
			
		||||
 | 
			
		||||
> User getUserByName(username)
 | 
			
		||||
 | 
			
		||||
Get user by user name
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing.
 | 
			
		||||
        try {
 | 
			
		||||
            User result = apiInstance.getUserByName(username);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#getUserByName");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **username** | **String**| The name that needs to be fetched. Use user1 for testing. | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
[**User**](User.md)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  -  |
 | 
			
		||||
| **400** | Invalid username supplied |  -  |
 | 
			
		||||
| **404** | User not found |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## loginUser
 | 
			
		||||
 | 
			
		||||
> String loginUser(username, password)
 | 
			
		||||
 | 
			
		||||
Logs user into the system
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        String username = "username_example"; // String | The user name for login
 | 
			
		||||
        String password = "password_example"; // String | The password for login in clear text
 | 
			
		||||
        try {
 | 
			
		||||
            String result = apiInstance.loginUser(username, password);
 | 
			
		||||
            System.out.println(result);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#loginUser");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **username** | **String**| The user name for login | |
 | 
			
		||||
| **password** | **String**| The password for login in clear text | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
**String**
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: application/xml, application/json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **200** | successful operation |  * X-Rate-Limit - calls per hour allowed by the user <br>  * X-Expires-After - date in UTC when token expires <br>  |
 | 
			
		||||
| **400** | Invalid username/password supplied |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## logoutUser
 | 
			
		||||
 | 
			
		||||
> logoutUser()
 | 
			
		||||
 | 
			
		||||
Logs out current logged in user session
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.logoutUser();
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#logoutUser");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
This endpoint does not need any parameter.
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: Not defined
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **0** | successful operation |  -  |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## updateUser
 | 
			
		||||
 | 
			
		||||
> updateUser(username, user)
 | 
			
		||||
 | 
			
		||||
Updated user
 | 
			
		||||
 | 
			
		||||
This can only be done by the logged in user.
 | 
			
		||||
 | 
			
		||||
### Example
 | 
			
		||||
 | 
			
		||||
```java
 | 
			
		||||
// Import classes:
 | 
			
		||||
import org.openapitools.client.ApiClient;
 | 
			
		||||
import org.openapitools.client.ApiException;
 | 
			
		||||
import org.openapitools.client.Configuration;
 | 
			
		||||
import org.openapitools.client.models.*;
 | 
			
		||||
import org.openapitools.client.api.UserApi;
 | 
			
		||||
 | 
			
		||||
public class Example {
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        ApiClient defaultClient = Configuration.getDefaultApiClient();
 | 
			
		||||
        defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
 | 
			
		||||
 | 
			
		||||
        UserApi apiInstance = new UserApi(defaultClient);
 | 
			
		||||
        String username = "username_example"; // String | name that need to be deleted
 | 
			
		||||
        User user = new User(); // User | Updated user object
 | 
			
		||||
        try {
 | 
			
		||||
            apiInstance.updateUser(username, user);
 | 
			
		||||
        } catch (ApiException e) {
 | 
			
		||||
            System.err.println("Exception when calling UserApi#updateUser");
 | 
			
		||||
            System.err.println("Status code: " + e.getCode());
 | 
			
		||||
            System.err.println("Reason: " + e.getResponseBody());
 | 
			
		||||
            System.err.println("Response headers: " + e.getResponseHeaders());
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Parameters
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| Name | Type | Description  | Notes |
 | 
			
		||||
|------------- | ------------- | ------------- | -------------|
 | 
			
		||||
| **username** | **String**| name that need to be deleted | |
 | 
			
		||||
| **user** | [**User**](User.md)| Updated user object | |
 | 
			
		||||
 | 
			
		||||
### Return type
 | 
			
		||||
 | 
			
		||||
null (empty response body)
 | 
			
		||||
 | 
			
		||||
### Authorization
 | 
			
		||||
 | 
			
		||||
No authorization required
 | 
			
		||||
 | 
			
		||||
### HTTP request headers
 | 
			
		||||
 | 
			
		||||
- **Content-Type**: application/json
 | 
			
		||||
- **Accept**: Not defined
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### HTTP response details
 | 
			
		||||
| Status code | Description | Response headers |
 | 
			
		||||
|-------------|-------------|------------------|
 | 
			
		||||
| **400** | Invalid user supplied |  -  |
 | 
			
		||||
| **404** | User not found |  -  |
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,57 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
 | 
			
		||||
#
 | 
			
		||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
 | 
			
		||||
 | 
			
		||||
git_user_id=$1
 | 
			
		||||
git_repo_id=$2
 | 
			
		||||
release_note=$3
 | 
			
		||||
git_host=$4
 | 
			
		||||
 | 
			
		||||
if [ "$git_host" = "" ]; then
 | 
			
		||||
    git_host="github.com"
 | 
			
		||||
    echo "[INFO] No command line input provided. Set \$git_host to $git_host"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$git_user_id" = "" ]; then
 | 
			
		||||
    git_user_id="GIT_USER_ID"
 | 
			
		||||
    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$git_repo_id" = "" ]; then
 | 
			
		||||
    git_repo_id="GIT_REPO_ID"
 | 
			
		||||
    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$release_note" = "" ]; then
 | 
			
		||||
    release_note="Minor update"
 | 
			
		||||
    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Initialize the local directory as a Git repository
 | 
			
		||||
git init
 | 
			
		||||
 | 
			
		||||
# Adds the files in the local repository and stages them for commit.
 | 
			
		||||
git add .
 | 
			
		||||
 | 
			
		||||
# Commits the tracked changes and prepares them to be pushed to a remote repository.
 | 
			
		||||
git commit -m "$release_note"
 | 
			
		||||
 | 
			
		||||
# Sets the new remote
 | 
			
		||||
git_remote=$(git remote)
 | 
			
		||||
if [ "$git_remote" = "" ]; then # git remote not defined
 | 
			
		||||
 | 
			
		||||
    if [ "$GIT_TOKEN" = "" ]; then
 | 
			
		||||
        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
 | 
			
		||||
        git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
 | 
			
		||||
    else
 | 
			
		||||
        git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
git pull origin master
 | 
			
		||||
 | 
			
		||||
# Pushes (Forces) the changes in the local repository up to the remote repository
 | 
			
		||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
 | 
			
		||||
git push origin master 2>&1 | grep -v 'To https'
 | 
			
		||||
@ -0,0 +1,6 @@
 | 
			
		||||
# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator).
 | 
			
		||||
# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option.
 | 
			
		||||
#
 | 
			
		||||
# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
 | 
			
		||||
# For example, uncomment below to build for Android
 | 
			
		||||
#target = android
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user