forked from loafle/openapi-generator-original
Improve Java native, apache-httpclient with better spec (#14109)
* improve java native, apache client with better spec * fix java native async tests * regenerate java native tests
This commit is contained in:
parent
6bb6f1b28a
commit
980062f2bb
@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/apache-httpclient
|
outputDir: samples/client/petstore/java/apache-httpclient
|
||||||
library: apache-httpclient
|
library: apache-httpclient
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
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
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-apache-httpclient
|
artifactId: petstore-apache-httpclient
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/native-async
|
outputDir: samples/client/petstore/java/native-async
|
||||||
library: native
|
library: native
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
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
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-native
|
artifactId: petstore-native
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/native
|
outputDir: samples/client/petstore/java/native
|
||||||
library: native
|
library: native
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
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
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-native
|
artifactId: petstore-native
|
||||||
|
@ -311,6 +311,13 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
{{/parcelableModel}}
|
{{/parcelableModel}}
|
||||||
|
{{#openApiNullable}}
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.openapitools</groupId>
|
||||||
|
<artifactId>jackson-databind-nullable</artifactId>
|
||||||
|
<version>${jackson-databind-nullable-version}</version>
|
||||||
|
</dependency>
|
||||||
|
{{/openApiNullable}}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jakarta.annotation</groupId>
|
<groupId>jakarta.annotation</groupId>
|
||||||
<artifactId>jakarta.annotation-api</artifactId>
|
<artifactId>jakarta.annotation-api</artifactId>
|
||||||
@ -331,6 +338,9 @@
|
|||||||
<httpclient-version>4.5.13</httpclient-version>
|
<httpclient-version>4.5.13</httpclient-version>
|
||||||
<jackson-version>2.13.4</jackson-version>
|
<jackson-version>2.13.4</jackson-version>
|
||||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||||
|
{{#openApiNullable}}
|
||||||
|
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||||
|
{{/openApiNullable}}
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
{{#useBeanValidation}}
|
{{#useBeanValidation}}
|
||||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||||
|
@ -5,27 +5,21 @@ README.md
|
|||||||
api/openapi.yaml
|
api/openapi.yaml
|
||||||
build.gradle
|
build.gradle
|
||||||
build.sbt
|
build.sbt
|
||||||
docs/AdditionalPropertiesAnyType.md
|
|
||||||
docs/AdditionalPropertiesArray.md
|
|
||||||
docs/AdditionalPropertiesBoolean.md
|
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AdditionalPropertiesInteger.md
|
docs/AllOfWithSingleRef.md
|
||||||
docs/AdditionalPropertiesNumber.md
|
|
||||||
docs/AdditionalPropertiesObject.md
|
|
||||||
docs/AdditionalPropertiesString.md
|
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
docs/ArrayOfArrayOfNumberOnly.md
|
docs/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/ArrayOfNumberOnly.md
|
docs/ArrayOfNumberOnly.md
|
||||||
docs/ArrayTest.md
|
docs/ArrayTest.md
|
||||||
docs/BigCat.md
|
|
||||||
docs/BigCatAllOf.md
|
|
||||||
docs/Capitalization.md
|
docs/Capitalization.md
|
||||||
docs/Cat.md
|
docs/Cat.md
|
||||||
docs/CatAllOf.md
|
docs/CatAllOf.md
|
||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
docs/Client.md
|
docs/Client.md
|
||||||
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@ -34,8 +28,11 @@ docs/EnumTest.md
|
|||||||
docs/FakeApi.md
|
docs/FakeApi.md
|
||||||
docs/FakeClassnameTags123Api.md
|
docs/FakeClassnameTags123Api.md
|
||||||
docs/FileSchemaTestClass.md
|
docs/FileSchemaTestClass.md
|
||||||
|
docs/Foo.md
|
||||||
|
docs/FooGetDefaultResponse.md
|
||||||
docs/FormatTest.md
|
docs/FormatTest.md
|
||||||
docs/HasOnlyReadOnly.md
|
docs/HasOnlyReadOnly.md
|
||||||
|
docs/HealthCheckResult.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model200Response.md
|
docs/Model200Response.md
|
||||||
@ -44,21 +41,25 @@ docs/ModelFile.md
|
|||||||
docs/ModelList.md
|
docs/ModelList.md
|
||||||
docs/ModelReturn.md
|
docs/ModelReturn.md
|
||||||
docs/Name.md
|
docs/Name.md
|
||||||
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
|
docs/OuterEnumDefaultValue.md
|
||||||
|
docs/OuterEnumInteger.md
|
||||||
|
docs/OuterEnumIntegerDefaultValue.md
|
||||||
|
docs/OuterObjectWithEnumProperty.md
|
||||||
docs/Pet.md
|
docs/Pet.md
|
||||||
docs/PetApi.md
|
docs/PetApi.md
|
||||||
docs/ReadOnlyFirst.md
|
docs/ReadOnlyFirst.md
|
||||||
|
docs/SingleRefType.md
|
||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/TypeHolderDefault.md
|
|
||||||
docs/TypeHolderExample.md
|
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
docs/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
gradle.properties
|
gradle.properties
|
||||||
gradle/wrapper/gradle-wrapper.jar
|
gradle/wrapper/gradle-wrapper.jar
|
||||||
@ -78,6 +79,7 @@ src/main/java/org/openapitools/client/ServerConfiguration.java
|
|||||||
src/main/java/org/openapitools/client/ServerVariable.java
|
src/main/java/org/openapitools/client/ServerVariable.java
|
||||||
src/main/java/org/openapitools/client/StringUtil.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/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/FakeApi.java
|
||||||
src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.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/PetApi.java
|
||||||
@ -89,34 +91,30 @@ 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/HttpBearerAuth.java
|
||||||
src/main/java/org/openapitools/client/auth/OAuth.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/auth/OAuthFlow.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
|
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java
|
src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java
|
|
||||||
src/main/java/org/openapitools/client/model/Animal.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/ArrayOfArrayOfNumberOnly.java
|
||||||
src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.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/ArrayTest.java
|
||||||
src/main/java/org/openapitools/client/model/BigCat.java
|
|
||||||
src/main/java/org/openapitools/client/model/BigCatAllOf.java
|
|
||||||
src/main/java/org/openapitools/client/model/Capitalization.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/Cat.java
|
||||||
src/main/java/org/openapitools/client/model/CatAllOf.java
|
src/main/java/org/openapitools/client/model/CatAllOf.java
|
||||||
src/main/java/org/openapitools/client/model/Category.java
|
src/main/java/org/openapitools/client/model/Category.java
|
||||||
src/main/java/org/openapitools/client/model/ClassModel.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/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/Dog.java
|
||||||
src/main/java/org/openapitools/client/model/DogAllOf.java
|
src/main/java/org/openapitools/client/model/DogAllOf.java
|
||||||
src/main/java/org/openapitools/client/model/EnumArrays.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/EnumClass.java
|
||||||
src/main/java/org/openapitools/client/model/EnumTest.java
|
src/main/java/org/openapitools/client/model/EnumTest.java
|
||||||
src/main/java/org/openapitools/client/model/FileSchemaTestClass.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/FormatTest.java
|
||||||
src/main/java/org/openapitools/client/model/HasOnlyReadOnly.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/MapTest.java
|
||||||
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.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/Model200Response.java
|
||||||
@ -125,15 +123,19 @@ 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/ModelList.java
|
||||||
src/main/java/org/openapitools/client/model/ModelReturn.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/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/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/Order.java
|
||||||
src/main/java/org/openapitools/client/model/OuterComposite.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/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/Pet.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/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/SpecialModelName.java
|
||||||
src/main/java/org/openapitools/client/model/Tag.java
|
src/main/java/org/openapitools/client/model/Tag.java
|
||||||
src/main/java/org/openapitools/client/model/TypeHolderDefault.java
|
|
||||||
src/main/java/org/openapitools/client/model/TypeHolderExample.java
|
|
||||||
src/main/java/org/openapitools/client/model/User.java
|
src/main/java/org/openapitools/client/model/User.java
|
||||||
src/main/java/org/openapitools/client/model/XmlItem.java
|
|
||||||
|
@ -84,9 +84,9 @@ public class AnotherFakeApiExample {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
Client result = apiInstance.call123testSpecialTags(body);
|
Client result = apiInstance.call123testSpecialTags(client);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||||
@ -107,15 +107,19 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem
|
*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo |
|
||||||
|
*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* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
||||||
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
||||||
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
||||||
|
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](docs/FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int |
|
||||||
|
*FakeApi* | [**testBodyWithBinary**](docs/FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary |
|
||||||
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
|
*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* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
|
||||||
*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
|
*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* | [**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* | [**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* | [**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* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||||
@ -147,34 +151,30 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
|
||||||
- [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
|
||||||
- [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
|
||||||
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||||
- [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
- [AllOfWithSingleRef](docs/AllOfWithSingleRef.md)
|
||||||
- [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
|
||||||
- [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
|
||||||
- [AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
|
||||||
- [Animal](docs/Animal.md)
|
- [Animal](docs/Animal.md)
|
||||||
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [ArrayTest](docs/ArrayTest.md)
|
- [ArrayTest](docs/ArrayTest.md)
|
||||||
- [BigCat](docs/BigCat.md)
|
|
||||||
- [BigCatAllOf](docs/BigCatAllOf.md)
|
|
||||||
- [Capitalization](docs/Capitalization.md)
|
- [Capitalization](docs/Capitalization.md)
|
||||||
- [Cat](docs/Cat.md)
|
- [Cat](docs/Cat.md)
|
||||||
- [CatAllOf](docs/CatAllOf.md)
|
- [CatAllOf](docs/CatAllOf.md)
|
||||||
- [Category](docs/Category.md)
|
- [Category](docs/Category.md)
|
||||||
- [ClassModel](docs/ClassModel.md)
|
- [ClassModel](docs/ClassModel.md)
|
||||||
- [Client](docs/Client.md)
|
- [Client](docs/Client.md)
|
||||||
|
- [DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Dog](docs/Dog.md)
|
- [Dog](docs/Dog.md)
|
||||||
- [DogAllOf](docs/DogAllOf.md)
|
- [DogAllOf](docs/DogAllOf.md)
|
||||||
- [EnumArrays](docs/EnumArrays.md)
|
- [EnumArrays](docs/EnumArrays.md)
|
||||||
- [EnumClass](docs/EnumClass.md)
|
- [EnumClass](docs/EnumClass.md)
|
||||||
- [EnumTest](docs/EnumTest.md)
|
- [EnumTest](docs/EnumTest.md)
|
||||||
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||||
|
- [Foo](docs/Foo.md)
|
||||||
|
- [FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
|
||||||
- [FormatTest](docs/FormatTest.md)
|
- [FormatTest](docs/FormatTest.md)
|
||||||
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||||
|
- [HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [MapTest](docs/MapTest.md)
|
- [MapTest](docs/MapTest.md)
|
||||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [Model200Response](docs/Model200Response.md)
|
- [Model200Response](docs/Model200Response.md)
|
||||||
@ -183,18 +183,22 @@ Class | Method | HTTP request | Description
|
|||||||
- [ModelList](docs/ModelList.md)
|
- [ModelList](docs/ModelList.md)
|
||||||
- [ModelReturn](docs/ModelReturn.md)
|
- [ModelReturn](docs/ModelReturn.md)
|
||||||
- [Name](docs/Name.md)
|
- [Name](docs/Name.md)
|
||||||
|
- [NullableClass](docs/NullableClass.md)
|
||||||
- [NumberOnly](docs/NumberOnly.md)
|
- [NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Order](docs/Order.md)
|
- [Order](docs/Order.md)
|
||||||
- [OuterComposite](docs/OuterComposite.md)
|
- [OuterComposite](docs/OuterComposite.md)
|
||||||
- [OuterEnum](docs/OuterEnum.md)
|
- [OuterEnum](docs/OuterEnum.md)
|
||||||
|
- [OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
|
||||||
|
- [OuterEnumInteger](docs/OuterEnumInteger.md)
|
||||||
|
- [OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
|
||||||
|
- [OuterObjectWithEnumProperty](docs/OuterObjectWithEnumProperty.md)
|
||||||
- [Pet](docs/Pet.md)
|
- [Pet](docs/Pet.md)
|
||||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
|
- [SingleRefType](docs/SingleRefType.md)
|
||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Tag](docs/Tag.md)
|
- [Tag](docs/Tag.md)
|
||||||
- [TypeHolderDefault](docs/TypeHolderDefault.md)
|
|
||||||
- [TypeHolderExample](docs/TypeHolderExample.md)
|
|
||||||
- [User](docs/User.md)
|
- [User](docs/User.md)
|
||||||
- [XmlItem](docs/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
@ -214,9 +218,19 @@ Authentication schemes defined for the API:
|
|||||||
- **API key parameter name**: api_key_query
|
- **API key parameter name**: api_key_query
|
||||||
- **Location**: URL query string
|
- **Location**: URL query string
|
||||||
|
|
||||||
|
### bearer_test
|
||||||
|
|
||||||
|
|
||||||
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
### http_basic_test
|
### http_basic_test
|
||||||
|
|
||||||
|
|
||||||
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
### http_signature_test
|
||||||
|
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7,17 +7,8 @@
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------ | ------------- | ------------- | -------------|
|
|------------ | ------------- | ------------- | -------------|
|
||||||
|**mapString** | **Map<String, String>** | | [optional] |
|
|**mapProperty** | **Map<String, String>** | | [optional] |
|
||||||
|**mapNumber** | **Map<String, BigDecimal>** | | [optional] |
|
|**mapOfMapProperty** | **Map<String, Map<String, String>>** | | [optional] |
|
||||||
|**mapInteger** | **Map<String, Integer>** | | [optional] |
|
|
||||||
|**mapBoolean** | **Map<String, Boolean>** | | [optional] |
|
|
||||||
|**mapArrayInteger** | **Map<String, List<Integer>>** | | [optional] |
|
|
||||||
|**mapArrayAnytype** | **Map<String, List<Object>>** | | [optional] |
|
|
||||||
|**mapMapString** | **Map<String, Map<String, String>>** | | [optional] |
|
|
||||||
|**mapMapAnytype** | **Map<String, Map<String, Object>>** | | [optional] |
|
|
||||||
|**anytype1** | **Object** | | [optional] |
|
|
||||||
|**anytype2** | **Object** | | [optional] |
|
|
||||||
|**anytype3** | **Object** | | [optional] |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# AllOfWithSingleRef
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Type | Description | Notes |
|
||||||
|
|------------ | ------------- | ------------- | -------------|
|
||||||
|
|**username** | **String** | | [optional] |
|
||||||
|
|**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## call123testSpecialTags
|
## call123testSpecialTags
|
||||||
|
|
||||||
> Client call123testSpecialTags(body)
|
> Client call123testSpecialTags(client)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -32,9 +32,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
Client result = apiInstance.call123testSpecialTags(body);
|
Client result = apiInstance.call123testSpecialTags(client);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||||
@ -52,7 +52,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -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] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,6 +12,9 @@
|
|||||||
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|
||||||
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|
||||||
|**outerEnum** | **OuterEnum** | | [optional] |
|
|**outerEnum** | **OuterEnum** | | [optional] |
|
||||||
|
|**outerEnumInteger** | **OuterEnumInteger** | | [optional] |
|
||||||
|
|**outerEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] |
|
||||||
|
|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,15 +4,18 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
| Method | HTTP request | Description |
|
| Method | HTTP request | Description |
|
||||||
|------------- | ------------- | -------------|
|
|------------- | ------------- | -------------|
|
||||||
| [**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem |
|
| [**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint |
|
||||||
|
| [**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication |
|
||||||
| [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | |
|
| [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | |
|
||||||
| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
|
| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
|
||||||
| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
|
| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
|
||||||
| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
|
| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
|
||||||
|
| [**fakePropertyEnumIntegerSerialize**](FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int | |
|
||||||
|
| [**testBodyWithBinary**](FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary | |
|
||||||
| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
|
| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
|
||||||
| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
|
| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
|
||||||
| [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model |
|
| [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model |
|
||||||
| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
|
| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
|
||||||
| [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters |
|
| [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters |
|
||||||
| [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
|
| [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
|
||||||
| [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
|
| [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
|
||||||
@ -21,13 +24,11 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## createXmlItem
|
## fakeHealthGet
|
||||||
|
|
||||||
> createXmlItem(xmlItem)
|
> HealthCheckResult fakeHealthGet()
|
||||||
|
|
||||||
creates an XmlItem
|
Health check endpoint
|
||||||
|
|
||||||
this route creates an XmlItem
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -45,11 +46,75 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
|
|
||||||
try {
|
try {
|
||||||
apiInstance.createXmlItem(xmlItem);
|
HealthCheckResult result = apiInstance.fakeHealthGet();
|
||||||
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#createXmlItem");
|
System.err.println("Exception when calling FakeApi#fakeHealthGet");
|
||||||
|
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
|
||||||
|
|
||||||
|
[**HealthCheckResult**](HealthCheckResult.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | The instance started successfully | - |
|
||||||
|
|
||||||
|
|
||||||
|
## fakeHttpSignatureTest
|
||||||
|
|
||||||
|
> fakeHttpSignatureTest(pet, query1, header1)
|
||||||
|
|
||||||
|
test http signature authentication
|
||||||
|
|
||||||
|
### 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.FakeApi;
|
||||||
|
|
||||||
|
public class Example {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||||
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
|
|
||||||
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
|
String query1 = "query1_example"; // String | query parameter
|
||||||
|
String header1 = "header1_example"; // String | header parameter
|
||||||
|
try {
|
||||||
|
apiInstance.fakeHttpSignatureTest(pet, query1, header1);
|
||||||
|
} catch (ApiException e) {
|
||||||
|
System.err.println("Exception when calling FakeApi#fakeHttpSignatureTest");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
System.err.println("Reason: " + e.getResponseBody());
|
System.err.println("Reason: " + e.getResponseBody());
|
||||||
System.err.println("Response headers: " + e.getResponseHeaders());
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||||
@ -64,7 +129,9 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
| **query1** | **String**| query parameter | [optional] |
|
||||||
|
| **header1** | **String**| header parameter | [optional] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -72,18 +139,18 @@ null (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[http_signature_test](../README.md#http_signature_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
|
- **Content-Type**: application/json, application/xml
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | The instance started successfully | - |
|
||||||
|
|
||||||
|
|
||||||
## fakeOuterBooleanSerialize
|
## fakeOuterBooleanSerialize
|
||||||
@ -142,7 +209,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@ -154,7 +221,7 @@ No authorization required
|
|||||||
|
|
||||||
## fakeOuterCompositeSerialize
|
## fakeOuterCompositeSerialize
|
||||||
|
|
||||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -176,9 +243,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
|
OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
|
||||||
try {
|
try {
|
||||||
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
|
OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
|
||||||
@ -196,7 +263,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
|
| **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -208,7 +275,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@ -274,7 +341,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@ -340,7 +407,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
@ -350,13 +417,13 @@ No authorization required
|
|||||||
| **200** | Output string | - |
|
| **200** | Output string | - |
|
||||||
|
|
||||||
|
|
||||||
## testBodyWithFileSchema
|
## fakePropertyEnumIntegerSerialize
|
||||||
|
|
||||||
> testBodyWithFileSchema(body)
|
> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For this test, the body for this request much reference a schema named `File`.
|
Test serialization of enum (int) properties with examples
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -374,9 +441,140 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
|
OuterObjectWithEnumProperty outerObjectWithEnumProperty = new OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body
|
||||||
try {
|
try {
|
||||||
apiInstance.testBodyWithFileSchema(body);
|
OuterObjectWithEnumProperty result = apiInstance.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
|
||||||
|
System.out.println(result);
|
||||||
|
} catch (ApiException e) {
|
||||||
|
System.err.println("Exception when calling FakeApi#fakePropertyEnumIntegerSerialize");
|
||||||
|
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 |
|
||||||
|
|------------- | ------------- | ------------- | -------------|
|
||||||
|
| **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **Accept**: */*
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | Output enum (int) | - |
|
||||||
|
|
||||||
|
|
||||||
|
## testBodyWithBinary
|
||||||
|
|
||||||
|
> testBodyWithBinary(body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
For this test, the body has to be a binary file.
|
||||||
|
|
||||||
|
### 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.FakeApi;
|
||||||
|
|
||||||
|
public class Example {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||||
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
|
File body = new File("/path/to/file"); // File | image to upload
|
||||||
|
try {
|
||||||
|
apiInstance.testBodyWithBinary(body);
|
||||||
|
} catch (ApiException e) {
|
||||||
|
System.err.println("Exception when calling FakeApi#testBodyWithBinary");
|
||||||
|
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 |
|
||||||
|
|------------- | ------------- | ------------- | -------------|
|
||||||
|
| **body** | **File**| image to upload | |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
null (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: image/png
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | Success | - |
|
||||||
|
|
||||||
|
|
||||||
|
## testBodyWithFileSchema
|
||||||
|
|
||||||
|
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
For this test, the body for this request must reference a schema named `File`.
|
||||||
|
|
||||||
|
### 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.FakeApi;
|
||||||
|
|
||||||
|
public class Example {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||||
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
|
FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
|
||||||
|
try {
|
||||||
|
apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -393,7 +591,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
|
| **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -417,7 +615,7 @@ No authorization required
|
|||||||
|
|
||||||
## testBodyWithQueryParams
|
## testBodyWithQueryParams
|
||||||
|
|
||||||
> testBodyWithQueryParams(query, body)
|
> testBodyWithQueryParams(query, user)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -438,9 +636,9 @@ public class Example {
|
|||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
String query = "query_example"; // String |
|
String query = "query_example"; // String |
|
||||||
User body = new User(); // User |
|
User user = new User(); // User |
|
||||||
try {
|
try {
|
||||||
apiInstance.testBodyWithQueryParams(query, body);
|
apiInstance.testBodyWithQueryParams(query, user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -458,7 +656,7 @@ public class Example {
|
|||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **query** | **String**| | |
|
| **query** | **String**| | |
|
||||||
| **body** | [**User**](User.md)| | |
|
| **user** | [**User**](User.md)| | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -482,7 +680,7 @@ No authorization required
|
|||||||
|
|
||||||
## testClientModel
|
## testClientModel
|
||||||
|
|
||||||
> Client testClientModel(body)
|
> Client testClientModel(client)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@ -504,9 +702,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
Client result = apiInstance.testClientModel(body);
|
Client result = apiInstance.testClientModel(client);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testClientModel");
|
System.err.println("Exception when calling FakeApi#testClientModel");
|
||||||
@ -524,7 +722,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -550,9 +748,9 @@ No authorization required
|
|||||||
|
|
||||||
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
|
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -646,7 +844,7 @@ null (empty response body)
|
|||||||
|
|
||||||
## testEnumParameters
|
## testEnumParameters
|
||||||
|
|
||||||
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
|
> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@ -674,10 +872,11 @@ public class Example {
|
|||||||
String enumQueryString = "_abc"; // String | Query parameter enum test (string)
|
String enumQueryString = "_abc"; // String | Query parameter enum test (string)
|
||||||
Integer enumQueryInteger = 1; // Integer | Query parameter enum test (double)
|
Integer enumQueryInteger = 1; // Integer | Query parameter enum test (double)
|
||||||
Double enumQueryDouble = 1.1D; // Double | Query parameter enum test (double)
|
Double enumQueryDouble = 1.1D; // Double | Query parameter enum test (double)
|
||||||
|
List<EnumClass> enumQueryModelArray = Arrays.asList(-efg); // List<EnumClass> |
|
||||||
List<String> enumFormStringArray = Arrays.asList("$"); // List<String> | Form parameter enum test (string array)
|
List<String> enumFormStringArray = Arrays.asList("$"); // List<String> | Form parameter enum test (string array)
|
||||||
String enumFormString = "_abc"; // String | Form parameter enum test (string)
|
String enumFormString = "_abc"; // String | Form parameter enum test (string)
|
||||||
try {
|
try {
|
||||||
apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
System.err.println("Exception when calling FakeApi#testEnumParameters");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -700,6 +899,7 @@ public class Example {
|
|||||||
| **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
|
| **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
|
||||||
| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] |
|
| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] |
|
||||||
| **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] |
|
| **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] |
|
||||||
|
| **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] |
|
||||||
| **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] |
|
| **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] |
|
||||||
| **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
|
| **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
|
||||||
|
|
||||||
@ -739,6 +939,7 @@ Fake endpoint to test group parameters (optional)
|
|||||||
import org.openapitools.client.ApiClient;
|
import org.openapitools.client.ApiClient;
|
||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import org.openapitools.client.Configuration;
|
import org.openapitools.client.Configuration;
|
||||||
|
import org.openapitools.client.auth.*;
|
||||||
import org.openapitools.client.models.*;
|
import org.openapitools.client.models.*;
|
||||||
import org.openapitools.client.api.FakeApi;
|
import org.openapitools.client.api.FakeApi;
|
||||||
|
|
||||||
@ -746,6 +947,10 @@ public class Example {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
ApiClient defaultClient = Configuration.getDefaultApiClient();
|
||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
|
// Configure HTTP bearer authorization: bearer_test
|
||||||
|
HttpBearerAuth bearer_test = (HttpBearerAuth) defaultClient.getAuthentication("bearer_test");
|
||||||
|
bearer_test.setBearerToken("BEARER TOKEN");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
Integer requiredStringGroup = 56; // Integer | Required String in group parameters
|
Integer requiredStringGroup = 56; // Integer | Required String in group parameters
|
||||||
@ -785,7 +990,7 @@ null (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[bearer_test](../README.md#bearer_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -801,10 +1006,12 @@ No authorization required
|
|||||||
|
|
||||||
## testInlineAdditionalProperties
|
## testInlineAdditionalProperties
|
||||||
|
|
||||||
> testInlineAdditionalProperties(param)
|
> testInlineAdditionalProperties(requestBody)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -821,9 +1028,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
Map<String, String> requestBody = new HashMap(); // Map<String, String> | request body
|
||||||
try {
|
try {
|
||||||
apiInstance.testInlineAdditionalProperties(param);
|
apiInstance.testInlineAdditionalProperties(requestBody);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -840,7 +1047,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **param** | [**Map<String, String>**](String.md)| request body | |
|
| **requestBody** | [**Map<String, String>**](String.md)| request body | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -868,6 +1075,8 @@ No authorization required
|
|||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -929,7 +1138,7 @@ No authorization required
|
|||||||
|
|
||||||
## testQueryParameterCollectionFormat
|
## testQueryParameterCollectionFormat
|
||||||
|
|
||||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -956,8 +1165,10 @@ public class Example {
|
|||||||
List<String> http = Arrays.asList(); // List<String> |
|
List<String> http = Arrays.asList(); // List<String> |
|
||||||
List<String> url = Arrays.asList(); // List<String> |
|
List<String> url = Arrays.asList(); // List<String> |
|
||||||
List<String> context = Arrays.asList(); // List<String> |
|
List<String> context = Arrays.asList(); // List<String> |
|
||||||
|
String allowEmpty = "allowEmpty_example"; // String |
|
||||||
|
Map<String, String> language = new HashMap(); // Map<String, String> |
|
||||||
try {
|
try {
|
||||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -979,6 +1190,8 @@ public class Example {
|
|||||||
| **http** | [**List<String>**](String.md)| | |
|
| **http** | [**List<String>**](String.md)| | |
|
||||||
| **url** | [**List<String>**](String.md)| | |
|
| **url** | [**List<String>**](String.md)| | |
|
||||||
| **context** | [**List<String>**](String.md)| | |
|
| **context** | [**List<String>**](String.md)| | |
|
||||||
|
| **allowEmpty** | **String**| | |
|
||||||
|
| **language** | [**Map<String, String>**](String.md)| | [optional] |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## testClassname
|
## testClassname
|
||||||
|
|
||||||
> Client testClassname(body)
|
> Client testClassname(client)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -39,9 +39,9 @@ public class Example {
|
|||||||
//api_key_query.setApiKeyPrefix("Token");
|
//api_key_query.setApiKeyPrefix("Token");
|
||||||
|
|
||||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
Client result = apiInstance.testClassname(body);
|
Client result = apiInstance.testClassname(client);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||||
@ -59,7 +59,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
13
samples/client/petstore/java/apache-httpclient/docs/Foo.md
Normal file
13
samples/client/petstore/java/apache-httpclient/docs/Foo.md
Normal file
@ -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] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
|||||||
|**number** | **BigDecimal** | | |
|
|**number** | **BigDecimal** | | |
|
||||||
|**_float** | **Float** | | [optional] |
|
|**_float** | **Float** | | [optional] |
|
||||||
|**_double** | **Double** | | [optional] |
|
|**_double** | **Double** | | [optional] |
|
||||||
|
|**decimal** | **BigDecimal** | | [optional] |
|
||||||
|**string** | **String** | | [optional] |
|
|**string** | **String** | | [optional] |
|
||||||
|**_byte** | **byte[]** | | |
|
|**_byte** | **byte[]** | | |
|
||||||
|**binary** | **File** | | [optional] |
|
|**binary** | **File** | | [optional] |
|
||||||
@ -20,7 +21,8 @@
|
|||||||
|**dateTime** | **OffsetDateTime** | | [optional] |
|
|**dateTime** | **OffsetDateTime** | | [optional] |
|
||||||
|**uuid** | **UUID** | | [optional] |
|
|**uuid** | **UUID** | | [optional] |
|
||||||
|**password** | **String** | | |
|
|**password** | **String** | | |
|
||||||
|**bigDecimal** | **BigDecimal** | | [optional] |
|
|**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 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# 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,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,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,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** | | |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -18,10 +18,12 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## addPet
|
## addPet
|
||||||
|
|
||||||
> addPet(body)
|
> addPet(pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -43,9 +45,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
apiInstance.addPet(body);
|
apiInstance.addPet(pet);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -62,7 +64,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -81,7 +83,7 @@ null (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
|
|
||||||
@ -91,6 +93,8 @@ null (empty response body)
|
|||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -152,7 +156,7 @@ null (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid pet value | - |
|
| **400** | Invalid pet value | - |
|
||||||
|
|
||||||
|
|
||||||
@ -377,10 +381,12 @@ public class Example {
|
|||||||
|
|
||||||
## updatePet
|
## updatePet
|
||||||
|
|
||||||
> updatePet(body)
|
> updatePet(pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -402,9 +408,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
apiInstance.updatePet(body);
|
apiInstance.updatePet(pet);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -421,7 +427,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -440,7 +446,7 @@ null (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid ID supplied | - |
|
| **400** | Invalid ID supplied | - |
|
||||||
| **404** | Pet not found | - |
|
| **404** | Pet not found | - |
|
||||||
| **405** | Validation exception | - |
|
| **405** | Validation exception | - |
|
||||||
@ -452,6 +458,8 @@ null (empty response body)
|
|||||||
|
|
||||||
Updates a pet in the store with form data
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -515,6 +523,7 @@ null (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
|
|
||||||
@ -524,6 +533,8 @@ null (empty response body)
|
|||||||
|
|
||||||
uploads an image
|
uploads an image
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -597,6 +608,8 @@ public class Example {
|
|||||||
|
|
||||||
uploads an image (required)
|
uploads an image (required)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# SingleRefType
|
||||||
|
|
||||||
|
## Enum
|
||||||
|
|
||||||
|
|
||||||
|
* `ADMIN` (value: `"admin"`)
|
||||||
|
|
||||||
|
* `USER` (value: `"user"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -216,10 +216,12 @@ No authorization required
|
|||||||
|
|
||||||
## placeOrder
|
## placeOrder
|
||||||
|
|
||||||
> Order placeOrder(body)
|
> Order placeOrder(order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -236,9 +238,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
StoreApi apiInstance = new StoreApi(defaultClient);
|
StoreApi apiInstance = new StoreApi(defaultClient);
|
||||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||||
try {
|
try {
|
||||||
Order result = apiInstance.placeOrder(body);
|
Order result = apiInstance.placeOrder(order);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||||
@ -256,7 +258,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -268,7 +270,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## createUser
|
## createUser
|
||||||
|
|
||||||
> createUser(body)
|
> createUser(user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -39,9 +39,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
User body = new User(); // User | Created user object
|
User user = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
apiInstance.createUser(body);
|
apiInstance.createUser(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -58,7 +58,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**User**](User.md)| Created user object | |
|
| **user** | [**User**](User.md)| Created user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
@ -82,10 +82,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithArrayInput
|
## createUsersWithArrayInput
|
||||||
|
|
||||||
> createUsersWithArrayInput(body)
|
> createUsersWithArrayInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -102,9 +104,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
apiInstance.createUsersWithArrayInput(body);
|
apiInstance.createUsersWithArrayInput(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -121,7 +123,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -133,7 +135,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
@ -145,10 +147,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithListInput
|
## createUsersWithListInput
|
||||||
|
|
||||||
> createUsersWithListInput(body)
|
> createUsersWithListInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -165,9 +169,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
apiInstance.createUsersWithListInput(body);
|
apiInstance.createUsersWithListInput(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -184,7 +188,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -196,7 +200,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
@ -278,6 +282,8 @@ No authorization required
|
|||||||
|
|
||||||
Get user by user name
|
Get user by user name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -344,6 +350,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs user into the system
|
Logs user into the system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -411,6 +419,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -466,7 +476,7 @@ No authorization required
|
|||||||
|
|
||||||
## updateUser
|
## updateUser
|
||||||
|
|
||||||
> updateUser(username, body)
|
> updateUser(username, user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -489,9 +499,9 @@ public class Example {
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User user = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
apiInstance.updateUser(username, body);
|
apiInstance.updateUser(username, user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -509,7 +519,7 @@ public class Example {
|
|||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **username** | **String**| name that need to be deleted | |
|
| **username** | **String**| name that need to be deleted | |
|
||||||
| **body** | [**User**](User.md)| Updated user object | |
|
| **user** | [**User**](User.md)| Updated user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -521,7 +531,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
|
||||||
|
@ -254,6 +254,11 @@
|
|||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
<version>${jackson-version}</version>
|
<version>${jackson-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.openapitools</groupId>
|
||||||
|
<artifactId>jackson-databind-nullable</artifactId>
|
||||||
|
<version>${jackson-databind-nullable-version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jakarta.annotation</groupId>
|
<groupId>jakarta.annotation</groupId>
|
||||||
<artifactId>jakarta.annotation-api</artifactId>
|
<artifactId>jakarta.annotation-api</artifactId>
|
||||||
@ -274,6 +279,7 @@
|
|||||||
<httpclient-version>4.5.13</httpclient-version>
|
<httpclient-version>4.5.13</httpclient-version>
|
||||||
<jackson-version>2.13.4</jackson-version>
|
<jackson-version>2.13.4</jackson-version>
|
||||||
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
<jackson-databind-version>2.13.4.2</jackson-databind-version>
|
||||||
|
<jackson-databind-nullable-version>0.2.4</jackson-databind-nullable-version>
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
|
@ -76,6 +76,7 @@ import java.text.DateFormat;
|
|||||||
|
|
||||||
import org.openapitools.client.auth.Authentication;
|
import org.openapitools.client.auth.Authentication;
|
||||||
import org.openapitools.client.auth.HttpBasicAuth;
|
import org.openapitools.client.auth.HttpBasicAuth;
|
||||||
|
import org.openapitools.client.auth.HttpBearerAuth;
|
||||||
import org.openapitools.client.auth.ApiKeyAuth;
|
import org.openapitools.client.auth.ApiKeyAuth;
|
||||||
import org.openapitools.client.auth.OAuth;
|
import org.openapitools.client.auth.OAuth;
|
||||||
|
|
||||||
@ -86,8 +87,51 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
private String basePath = "http://petstore.swagger.io:80/v2";
|
private String basePath = "http://petstore.swagger.io:80/v2";
|
||||||
protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>(Arrays.asList(
|
protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>(Arrays.asList(
|
||||||
new ServerConfiguration(
|
new ServerConfiguration(
|
||||||
"http://petstore.swagger.io:80/v2",
|
"http://{server}.swagger.io:{port}/v2",
|
||||||
"No description provided",
|
"petstore server",
|
||||||
|
new HashMap<String, ServerVariable>() {{
|
||||||
|
put("server", new ServerVariable(
|
||||||
|
"No description provided",
|
||||||
|
"petstore",
|
||||||
|
new HashSet<String>(
|
||||||
|
Arrays.asList(
|
||||||
|
"petstore",
|
||||||
|
"qa-petstore",
|
||||||
|
"dev-petstore"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
put("port", new ServerVariable(
|
||||||
|
"No description provided",
|
||||||
|
"80",
|
||||||
|
new HashSet<String>(
|
||||||
|
Arrays.asList(
|
||||||
|
"80",
|
||||||
|
"8080"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
}}
|
||||||
|
),
|
||||||
|
new ServerConfiguration(
|
||||||
|
"https://localhost:8080/{version}",
|
||||||
|
"The local server",
|
||||||
|
new HashMap<String, ServerVariable>() {{
|
||||||
|
put("version", new ServerVariable(
|
||||||
|
"No description provided",
|
||||||
|
"v2",
|
||||||
|
new HashSet<String>(
|
||||||
|
Arrays.asList(
|
||||||
|
"v1",
|
||||||
|
"v2"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
}}
|
||||||
|
),
|
||||||
|
new ServerConfiguration(
|
||||||
|
"https://127.0.0.1/no_varaible",
|
||||||
|
"The local server without variables",
|
||||||
new HashMap<String, ServerVariable>()
|
new HashMap<String, ServerVariable>()
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
@ -130,7 +174,9 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
authentications = new HashMap<String, Authentication>();
|
authentications = new HashMap<String, Authentication>();
|
||||||
authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
|
authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
|
||||||
authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
|
authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
|
||||||
|
authentications.put("bearer_test", new HttpBearerAuth("bearer"));
|
||||||
authentications.put("http_basic_test", new HttpBasicAuth());
|
authentications.put("http_basic_test", new HttpBasicAuth());
|
||||||
|
authentications.put("http_signature_test", new HttpBearerAuth("signature"));
|
||||||
authentications.put("petstore_auth", new OAuth());
|
authentications.put("petstore_auth", new OAuth());
|
||||||
// Prevent the authentications from being modified.
|
// Prevent the authentications from being modified.
|
||||||
authentications = Collections.unmodifiableMap(authentications);
|
authentications = Collections.unmodifiableMap(authentications);
|
||||||
@ -272,6 +318,21 @@ public class ApiClient extends JavaTimeFormatter {
|
|||||||
return tempFolderPath;
|
return tempFolderPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper method to set access token for the first Bearer authentication.
|
||||||
|
* @param bearerToken Bearer token
|
||||||
|
* @return API client
|
||||||
|
*/
|
||||||
|
public ApiClient setBearerToken(String bearerToken) {
|
||||||
|
for (Authentication auth : authentications.values()) {
|
||||||
|
if (auth instanceof HttpBearerAuth) {
|
||||||
|
((HttpBearerAuth) auth).setBearerToken(bearerToken);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new RuntimeException("No Bearer authentication configured!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method to set username for the first HTTP basic authentication.
|
* Helper method to set username for the first HTTP basic authentication.
|
||||||
|
@ -51,16 +51,16 @@ public class AnotherFakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags and operation ID starting with number
|
* To test special tags and operation ID starting with number
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Client call123testSpecialTags(Client body) throws ApiException {
|
public Client call123testSpecialTags(Client client) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = client;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -0,0 +1,101 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.Configuration;
|
||||||
|
import org.openapitools.client.model.*;
|
||||||
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
|
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class DefaultApi {
|
||||||
|
private ApiClient apiClient;
|
||||||
|
|
||||||
|
public DefaultApi() {
|
||||||
|
this(Configuration.getDefaultApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public DefaultApi(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiClient getApiClient() {
|
||||||
|
return apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setApiClient(ApiClient apiClient) {
|
||||||
|
this.apiClient = apiClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return FooGetDefaultResponse
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public FooGetDefaultResponse fooGet() throws ApiException {
|
||||||
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
|
// create path and map variables
|
||||||
|
String localVarPath = "/foo";
|
||||||
|
|
||||||
|
// query params
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
TypeReference<FooGetDefaultResponse> localVarReturnType = new TypeReference<FooGetDefaultResponse>() {};
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
"GET",
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarPostBody,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
localVarReturnType
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -22,13 +22,16 @@ import org.openapitools.client.Pair;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
import org.openapitools.client.model.EnumClass;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.FileSchemaTestClass;
|
import org.openapitools.client.model.FileSchemaTestClass;
|
||||||
|
import org.openapitools.client.model.HealthCheckResult;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.OuterComposite;
|
import org.openapitools.client.model.OuterComposite;
|
||||||
|
import org.openapitools.client.model.OuterObjectWithEnumProperty;
|
||||||
|
import org.openapitools.client.model.Pet;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.openapitools.client.model.XmlItem;
|
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -57,21 +60,16 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* Health check endpoint
|
||||||
* this route creates an XmlItem
|
*
|
||||||
* @param xmlItem XmlItem Body (required)
|
* @return HealthCheckResult
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createXmlItem(XmlItem xmlItem) throws ApiException {
|
public HealthCheckResult fakeHealthGet() throws ApiException {
|
||||||
Object localVarPostBody = xmlItem;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'xmlItem' is set
|
|
||||||
if (xmlItem == null) {
|
|
||||||
throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem");
|
|
||||||
}
|
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake/create_xml_item";
|
String localVarPath = "/fake/health";
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
@ -84,20 +82,80 @@ public class FakeApi {
|
|||||||
|
|
||||||
|
|
||||||
final String[] localVarAccepts = {
|
final String[] localVarAccepts = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
"application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16"
|
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
TypeReference<HealthCheckResult> localVarReturnType = new TypeReference<HealthCheckResult>() {};
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
"GET",
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarPostBody,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
localVarReturnType
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* test http signature authentication
|
||||||
|
*
|
||||||
|
* @param pet Pet object that needs to be added to the store (required)
|
||||||
|
* @param query1 query parameter (optional)
|
||||||
|
* @param header1 header parameter (optional)
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException {
|
||||||
|
Object localVarPostBody = pet;
|
||||||
|
|
||||||
|
// verify the required parameter 'pet' is set
|
||||||
|
if (pet == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'pet' when calling fakeHttpSignatureTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
// create path and map variables
|
||||||
|
String localVarPath = "/fake/http-signature-test";
|
||||||
|
|
||||||
|
// query params
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
localVarQueryParams.addAll(apiClient.parameterToPair("query_1", query1));
|
||||||
|
if (header1 != null)
|
||||||
|
localVarHeaderParams.put("header_1", apiClient.parameterToString(header1));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json", "application/xml"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { "http_signature_test" };
|
||||||
|
|
||||||
apiClient.invokeAPI(
|
apiClient.invokeAPI(
|
||||||
localVarPath,
|
localVarPath,
|
||||||
"POST",
|
"GET",
|
||||||
localVarQueryParams,
|
localVarQueryParams,
|
||||||
localVarCollectionQueryParams,
|
localVarCollectionQueryParams,
|
||||||
localVarPostBody,
|
localVarPostBody,
|
||||||
@ -139,7 +197,7 @@ public class FakeApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -164,12 +222,12 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param body Input composite as post body (optional)
|
* @param outerComposite Input composite as post body (optional)
|
||||||
* @return OuterComposite
|
* @return OuterComposite
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
|
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = outerComposite;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake/outer/composite";
|
String localVarPath = "/fake/outer/composite";
|
||||||
@ -190,7 +248,7 @@ public class FakeApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -241,7 +299,7 @@ public class FakeApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -292,7 +350,7 @@ public class FakeApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -316,16 +374,126 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* Test serialization of enum (int) properties with examples
|
||||||
* @param body (required)
|
* @param outerObjectWithEnumProperty Input enum (int) as post body (required)
|
||||||
|
* @return OuterObjectWithEnumProperty
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
|
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
|
||||||
|
Object localVarPostBody = outerObjectWithEnumProperty;
|
||||||
|
|
||||||
|
// verify the required parameter 'outerObjectWithEnumProperty' is set
|
||||||
|
if (outerObjectWithEnumProperty == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'outerObjectWithEnumProperty' when calling fakePropertyEnumIntegerSerialize");
|
||||||
|
}
|
||||||
|
|
||||||
|
// create path and map variables
|
||||||
|
String localVarPath = "/fake/property/enum-int";
|
||||||
|
|
||||||
|
// query params
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
"*/*"
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
TypeReference<OuterObjectWithEnumProperty> localVarReturnType = new TypeReference<OuterObjectWithEnumProperty>() {};
|
||||||
|
return apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
"POST",
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarPostBody,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
localVarReturnType
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* For this test, the body has to be a binary file.
|
||||||
|
* @param body image to upload (required)
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public void testBodyWithBinary(File body) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = body;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body == null) {
|
if (body == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithBinary");
|
||||||
|
}
|
||||||
|
|
||||||
|
// create path and map variables
|
||||||
|
String localVarPath = "/fake/body-with-binary";
|
||||||
|
|
||||||
|
// query params
|
||||||
|
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||||
|
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
|
||||||
|
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||||
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
final String[] localVarAccepts = {
|
||||||
|
|
||||||
|
};
|
||||||
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
|
final String[] localVarContentTypes = {
|
||||||
|
"image/png"
|
||||||
|
};
|
||||||
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
String[] localVarAuthNames = new String[] { };
|
||||||
|
|
||||||
|
apiClient.invokeAPI(
|
||||||
|
localVarPath,
|
||||||
|
"PUT",
|
||||||
|
localVarQueryParams,
|
||||||
|
localVarCollectionQueryParams,
|
||||||
|
localVarPostBody,
|
||||||
|
localVarHeaderParams,
|
||||||
|
localVarCookieParams,
|
||||||
|
localVarFormParams,
|
||||||
|
localVarAccept,
|
||||||
|
localVarContentType,
|
||||||
|
localVarAuthNames,
|
||||||
|
null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* For this test, the body for this request must reference a schema named `File`.
|
||||||
|
* @param fileSchemaTestClass (required)
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||||
|
Object localVarPostBody = fileSchemaTestClass;
|
||||||
|
|
||||||
|
// verify the required parameter 'fileSchemaTestClass' is set
|
||||||
|
if (fileSchemaTestClass == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -372,20 +540,20 @@ public class FakeApi {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param query (required)
|
* @param query (required)
|
||||||
* @param body (required)
|
* @param user (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testBodyWithQueryParams(String query, User body) throws ApiException {
|
public void testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = user;
|
||||||
|
|
||||||
// verify the required parameter 'query' is set
|
// verify the required parameter 'query' is set
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -432,16 +600,16 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Client testClientModel(Client body) throws ApiException {
|
public Client testClientModel(Client client) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = client;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -486,8 +654,8 @@ public class FakeApi {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param number None (required)
|
* @param number None (required)
|
||||||
* @param _double None (required)
|
* @param _double None (required)
|
||||||
* @param patternWithoutDelimiter None (required)
|
* @param patternWithoutDelimiter None (required)
|
||||||
@ -604,11 +772,12 @@ if (paramCallback != null)
|
|||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
|
* @param enumQueryModelArray (optional
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -621,10 +790,11 @@ if (paramCallback != null)
|
|||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "enum_query_string_array", enumQueryStringArray));
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_string", enumQueryString));
|
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_string", enumQueryString));
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_integer", enumQueryInteger));
|
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_integer", enumQueryInteger));
|
||||||
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_double", enumQueryDouble));
|
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_double", enumQueryDouble));
|
||||||
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "enum_query_model_array", enumQueryModelArray));
|
||||||
if (enumHeaderStringArray != null)
|
if (enumHeaderStringArray != null)
|
||||||
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
|
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
|
||||||
if (enumHeaderString != null)
|
if (enumHeaderString != null)
|
||||||
@ -723,7 +893,7 @@ if (booleanGroup != null)
|
|||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
String[] localVarAuthNames = new String[] { };
|
String[] localVarAuthNames = new String[] { "bearer_test" };
|
||||||
|
|
||||||
apiClient.invokeAPI(
|
apiClient.invokeAPI(
|
||||||
localVarPath,
|
localVarPath,
|
||||||
@ -743,15 +913,15 @@ if (booleanGroup != null)
|
|||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param param request body (required)
|
* @param requestBody request body (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
|
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||||
Object localVarPostBody = param;
|
Object localVarPostBody = requestBody;
|
||||||
|
|
||||||
// verify the required parameter 'param' is set
|
// verify the required parameter 'requestBody' is set
|
||||||
if (param == null) {
|
if (requestBody == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -866,9 +1036,11 @@ if (param2 != null)
|
|||||||
* @param http (required)
|
* @param http (required)
|
||||||
* @param url (required)
|
* @param url (required)
|
||||||
* @param context (required)
|
* @param context (required)
|
||||||
|
* @param allowEmpty (required)
|
||||||
|
* @param language (optional
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws ApiException {
|
||||||
Object localVarPostBody = null;
|
Object localVarPostBody = null;
|
||||||
|
|
||||||
// verify the required parameter 'pipe' is set
|
// verify the required parameter 'pipe' is set
|
||||||
@ -896,6 +1068,11 @@ if (param2 != null)
|
|||||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// verify the required parameter 'allowEmpty' is set
|
||||||
|
if (allowEmpty == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'allowEmpty' when calling testQueryParameterCollectionFormat");
|
||||||
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
String localVarPath = "/fake/test-query-parameters";
|
String localVarPath = "/fake/test-query-parameters";
|
||||||
|
|
||||||
@ -906,11 +1083,13 @@ if (param2 != null)
|
|||||||
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
Map<String, String> localVarCookieParams = new HashMap<String, String>();
|
||||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||||
|
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("pipes", "pipe", pipe));
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("ssv", "http", http));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("ssv", "http", http));
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||||
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||||
|
localVarQueryParams.addAll(apiClient.parameterToPair("language", language));
|
||||||
|
localVarQueryParams.addAll(apiClient.parameterToPair("allowEmpty", allowEmpty));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,16 +51,16 @@ public class FakeClassnameTags123Api {
|
|||||||
/**
|
/**
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return Client
|
* @return Client
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Client testClassname(Client body) throws ApiException {
|
public Client testClassname(Client client) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = client;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -54,15 +54,15 @@ public class PetApi {
|
|||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param pet Pet object that needs to be added to the store (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void addPet(Pet body) throws ApiException {
|
public void addPet(Pet pet) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = pet;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null) {
|
if (pet == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
|
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -339,15 +339,15 @@ public class PetApi {
|
|||||||
/**
|
/**
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param body Pet object that needs to be added to the store (required)
|
* @param pet Pet object that needs to be added to the store (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updatePet(Pet body) throws ApiException {
|
public void updatePet(Pet pet) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = pet;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'pet' is set
|
||||||
if (body == null) {
|
if (pet == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
|
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
|
@ -213,16 +213,16 @@ public class StoreApi {
|
|||||||
/**
|
/**
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param body order placed for purchasing the pet (required)
|
* @param order order placed for purchasing the pet (required)
|
||||||
* @return Order
|
* @return Order
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public Order placeOrder(Order body) throws ApiException {
|
public Order placeOrder(Order order) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = order;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'order' is set
|
||||||
if (body == null) {
|
if (order == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
|
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -244,7 +244,7 @@ public class StoreApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
@ -52,15 +52,15 @@ public class UserApi {
|
|||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param body Created user object (required)
|
* @param user Created user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUser(User body) throws ApiException {
|
public void createUser(User user) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = user;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -82,7 +82,7 @@ public class UserApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -106,15 +106,15 @@ public class UserApi {
|
|||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param user List of user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithArrayInput(List<User> body) throws ApiException {
|
public void createUsersWithArrayInput(List<User> user) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = user;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -136,7 +136,7 @@ public class UserApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -160,15 +160,15 @@ public class UserApi {
|
|||||||
/**
|
/**
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param body List of user object (required)
|
* @param user List of user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void createUsersWithListInput(List<User> body) throws ApiException {
|
public void createUsersWithListInput(List<User> user) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = user;
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -190,7 +190,7 @@ public class UserApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
@ -439,20 +439,20 @@ public class UserApi {
|
|||||||
* Updated user
|
* Updated user
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
* @param username name that need to be deleted (required)
|
* @param username name that need to be deleted (required)
|
||||||
* @param body Updated user object (required)
|
* @param user Updated user object (required)
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public void updateUser(String username, User body) throws ApiException {
|
public void updateUser(String username, User user) throws ApiException {
|
||||||
Object localVarPostBody = body;
|
Object localVarPostBody = user;
|
||||||
|
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if (username == null) {
|
if (username == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
|
||||||
}
|
}
|
||||||
|
|
||||||
// create path and map variables
|
// create path and map variables
|
||||||
@ -475,7 +475,7 @@ public class UserApi {
|
|||||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||||
|
|
||||||
final String[] localVarContentTypes = {
|
final String[] localVarContentTypes = {
|
||||||
|
"application/json"
|
||||||
};
|
};
|
||||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||||
|
|
||||||
|
@ -20,9 +20,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
@ -31,403 +29,85 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
* AdditionalPropertiesClass
|
* AdditionalPropertiesClass
|
||||||
*/
|
*/
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING,
|
AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER,
|
AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
|
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
|
|
||||||
})
|
})
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class AdditionalPropertiesClass {
|
public class AdditionalPropertiesClass {
|
||||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
|
||||||
private Map<String, String> mapString = null;
|
private Map<String, String> mapProperty = null;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
||||||
private Map<String, BigDecimal> mapNumber = null;
|
private Map<String, Map<String, String>> mapOfMapProperty = null;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
|
||||||
private Map<String, Integer> mapInteger = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
|
||||||
private Map<String, Boolean> mapBoolean = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
|
||||||
private Map<String, List<Integer>> mapArrayInteger = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
|
||||||
private Map<String, List<Object>> mapArrayAnytype = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
|
||||||
private Map<String, Map<String, String>> mapMapString = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
|
||||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
|
||||||
private Object anytype1;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
|
||||||
private Object anytype2;
|
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
|
||||||
private Object anytype3;
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass() {
|
public AdditionalPropertiesClass() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||||
|
|
||||||
this.mapString = mapString;
|
this.mapProperty = mapProperty;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
if (this.mapString == null) {
|
if (this.mapProperty == null) {
|
||||||
this.mapString = new HashMap<>();
|
this.mapProperty = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapString.put(key, mapStringItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapString
|
* Get mapProperty
|
||||||
* @return mapString
|
* @return mapProperty
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
public Map<String, String> getMapString() {
|
public Map<String, String> getMapProperty() {
|
||||||
return mapString;
|
return mapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
public void setMapString(Map<String, String> mapString) {
|
public void setMapProperty(Map<String, String> mapProperty) {
|
||||||
this.mapString = mapString;
|
this.mapProperty = mapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
|
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
|
|
||||||
this.mapNumber = mapNumber;
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
if (this.mapNumber == null) {
|
if (this.mapOfMapProperty == null) {
|
||||||
this.mapNumber = new HashMap<>();
|
this.mapOfMapProperty = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.mapNumber.put(key, mapNumberItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapNumber
|
* Get mapOfMapProperty
|
||||||
* @return mapNumber
|
* @return mapOfMapProperty
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
return mapNumber;
|
return mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
|
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
this.mapNumber = mapNumber;
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
|
|
||||||
|
|
||||||
this.mapInteger = mapInteger;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
|
|
||||||
if (this.mapInteger == null) {
|
|
||||||
this.mapInteger = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapInteger.put(key, mapIntegerItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapInteger
|
|
||||||
* @return mapInteger
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Integer> getMapInteger() {
|
|
||||||
return mapInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapInteger(Map<String, Integer> mapInteger) {
|
|
||||||
this.mapInteger = mapInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
|
|
||||||
|
|
||||||
this.mapBoolean = mapBoolean;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
|
|
||||||
if (this.mapBoolean == null) {
|
|
||||||
this.mapBoolean = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapBoolean.put(key, mapBooleanItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapBoolean
|
|
||||||
* @return mapBoolean
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Boolean> getMapBoolean() {
|
|
||||||
return mapBoolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
|
|
||||||
this.mapBoolean = mapBoolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
|
||||||
|
|
||||||
this.mapArrayInteger = mapArrayInteger;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
|
|
||||||
if (this.mapArrayInteger == null) {
|
|
||||||
this.mapArrayInteger = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapArrayInteger.put(key, mapArrayIntegerItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapArrayInteger
|
|
||||||
* @return mapArrayInteger
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
|
||||||
return mapArrayInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
|
||||||
this.mapArrayInteger = mapArrayInteger;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
|
||||||
|
|
||||||
this.mapArrayAnytype = mapArrayAnytype;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
|
|
||||||
if (this.mapArrayAnytype == null) {
|
|
||||||
this.mapArrayAnytype = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapArrayAnytype.put(key, mapArrayAnytypeItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapArrayAnytype
|
|
||||||
* @return mapArrayAnytype
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
|
||||||
return mapArrayAnytype;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
|
||||||
this.mapArrayAnytype = mapArrayAnytype;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
|
|
||||||
|
|
||||||
this.mapMapString = mapMapString;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
|
|
||||||
if (this.mapMapString == null) {
|
|
||||||
this.mapMapString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapString.put(key, mapMapStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapMapString
|
|
||||||
* @return mapMapString
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapString() {
|
|
||||||
return mapMapString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
|
|
||||||
this.mapMapString = mapMapString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
|
||||||
|
|
||||||
this.mapMapAnytype = mapMapAnytype;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
|
|
||||||
if (this.mapMapAnytype == null) {
|
|
||||||
this.mapMapAnytype = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapAnytype.put(key, mapMapAnytypeItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get mapMapAnytype
|
|
||||||
* @return mapMapAnytype
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
|
||||||
return mapMapAnytype;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
|
||||||
this.mapMapAnytype = mapMapAnytype;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
|
||||||
|
|
||||||
this.anytype1 = anytype1;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get anytype1
|
|
||||||
* @return anytype1
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getAnytype1() {
|
|
||||||
return anytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setAnytype1(Object anytype1) {
|
|
||||||
this.anytype1 = anytype1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype2(Object anytype2) {
|
|
||||||
|
|
||||||
this.anytype2 = anytype2;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get anytype2
|
|
||||||
* @return anytype2
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getAnytype2() {
|
|
||||||
return anytype2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setAnytype2(Object anytype2) {
|
|
||||||
this.anytype2 = anytype2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
|
||||||
|
|
||||||
this.anytype3 = anytype3;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get anytype3
|
|
||||||
* @return anytype3
|
|
||||||
**/
|
|
||||||
@javax.annotation.Nullable
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
|
|
||||||
public Object getAnytype3() {
|
|
||||||
return anytype3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
|
||||||
public void setAnytype3(Object anytype3) {
|
|
||||||
this.anytype3 = anytype3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -440,39 +120,21 @@ public class AdditionalPropertiesClass {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
||||||
return Objects.equals(this.mapString, additionalPropertiesClass.mapString) &&
|
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
|
||||||
Objects.equals(this.mapNumber, additionalPropertiesClass.mapNumber) &&
|
Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
|
||||||
Objects.equals(this.mapInteger, additionalPropertiesClass.mapInteger) &&
|
|
||||||
Objects.equals(this.mapBoolean, additionalPropertiesClass.mapBoolean) &&
|
|
||||||
Objects.equals(this.mapArrayInteger, additionalPropertiesClass.mapArrayInteger) &&
|
|
||||||
Objects.equals(this.mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) &&
|
|
||||||
Objects.equals(this.mapMapString, additionalPropertiesClass.mapMapString) &&
|
|
||||||
Objects.equals(this.mapMapAnytype, additionalPropertiesClass.mapMapAnytype) &&
|
|
||||||
Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) &&
|
|
||||||
Objects.equals(this.anytype2, additionalPropertiesClass.anytype2) &&
|
|
||||||
Objects.equals(this.anytype3, additionalPropertiesClass.anytype3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
return Objects.hash(mapProperty, mapOfMapProperty);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesClass {\n");
|
sb.append("class AdditionalPropertiesClass {\n");
|
||||||
sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n");
|
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
|
||||||
sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n");
|
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n");
|
||||||
sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n");
|
|
||||||
sb.append(" mapBoolean: ").append(toIndentedString(mapBoolean)).append("\n");
|
|
||||||
sb.append(" mapArrayInteger: ").append(toIndentedString(mapArrayInteger)).append("\n");
|
|
||||||
sb.append(" mapArrayAnytype: ").append(toIndentedString(mapArrayAnytype)).append("\n");
|
|
||||||
sb.append(" mapMapString: ").append(toIndentedString(mapMapString)).append("\n");
|
|
||||||
sb.append(" mapMapAnytype: ").append(toIndentedString(mapMapAnytype)).append("\n");
|
|
||||||
sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n");
|
|
||||||
sb.append(" anytype2: ").append(toIndentedString(anytype2)).append("\n");
|
|
||||||
sb.append(" anytype3: ").append(toIndentedString(anytype3)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,137 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import org.openapitools.client.model.SingleRefType;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AllOfWithSingleRef
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
AllOfWithSingleRef.JSON_PROPERTY_USERNAME,
|
||||||
|
AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class AllOfWithSingleRef {
|
||||||
|
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType";
|
||||||
|
private SingleRefType singleRefType;
|
||||||
|
|
||||||
|
public AllOfWithSingleRef() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public AllOfWithSingleRef username(String username) {
|
||||||
|
|
||||||
|
this.username = username;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get username
|
||||||
|
* @return username
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getUsername() {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setUsername(String username) {
|
||||||
|
this.username = username;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) {
|
||||||
|
|
||||||
|
this.singleRefType = singleRefType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get singleRefType
|
||||||
|
* @return singleRefType
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public SingleRefType getSingleRefType() {
|
||||||
|
return singleRefType;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setSingleRefType(SingleRefType singleRefType) {
|
||||||
|
this.singleRefType = singleRefType;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AllOfWithSingleRef allOfWithSingleRef = (AllOfWithSingleRef) o;
|
||||||
|
return Objects.equals(this.username, allOfWithSingleRef.username) &&
|
||||||
|
Objects.equals(this.singleRefType, allOfWithSingleRef.singleRefType);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(username, singleRefType);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AllOfWithSingleRef {\n");
|
||||||
|
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||||
|
sb.append(" singleRefType: ").append(toIndentedString(singleRefType)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -23,7 +23,6 @@ import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import org.openapitools.client.model.BigCat;
|
|
||||||
import org.openapitools.client.model.Cat;
|
import org.openapitools.client.model.Cat;
|
||||||
import org.openapitools.client.model.Dog;
|
import org.openapitools.client.model.Dog;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
@ -43,7 +42,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
)
|
)
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({
|
||||||
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
|
|
||||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||||
})
|
})
|
||||||
|
@ -24,7 +24,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import org.openapitools.client.model.BigCat;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
@ -40,9 +39,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
allowSetters = true // allows the className to be set during deserialization
|
allowSetters = true // allows the className to be set during deserialization
|
||||||
)
|
)
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||||
@JsonSubTypes({
|
|
||||||
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
|
|
||||||
})
|
|
||||||
|
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||||
|
@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DeprecatedObject
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
DeprecatedObject.JSON_PROPERTY_NAME
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class DeprecatedObject {
|
||||||
|
public static final String JSON_PROPERTY_NAME = "name";
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public DeprecatedObject() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public DeprecatedObject name(String name) {
|
||||||
|
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get name
|
||||||
|
* @return name
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_NAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_NAME)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
DeprecatedObject deprecatedObject = (DeprecatedObject) o;
|
||||||
|
return Objects.equals(this.name, deprecatedObject.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class DeprecatedObject {\n");
|
||||||
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -21,6 +21,13 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
|||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import org.openapitools.client.model.OuterEnum;
|
import org.openapitools.client.model.OuterEnum;
|
||||||
|
import org.openapitools.client.model.OuterEnumDefaultValue;
|
||||||
|
import org.openapitools.client.model.OuterEnumInteger;
|
||||||
|
import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
@ -32,7 +39,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
|
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
|
||||||
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
|
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
|
||||||
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM
|
EnumTest.JSON_PROPERTY_OUTER_ENUM,
|
||||||
|
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER,
|
||||||
|
EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE,
|
||||||
|
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE
|
||||||
})
|
})
|
||||||
@JsonTypeName("Enum_Test")
|
@JsonTypeName("Enum_Test")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@ -194,7 +204,16 @@ public class EnumTest {
|
|||||||
private EnumNumberEnum enumNumber;
|
private EnumNumberEnum enumNumber;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||||
private OuterEnum outerEnum;
|
private JsonNullable<OuterEnum> outerEnum = JsonNullable.<OuterEnum>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
|
||||||
|
private OuterEnumInteger outerEnumInteger;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
|
||||||
|
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
|
||||||
|
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
|
||||||
|
|
||||||
public EnumTest() {
|
public EnumTest() {
|
||||||
}
|
}
|
||||||
@ -304,8 +323,8 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnum(OuterEnum outerEnum) {
|
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||||
|
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
||||||
|
|
||||||
this.outerEnum = outerEnum;
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -314,18 +333,104 @@ public class EnumTest {
|
|||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public OuterEnum getOuterEnum() {
|
||||||
|
return outerEnum.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
public OuterEnum getOuterEnum() {
|
public JsonNullable<OuterEnum> getOuterEnum_JsonNullable() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||||
|
public void setOuterEnum_JsonNullable(JsonNullable<OuterEnum> outerEnum) {
|
||||||
|
this.outerEnum = outerEnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOuterEnum(OuterEnum outerEnum) {
|
||||||
|
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
|
||||||
|
|
||||||
|
this.outerEnumInteger = outerEnumInteger;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get outerEnumInteger
|
||||||
|
* @return outerEnumInteger
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
public void setOuterEnum(OuterEnum outerEnum) {
|
|
||||||
this.outerEnum = outerEnum;
|
public OuterEnumInteger getOuterEnumInteger() {
|
||||||
|
return outerEnumInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
|
||||||
|
this.outerEnumInteger = outerEnumInteger;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
||||||
|
|
||||||
|
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get outerEnumDefaultValue
|
||||||
|
* @return outerEnumDefaultValue
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public OuterEnumDefaultValue getOuterEnumDefaultValue() {
|
||||||
|
return outerEnumDefaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
||||||
|
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
||||||
|
|
||||||
|
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get outerEnumIntegerDefaultValue
|
||||||
|
* @return outerEnumIntegerDefaultValue
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
|
||||||
|
return outerEnumIntegerDefaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
||||||
|
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -342,12 +447,26 @@ public class EnumTest {
|
|||||||
Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
|
Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
|
||||||
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
||||||
Objects.equals(this.enumNumber, enumTest.enumNumber) &&
|
Objects.equals(this.enumNumber, enumTest.enumNumber) &&
|
||||||
Objects.equals(this.outerEnum, enumTest.outerEnum);
|
equalsNullable(this.outerEnum, enumTest.outerEnum) &&
|
||||||
|
Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
|
||||||
|
Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
|
||||||
|
Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, hashCodeNullable(outerEnum), outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -359,6 +478,9 @@ public class EnumTest {
|
|||||||
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
||||||
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
||||||
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
|
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
|
||||||
|
sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n");
|
||||||
|
sb.append(" outerEnumDefaultValue: ").append(toIndentedString(outerEnumDefaultValue)).append("\n");
|
||||||
|
sb.append(" outerEnumIntegerDefaultValue: ").append(toIndentedString(outerEnumIntegerDefaultValue)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,104 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Foo
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
Foo.JSON_PROPERTY_BAR
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class Foo {
|
||||||
|
public static final String JSON_PROPERTY_BAR = "bar";
|
||||||
|
private String bar = "bar";
|
||||||
|
|
||||||
|
public Foo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Foo bar(String bar) {
|
||||||
|
|
||||||
|
this.bar = bar;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get bar
|
||||||
|
* @return bar
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_BAR)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getBar() {
|
||||||
|
return bar;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_BAR)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setBar(String bar) {
|
||||||
|
this.bar = bar;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Foo foo = (Foo) o;
|
||||||
|
return Objects.equals(this.bar, foo.bar);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(bar);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Foo {\n");
|
||||||
|
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import org.openapitools.client.model.Foo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FooGetDefaultResponse
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
FooGetDefaultResponse.JSON_PROPERTY_STRING
|
||||||
|
})
|
||||||
|
@JsonTypeName("_foo_get_default_response")
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class FooGetDefaultResponse {
|
||||||
|
public static final String JSON_PROPERTY_STRING = "string";
|
||||||
|
private Foo string;
|
||||||
|
|
||||||
|
public FooGetDefaultResponse() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public FooGetDefaultResponse string(Foo string) {
|
||||||
|
|
||||||
|
this.string = string;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get string
|
||||||
|
* @return string
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_STRING)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public Foo getString() {
|
||||||
|
return string;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_STRING)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setString(Foo string) {
|
||||||
|
this.string = string;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
FooGetDefaultResponse fooGetDefaultResponse = (FooGetDefaultResponse) o;
|
||||||
|
return Objects.equals(this.string, fooGetDefaultResponse.string);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(string);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class FooGetDefaultResponse {\n");
|
||||||
|
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
FormatTest.JSON_PROPERTY_NUMBER,
|
FormatTest.JSON_PROPERTY_NUMBER,
|
||||||
FormatTest.JSON_PROPERTY_FLOAT,
|
FormatTest.JSON_PROPERTY_FLOAT,
|
||||||
FormatTest.JSON_PROPERTY_DOUBLE,
|
FormatTest.JSON_PROPERTY_DOUBLE,
|
||||||
|
FormatTest.JSON_PROPERTY_DECIMAL,
|
||||||
FormatTest.JSON_PROPERTY_STRING,
|
FormatTest.JSON_PROPERTY_STRING,
|
||||||
FormatTest.JSON_PROPERTY_BYTE,
|
FormatTest.JSON_PROPERTY_BYTE,
|
||||||
FormatTest.JSON_PROPERTY_BINARY,
|
FormatTest.JSON_PROPERTY_BINARY,
|
||||||
@ -45,7 +46,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||||
FormatTest.JSON_PROPERTY_UUID,
|
FormatTest.JSON_PROPERTY_UUID,
|
||||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS,
|
||||||
|
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER
|
||||||
})
|
})
|
||||||
@JsonTypeName("format_test")
|
@JsonTypeName("format_test")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@ -68,6 +70,9 @@ public class FormatTest {
|
|||||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||||
private Double _double;
|
private Double _double;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_DECIMAL = "decimal";
|
||||||
|
private BigDecimal decimal;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_STRING = "string";
|
public static final String JSON_PROPERTY_STRING = "string";
|
||||||
private String string;
|
private String string;
|
||||||
|
|
||||||
@ -89,8 +94,11 @@ public class FormatTest {
|
|||||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
|
||||||
private BigDecimal bigDecimal;
|
private String patternWithDigits;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
|
||||||
|
private String patternWithDigitsAndDelimiter;
|
||||||
|
|
||||||
public FormatTest() {
|
public FormatTest() {
|
||||||
}
|
}
|
||||||
@ -261,6 +269,32 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public FormatTest decimal(BigDecimal decimal) {
|
||||||
|
|
||||||
|
this.decimal = decimal;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get decimal
|
||||||
|
* @return decimal
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_DECIMAL)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public BigDecimal getDecimal() {
|
||||||
|
return decimal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DECIMAL)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setDecimal(BigDecimal decimal) {
|
||||||
|
this.decimal = decimal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public FormatTest string(String string) {
|
public FormatTest string(String string) {
|
||||||
|
|
||||||
this.string = string;
|
this.string = string;
|
||||||
@ -443,29 +477,55 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
public FormatTest patternWithDigits(String patternWithDigits) {
|
||||||
|
|
||||||
this.bigDecimal = bigDecimal;
|
this.patternWithDigits = patternWithDigits;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get bigDecimal
|
* A string that is a 10 digit number. Can have leading zeros.
|
||||||
* @return bigDecimal
|
* @return patternWithDigits
|
||||||
**/
|
**/
|
||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
public BigDecimal getBigDecimal() {
|
public String getPatternWithDigits() {
|
||||||
return bigDecimal;
|
return patternWithDigits;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
public void setPatternWithDigits(String patternWithDigits) {
|
||||||
this.bigDecimal = bigDecimal;
|
this.patternWithDigits = patternWithDigits;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
||||||
|
|
||||||
|
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
||||||
|
* @return patternWithDigitsAndDelimiter
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getPatternWithDigitsAndDelimiter() {
|
||||||
|
return patternWithDigitsAndDelimiter;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
||||||
|
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -484,6 +544,7 @@ public class FormatTest {
|
|||||||
Objects.equals(this.number, formatTest.number) &&
|
Objects.equals(this.number, formatTest.number) &&
|
||||||
Objects.equals(this._float, formatTest._float) &&
|
Objects.equals(this._float, formatTest._float) &&
|
||||||
Objects.equals(this._double, formatTest._double) &&
|
Objects.equals(this._double, formatTest._double) &&
|
||||||
|
Objects.equals(this.decimal, formatTest.decimal) &&
|
||||||
Objects.equals(this.string, formatTest.string) &&
|
Objects.equals(this.string, formatTest.string) &&
|
||||||
Arrays.equals(this._byte, formatTest._byte) &&
|
Arrays.equals(this._byte, formatTest._byte) &&
|
||||||
Objects.equals(this.binary, formatTest.binary) &&
|
Objects.equals(this.binary, formatTest.binary) &&
|
||||||
@ -491,12 +552,13 @@ public class FormatTest {
|
|||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||||
Objects.equals(this.password, formatTest.password) &&
|
Objects.equals(this.password, formatTest.password) &&
|
||||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
|
||||||
|
Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
return Objects.hash(integer, int32, int64, number, _float, _double, decimal, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -509,6 +571,7 @@ public class FormatTest {
|
|||||||
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
||||||
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
||||||
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
||||||
|
sb.append(" decimal: ").append(toIndentedString(decimal)).append("\n");
|
||||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
||||||
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
@ -516,7 +579,8 @@ public class FormatTest {
|
|||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n");
|
||||||
|
sb.append(" patternWithDigitsAndDelimiter: ").append(toIndentedString(patternWithDigitsAndDelimiter)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,127 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class HealthCheckResult {
|
||||||
|
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
|
||||||
|
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
|
||||||
|
|
||||||
|
public HealthCheckResult() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public HealthCheckResult nullableMessage(String nullableMessage) {
|
||||||
|
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get nullableMessage
|
||||||
|
* @return nullableMessage
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public String getNullableMessage() {
|
||||||
|
return nullableMessage.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<String> getNullableMessage_JsonNullable() {
|
||||||
|
return nullableMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
||||||
|
public void setNullableMessage_JsonNullable(JsonNullable<String> nullableMessage) {
|
||||||
|
this.nullableMessage = nullableMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNullableMessage(String nullableMessage) {
|
||||||
|
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
HealthCheckResult healthCheckResult = (HealthCheckResult) o;
|
||||||
|
return equalsNullable(this.nullableMessage, healthCheckResult.nullableMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(nullableMessage));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class HealthCheckResult {\n");
|
||||||
|
sb.append(" nullableMessage: ").append(toIndentedString(nullableMessage)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,625 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableClass
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
NullableClass.JSON_PROPERTY_INTEGER_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_NUMBER_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_BOOLEAN_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_STRING_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_DATE_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_DATETIME_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_ARRAY_NULLABLE_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_ARRAY_ITEMS_NULLABLE,
|
||||||
|
NullableClass.JSON_PROPERTY_OBJECT_NULLABLE_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP,
|
||||||
|
NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class NullableClass extends HashMap<String, Object> {
|
||||||
|
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
|
||||||
|
private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop";
|
||||||
|
private JsonNullable<BigDecimal> numberProp = JsonNullable.<BigDecimal>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop";
|
||||||
|
private JsonNullable<Boolean> booleanProp = JsonNullable.<Boolean>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_STRING_PROP = "string_prop";
|
||||||
|
private JsonNullable<String> stringProp = JsonNullable.<String>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_DATE_PROP = "date_prop";
|
||||||
|
private JsonNullable<LocalDate> dateProp = JsonNullable.<LocalDate>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop";
|
||||||
|
private JsonNullable<OffsetDateTime> datetimeProp = JsonNullable.<OffsetDateTime>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
|
||||||
|
private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
|
||||||
|
private JsonNullable<List<Object>> arrayAndItemsNullableProp = JsonNullable.<List<Object>>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
|
||||||
|
private List<Object> arrayItemsNullable = null;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
|
||||||
|
private JsonNullable<Map<String, Object>> objectNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
|
||||||
|
private JsonNullable<Map<String, Object>> objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
|
||||||
|
private Map<String, Object> objectItemsNullable = null;
|
||||||
|
|
||||||
|
public NullableClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass integerProp(Integer integerProp) {
|
||||||
|
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get integerProp
|
||||||
|
* @return integerProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public Integer getIntegerProp() {
|
||||||
|
return integerProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<Integer> getIntegerProp_JsonNullable() {
|
||||||
|
return integerProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
||||||
|
public void setIntegerProp_JsonNullable(JsonNullable<Integer> integerProp) {
|
||||||
|
this.integerProp = integerProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIntegerProp(Integer integerProp) {
|
||||||
|
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass numberProp(BigDecimal numberProp) {
|
||||||
|
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get numberProp
|
||||||
|
* @return numberProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public BigDecimal getNumberProp() {
|
||||||
|
return numberProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<BigDecimal> getNumberProp_JsonNullable() {
|
||||||
|
return numberProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
||||||
|
public void setNumberProp_JsonNullable(JsonNullable<BigDecimal> numberProp) {
|
||||||
|
this.numberProp = numberProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumberProp(BigDecimal numberProp) {
|
||||||
|
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass booleanProp(Boolean booleanProp) {
|
||||||
|
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get booleanProp
|
||||||
|
* @return booleanProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public Boolean getBooleanProp() {
|
||||||
|
return booleanProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<Boolean> getBooleanProp_JsonNullable() {
|
||||||
|
return booleanProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
||||||
|
public void setBooleanProp_JsonNullable(JsonNullable<Boolean> booleanProp) {
|
||||||
|
this.booleanProp = booleanProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBooleanProp(Boolean booleanProp) {
|
||||||
|
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass stringProp(String stringProp) {
|
||||||
|
this.stringProp = JsonNullable.<String>of(stringProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get stringProp
|
||||||
|
* @return stringProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public String getStringProp() {
|
||||||
|
return stringProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<String> getStringProp_JsonNullable() {
|
||||||
|
return stringProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
||||||
|
public void setStringProp_JsonNullable(JsonNullable<String> stringProp) {
|
||||||
|
this.stringProp = stringProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStringProp(String stringProp) {
|
||||||
|
this.stringProp = JsonNullable.<String>of(stringProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass dateProp(LocalDate dateProp) {
|
||||||
|
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get dateProp
|
||||||
|
* @return dateProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public LocalDate getDateProp() {
|
||||||
|
return dateProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<LocalDate> getDateProp_JsonNullable() {
|
||||||
|
return dateProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
||||||
|
public void setDateProp_JsonNullable(JsonNullable<LocalDate> dateProp) {
|
||||||
|
this.dateProp = dateProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateProp(LocalDate dateProp) {
|
||||||
|
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass datetimeProp(OffsetDateTime datetimeProp) {
|
||||||
|
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get datetimeProp
|
||||||
|
* @return datetimeProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public OffsetDateTime getDatetimeProp() {
|
||||||
|
return datetimeProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<OffsetDateTime> getDatetimeProp_JsonNullable() {
|
||||||
|
return datetimeProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
||||||
|
public void setDatetimeProp_JsonNullable(JsonNullable<OffsetDateTime> datetimeProp) {
|
||||||
|
this.datetimeProp = datetimeProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatetimeProp(OffsetDateTime datetimeProp) {
|
||||||
|
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass arrayNullableProp(List<Object> arrayNullableProp) {
|
||||||
|
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) {
|
||||||
|
if (this.arrayNullableProp == null || !this.arrayNullableProp.isPresent()) {
|
||||||
|
this.arrayNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
this.arrayNullableProp.get().add(arrayNullablePropItem);
|
||||||
|
} catch (java.util.NoSuchElementException e) {
|
||||||
|
// this can never happen, as we make sure above that the value is present
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get arrayNullableProp
|
||||||
|
* @return arrayNullableProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public List<Object> getArrayNullableProp() {
|
||||||
|
return arrayNullableProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<List<Object>> getArrayNullableProp_JsonNullable() {
|
||||||
|
return arrayNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
||||||
|
public void setArrayNullableProp_JsonNullable(JsonNullable<List<Object>> arrayNullableProp) {
|
||||||
|
this.arrayNullableProp = arrayNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArrayNullableProp(List<Object> arrayNullableProp) {
|
||||||
|
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
||||||
|
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullablePropItem) {
|
||||||
|
if (this.arrayAndItemsNullableProp == null || !this.arrayAndItemsNullableProp.isPresent()) {
|
||||||
|
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
this.arrayAndItemsNullableProp.get().add(arrayAndItemsNullablePropItem);
|
||||||
|
} catch (java.util.NoSuchElementException e) {
|
||||||
|
// this can never happen, as we make sure above that the value is present
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get arrayAndItemsNullableProp
|
||||||
|
* @return arrayAndItemsNullableProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public List<Object> getArrayAndItemsNullableProp() {
|
||||||
|
return arrayAndItemsNullableProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<List<Object>> getArrayAndItemsNullableProp_JsonNullable() {
|
||||||
|
return arrayAndItemsNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
||||||
|
public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable<List<Object>> arrayAndItemsNullableProp) {
|
||||||
|
this.arrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setArrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
||||||
|
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) {
|
||||||
|
|
||||||
|
this.arrayItemsNullable = arrayItemsNullable;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) {
|
||||||
|
if (this.arrayItemsNullable == null) {
|
||||||
|
this.arrayItemsNullable = new ArrayList<>();
|
||||||
|
}
|
||||||
|
this.arrayItemsNullable.add(arrayItemsNullableItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get arrayItemsNullable
|
||||||
|
* @return arrayItemsNullable
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public List<Object> getArrayItemsNullable() {
|
||||||
|
return arrayItemsNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
|
||||||
|
this.arrayItemsNullable = arrayItemsNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) {
|
||||||
|
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass putObjectNullablePropItem(String key, Object objectNullablePropItem) {
|
||||||
|
if (this.objectNullableProp == null || !this.objectNullableProp.isPresent()) {
|
||||||
|
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
this.objectNullableProp.get().put(key, objectNullablePropItem);
|
||||||
|
} catch (java.util.NoSuchElementException e) {
|
||||||
|
// this can never happen, as we make sure above that the value is present
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get objectNullableProp
|
||||||
|
* @return objectNullableProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public Map<String, Object> getObjectNullableProp() {
|
||||||
|
return objectNullableProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<Map<String, Object>> getObjectNullableProp_JsonNullable() {
|
||||||
|
return objectNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
||||||
|
public void setObjectNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectNullableProp) {
|
||||||
|
this.objectNullableProp = objectNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjectNullableProp(Map<String, Object> objectNullableProp) {
|
||||||
|
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
||||||
|
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass putObjectAndItemsNullablePropItem(String key, Object objectAndItemsNullablePropItem) {
|
||||||
|
if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) {
|
||||||
|
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem);
|
||||||
|
} catch (java.util.NoSuchElementException e) {
|
||||||
|
// this can never happen, as we make sure above that the value is present
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get objectAndItemsNullableProp
|
||||||
|
* @return objectAndItemsNullableProp
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonIgnore
|
||||||
|
|
||||||
|
public Map<String, Object> getObjectAndItemsNullableProp() {
|
||||||
|
return objectAndItemsNullableProp.orElse(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
||||||
|
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public JsonNullable<Map<String, Object>> getObjectAndItemsNullableProp_JsonNullable() {
|
||||||
|
return objectAndItemsNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
||||||
|
public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectAndItemsNullableProp) {
|
||||||
|
this.objectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
||||||
|
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) {
|
||||||
|
|
||||||
|
this.objectItemsNullable = objectItemsNullable;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNullableItem) {
|
||||||
|
if (this.objectItemsNullable == null) {
|
||||||
|
this.objectItemsNullable = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.objectItemsNullable.put(key, objectItemsNullableItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get objectItemsNullable
|
||||||
|
* @return objectItemsNullable
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||||
|
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public Map<String, Object> getObjectItemsNullable() {
|
||||||
|
return objectItemsNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||||
|
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
|
||||||
|
this.objectItemsNullable = objectItemsNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableClass nullableClass = (NullableClass) o;
|
||||||
|
return equalsNullable(this.integerProp, nullableClass.integerProp) &&
|
||||||
|
equalsNullable(this.numberProp, nullableClass.numberProp) &&
|
||||||
|
equalsNullable(this.booleanProp, nullableClass.booleanProp) &&
|
||||||
|
equalsNullable(this.stringProp, nullableClass.stringProp) &&
|
||||||
|
equalsNullable(this.dateProp, nullableClass.dateProp) &&
|
||||||
|
equalsNullable(this.datetimeProp, nullableClass.datetimeProp) &&
|
||||||
|
equalsNullable(this.arrayNullableProp, nullableClass.arrayNullableProp) &&
|
||||||
|
equalsNullable(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) &&
|
||||||
|
Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) &&
|
||||||
|
equalsNullable(this.objectNullableProp, nullableClass.objectNullableProp) &&
|
||||||
|
equalsNullable(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) &&
|
||||||
|
Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable) &&
|
||||||
|
super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(integerProp), hashCodeNullable(numberProp), hashCodeNullable(booleanProp), hashCodeNullable(stringProp), hashCodeNullable(dateProp), hashCodeNullable(datetimeProp), hashCodeNullable(arrayNullableProp), hashCodeNullable(arrayAndItemsNullableProp), arrayItemsNullable, hashCodeNullable(objectNullableProp), hashCodeNullable(objectAndItemsNullableProp), objectItemsNullable, super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableClass {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
sb.append(" integerProp: ").append(toIndentedString(integerProp)).append("\n");
|
||||||
|
sb.append(" numberProp: ").append(toIndentedString(numberProp)).append("\n");
|
||||||
|
sb.append(" booleanProp: ").append(toIndentedString(booleanProp)).append("\n");
|
||||||
|
sb.append(" stringProp: ").append(toIndentedString(stringProp)).append("\n");
|
||||||
|
sb.append(" dateProp: ").append(toIndentedString(dateProp)).append("\n");
|
||||||
|
sb.append(" datetimeProp: ").append(toIndentedString(datetimeProp)).append("\n");
|
||||||
|
sb.append(" arrayNullableProp: ").append(toIndentedString(arrayNullableProp)).append("\n");
|
||||||
|
sb.append(" arrayAndItemsNullableProp: ").append(toIndentedString(arrayAndItemsNullableProp)).append("\n");
|
||||||
|
sb.append(" arrayItemsNullable: ").append(toIndentedString(arrayItemsNullable)).append("\n");
|
||||||
|
sb.append(" objectNullableProp: ").append(toIndentedString(objectNullableProp)).append("\n");
|
||||||
|
sb.append(" objectAndItemsNullableProp: ").append(toIndentedString(objectAndItemsNullableProp)).append("\n");
|
||||||
|
sb.append(" objectItemsNullable: ").append(toIndentedString(objectItemsNullable)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,218 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import org.openapitools.client.model.DeprecatedObject;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ObjectWithDeprecatedFields
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
ObjectWithDeprecatedFields.JSON_PROPERTY_UUID,
|
||||||
|
ObjectWithDeprecatedFields.JSON_PROPERTY_ID,
|
||||||
|
ObjectWithDeprecatedFields.JSON_PROPERTY_DEPRECATED_REF,
|
||||||
|
ObjectWithDeprecatedFields.JSON_PROPERTY_BARS
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class ObjectWithDeprecatedFields {
|
||||||
|
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||||
|
private String uuid;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
|
private BigDecimal id;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef";
|
||||||
|
private DeprecatedObject deprecatedRef;
|
||||||
|
|
||||||
|
public static final String JSON_PROPERTY_BARS = "bars";
|
||||||
|
private List<String> bars = null;
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields uuid(String uuid) {
|
||||||
|
|
||||||
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get uuid
|
||||||
|
* @return uuid
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_UUID)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public String getUuid() {
|
||||||
|
return uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_UUID)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setUuid(String uuid) {
|
||||||
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields id(BigDecimal id) {
|
||||||
|
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get id
|
||||||
|
* @return id
|
||||||
|
* @deprecated
|
||||||
|
**/
|
||||||
|
@Deprecated
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_ID)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public BigDecimal getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_ID)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setId(BigDecimal id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) {
|
||||||
|
|
||||||
|
this.deprecatedRef = deprecatedRef;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get deprecatedRef
|
||||||
|
* @return deprecatedRef
|
||||||
|
* @deprecated
|
||||||
|
**/
|
||||||
|
@Deprecated
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public DeprecatedObject getDeprecatedRef() {
|
||||||
|
return deprecatedRef;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setDeprecatedRef(DeprecatedObject deprecatedRef) {
|
||||||
|
this.deprecatedRef = deprecatedRef;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields bars(List<String> bars) {
|
||||||
|
|
||||||
|
this.bars = bars;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectWithDeprecatedFields addBarsItem(String barsItem) {
|
||||||
|
if (this.bars == null) {
|
||||||
|
this.bars = new ArrayList<>();
|
||||||
|
}
|
||||||
|
this.bars.add(barsItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get bars
|
||||||
|
* @return bars
|
||||||
|
* @deprecated
|
||||||
|
**/
|
||||||
|
@Deprecated
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
@JsonProperty(JSON_PROPERTY_BARS)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
|
||||||
|
public List<String> getBars() {
|
||||||
|
return bars;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_BARS)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
public void setBars(List<String> bars) {
|
||||||
|
this.bars = bars;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ObjectWithDeprecatedFields objectWithDeprecatedFields = (ObjectWithDeprecatedFields) o;
|
||||||
|
return Objects.equals(this.uuid, objectWithDeprecatedFields.uuid) &&
|
||||||
|
Objects.equals(this.id, objectWithDeprecatedFields.id) &&
|
||||||
|
Objects.equals(this.deprecatedRef, objectWithDeprecatedFields.deprecatedRef) &&
|
||||||
|
Objects.equals(this.bars, objectWithDeprecatedFields.bars);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(uuid, id, deprecatedRef, bars);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ObjectWithDeprecatedFields {\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
|
sb.append(" deprecatedRef: ").append(toIndentedString(deprecatedRef)).append("\n");
|
||||||
|
sb.append(" bars: ").append(toIndentedString(bars)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -55,7 +55,7 @@ public enum OuterEnum {
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or Sets OuterEnumDefaultValue
|
||||||
|
*/
|
||||||
|
public enum OuterEnumDefaultValue {
|
||||||
|
|
||||||
|
PLACED("placed"),
|
||||||
|
|
||||||
|
APPROVED("approved"),
|
||||||
|
|
||||||
|
DELIVERED("delivered");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
OuterEnumDefaultValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static OuterEnumDefaultValue fromValue(String value) {
|
||||||
|
for (OuterEnumDefaultValue b : OuterEnumDefaultValue.values()) {
|
||||||
|
if (b.value.equals(value)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or Sets OuterEnumInteger
|
||||||
|
*/
|
||||||
|
public enum OuterEnumInteger {
|
||||||
|
|
||||||
|
NUMBER_0(0),
|
||||||
|
|
||||||
|
NUMBER_1(1),
|
||||||
|
|
||||||
|
NUMBER_2(2);
|
||||||
|
|
||||||
|
private Integer value;
|
||||||
|
|
||||||
|
OuterEnumInteger(Integer value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Integer getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static OuterEnumInteger fromValue(Integer value) {
|
||||||
|
for (OuterEnumInteger b : OuterEnumInteger.values()) {
|
||||||
|
if (b.value.equals(value)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or Sets OuterEnumIntegerDefaultValue
|
||||||
|
*/
|
||||||
|
public enum OuterEnumIntegerDefaultValue {
|
||||||
|
|
||||||
|
NUMBER_0(0),
|
||||||
|
|
||||||
|
NUMBER_1(1),
|
||||||
|
|
||||||
|
NUMBER_2(2);
|
||||||
|
|
||||||
|
private Integer value;
|
||||||
|
|
||||||
|
OuterEnumIntegerDefaultValue(Integer value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Integer getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static OuterEnumIntegerDefaultValue fromValue(Integer value) {
|
||||||
|
for (OuterEnumIntegerDefaultValue b : OuterEnumIntegerDefaultValue.values()) {
|
||||||
|
if (b.value.equals(value)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,105 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import org.openapitools.client.model.OuterEnumInteger;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OuterObjectWithEnumProperty
|
||||||
|
*/
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE
|
||||||
|
})
|
||||||
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class OuterObjectWithEnumProperty {
|
||||||
|
public static final String JSON_PROPERTY_VALUE = "value";
|
||||||
|
private OuterEnumInteger value;
|
||||||
|
|
||||||
|
public OuterObjectWithEnumProperty() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public OuterObjectWithEnumProperty value(OuterEnumInteger value) {
|
||||||
|
|
||||||
|
this.value = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get value
|
||||||
|
* @return value
|
||||||
|
**/
|
||||||
|
@javax.annotation.Nonnull
|
||||||
|
@JsonProperty(JSON_PROPERTY_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
|
||||||
|
public OuterEnumInteger getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonProperty(JSON_PROPERTY_VALUE)
|
||||||
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
public void setValue(OuterEnumInteger value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
OuterObjectWithEnumProperty outerObjectWithEnumProperty = (OuterObjectWithEnumProperty) o;
|
||||||
|
return Objects.equals(this.value, outerObjectWithEnumProperty.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class OuterObjectWithEnumProperty {\n");
|
||||||
|
sb.append(" value: ").append(toIndentedString(value)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or Sets SingleRefType
|
||||||
|
*/
|
||||||
|
public enum SingleRefType {
|
||||||
|
|
||||||
|
ADMIN("admin"),
|
||||||
|
|
||||||
|
USER("user");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
SingleRefType(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static SingleRefType fromValue(String value) {
|
||||||
|
for (SingleRefType b : SingleRefType.values()) {
|
||||||
|
if (b.value.equals(value)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("$special[model.name]")
|
@JsonTypeName("_special_model.name_")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||||
@ -72,8 +72,8 @@ public class SpecialModelName {
|
|||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
SpecialModelName $specialModelName = (SpecialModelName) o;
|
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||||
return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
|
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Assert;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API tests for DefaultApi
|
||||||
|
*/
|
||||||
|
@Ignore
|
||||||
|
public class DefaultApiTest {
|
||||||
|
|
||||||
|
private final DefaultApi api = new DefaultApi();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ApiException
|
||||||
|
* if the Api call fails
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void fooGetTest() throws ApiException {
|
||||||
|
FooGetDefaultResponse response = api.fooGet();
|
||||||
|
|
||||||
|
// TODO: test validations
|
||||||
|
}
|
||||||
|
}
|
@ -16,17 +16,22 @@ package org.openapitools.client.api;
|
|||||||
import org.openapitools.client.ApiException;
|
import org.openapitools.client.ApiException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
import org.openapitools.client.model.EnumClass;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.FileSchemaTestClass;
|
import org.openapitools.client.model.FileSchemaTestClass;
|
||||||
|
import org.openapitools.client.model.HealthCheckResult;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.OuterComposite;
|
import org.openapitools.client.model.OuterComposite;
|
||||||
|
import org.openapitools.client.model.OuterObjectWithEnumProperty;
|
||||||
|
import org.openapitools.client.model.Pet;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.openapitools.client.model.XmlItem;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -41,17 +46,29 @@ public class FakeApiTest {
|
|||||||
private final FakeApi api = new FakeApi();
|
private final FakeApi api = new FakeApi();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* Health check endpoint
|
||||||
*
|
|
||||||
* this route creates an XmlItem
|
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException
|
||||||
* if the Api call fails
|
* if the Api call fails
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void createXmlItemTest() throws ApiException {
|
public void fakeHealthGetTest() throws ApiException {
|
||||||
XmlItem xmlItem = null;
|
HealthCheckResult response = api.fakeHealthGet();
|
||||||
api.createXmlItem(xmlItem);
|
|
||||||
|
// TODO: test validations
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* test http signature authentication
|
||||||
|
*
|
||||||
|
* @throws ApiException
|
||||||
|
* if the Api call fails
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void fakeHttpSignatureTestTest() throws ApiException {
|
||||||
|
Pet pet = null;
|
||||||
|
String query1 = null;
|
||||||
|
String header1 = null;
|
||||||
|
api.fakeHttpSignatureTest(pet, query1, header1);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
@ -76,8 +93,8 @@ public class FakeApiTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
public void fakeOuterCompositeSerializeTest() throws ApiException {
|
||||||
OuterComposite body = null;
|
OuterComposite outerComposite = null;
|
||||||
OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
@ -108,15 +125,41 @@ public class FakeApiTest {
|
|||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* Test serialization of enum (int) properties with examples
|
||||||
|
*
|
||||||
|
* @throws ApiException
|
||||||
|
* if the Api call fails
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void fakePropertyEnumIntegerSerializeTest() throws ApiException {
|
||||||
|
OuterObjectWithEnumProperty outerObjectWithEnumProperty = null;
|
||||||
|
OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
|
||||||
|
|
||||||
|
// TODO: test validations
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* For this test, the body has to be a binary file.
|
||||||
|
*
|
||||||
|
* @throws ApiException
|
||||||
|
* if the Api call fails
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testBodyWithBinaryTest() throws ApiException {
|
||||||
|
File body = null;
|
||||||
|
api.testBodyWithBinary(body);
|
||||||
|
|
||||||
|
// TODO: test validations
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* For this test, the body for this request must reference a schema named `File`.
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException
|
||||||
* if the Api call fails
|
* if the Api call fails
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBodyWithFileSchemaTest() throws ApiException {
|
public void testBodyWithFileSchemaTest() throws ApiException {
|
||||||
FileSchemaTestClass body = null;
|
FileSchemaTestClass fileSchemaTestClass = null;
|
||||||
api.testBodyWithFileSchema(body);
|
api.testBodyWithFileSchema(fileSchemaTestClass);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
@ -127,8 +170,8 @@ public class FakeApiTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testBodyWithQueryParamsTest() throws ApiException {
|
public void testBodyWithQueryParamsTest() throws ApiException {
|
||||||
String query = null;
|
String query = null;
|
||||||
User body = null;
|
User user = null;
|
||||||
api.testBodyWithQueryParams(query, body);
|
api.testBodyWithQueryParams(query, user);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
@ -142,15 +185,15 @@ public class FakeApiTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testClientModelTest() throws ApiException {
|
public void testClientModelTest() throws ApiException {
|
||||||
Client body = null;
|
Client client = null;
|
||||||
Client response = api.testClientModel(body);
|
Client response = api.testClientModel(client);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*
|
*
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException
|
||||||
* if the Api call fails
|
* if the Api call fails
|
||||||
@ -191,9 +234,10 @@ public class FakeApiTest {
|
|||||||
String enumQueryString = null;
|
String enumQueryString = null;
|
||||||
Integer enumQueryInteger = null;
|
Integer enumQueryInteger = null;
|
||||||
Double enumQueryDouble = null;
|
Double enumQueryDouble = null;
|
||||||
|
List<EnumClass> enumQueryModelArray = null;
|
||||||
List<String> enumFormStringArray = null;
|
List<String> enumFormStringArray = null;
|
||||||
String enumFormString = null;
|
String enumFormString = null;
|
||||||
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
@ -220,19 +264,23 @@ public class FakeApiTest {
|
|||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException
|
||||||
* if the Api call fails
|
* if the Api call fails
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
public void testInlineAdditionalPropertiesTest() throws ApiException {
|
||||||
Map<String, String> param = null;
|
Map<String, String> requestBody = null;
|
||||||
api.testInlineAdditionalProperties(param);
|
api.testInlineAdditionalProperties(requestBody);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* test json serialization of form data
|
* test json serialization of form data
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
* @throws ApiException
|
* @throws ApiException
|
||||||
* if the Api call fails
|
* if the Api call fails
|
||||||
*/
|
*/
|
||||||
@ -257,7 +305,9 @@ public class FakeApiTest {
|
|||||||
List<String> http = null;
|
List<String> http = null;
|
||||||
List<String> url = null;
|
List<String> url = null;
|
||||||
List<String> context = null;
|
List<String> context = null;
|
||||||
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
String allowEmpty = null;
|
||||||
|
Map<String, String> language = null;
|
||||||
|
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||||
|
|
||||||
// TODO: test validations
|
// TODO: test validations
|
||||||
}
|
}
|
||||||
|
@ -18,33 +18,40 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.HashMap;
|
import org.openapitools.client.model.SingleRefType;
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesInteger
|
* Model tests for AllOfWithSingleRef
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesIntegerTest {
|
public class AllOfWithSingleRefTest {
|
||||||
private final AdditionalPropertiesInteger model = new AdditionalPropertiesInteger();
|
private final AllOfWithSingleRef model = new AllOfWithSingleRef();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesInteger
|
* Model tests for AllOfWithSingleRef
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesInteger() {
|
public void testAllOfWithSingleRef() {
|
||||||
// TODO: test AdditionalPropertiesInteger
|
// TODO: test AllOfWithSingleRef
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'name'
|
* Test the property 'username'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void usernameTest() {
|
||||||
// TODO: test name
|
// TODO: test username
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'singleRefType'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void singleRefTypeTest() {
|
||||||
|
// TODO: test singleRefType
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -18,25 +18,23 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesString
|
* Model tests for DeprecatedObject
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesStringTest {
|
public class DeprecatedObjectTest {
|
||||||
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
|
private final DeprecatedObject model = new DeprecatedObject();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesString
|
* Model tests for DeprecatedObject
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesString() {
|
public void testDeprecatedObject() {
|
||||||
// TODO: test AdditionalPropertiesString
|
// TODO: test DeprecatedObject
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
@ -18,33 +18,32 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.HashMap;
|
import org.openapitools.client.model.Foo;
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesObject
|
* Model tests for FooGetDefaultResponse
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesObjectTest {
|
public class FooGetDefaultResponseTest {
|
||||||
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
|
private final FooGetDefaultResponse model = new FooGetDefaultResponse();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesObject
|
* Model tests for FooGetDefaultResponse
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesObject() {
|
public void testFooGetDefaultResponse() {
|
||||||
// TODO: test AdditionalPropertiesObject
|
// TODO: test FooGetDefaultResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'name'
|
* Test the property 'string'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void stringTest() {
|
||||||
// TODO: test name
|
// TODO: test string
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -24,25 +24,25 @@ import org.junit.Test;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for BigCatAllOf
|
* Model tests for Foo
|
||||||
*/
|
*/
|
||||||
public class BigCatAllOfTest {
|
public class FooTest {
|
||||||
private final BigCatAllOf model = new BigCatAllOf();
|
private final Foo model = new Foo();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for BigCatAllOf
|
* Model tests for Foo
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBigCatAllOf() {
|
public void testFoo() {
|
||||||
// TODO: test BigCatAllOf
|
// TODO: test Foo
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'kind'
|
* Test the property 'bar'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void kindTest() {
|
public void barTest() {
|
||||||
// TODO: test kind
|
// TODO: test bar
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for HealthCheckResult
|
||||||
|
*/
|
||||||
|
public class HealthCheckResultTest {
|
||||||
|
private final HealthCheckResult model = new HealthCheckResult();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for HealthCheckResult
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testHealthCheckResult() {
|
||||||
|
// TODO: test HealthCheckResult
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'nullableMessage'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void nullableMessageTest() {
|
||||||
|
// TODO: test nullableMessage
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,147 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for NullableClass
|
||||||
|
*/
|
||||||
|
public class NullableClassTest {
|
||||||
|
private final NullableClass model = new NullableClass();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for NullableClass
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testNullableClass() {
|
||||||
|
// TODO: test NullableClass
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'integerProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void integerPropTest() {
|
||||||
|
// TODO: test integerProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'numberProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void numberPropTest() {
|
||||||
|
// TODO: test numberProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'booleanProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void booleanPropTest() {
|
||||||
|
// TODO: test booleanProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'stringProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void stringPropTest() {
|
||||||
|
// TODO: test stringProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'dateProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void datePropTest() {
|
||||||
|
// TODO: test dateProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'datetimeProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void datetimePropTest() {
|
||||||
|
// TODO: test datetimeProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'arrayNullableProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void arrayNullablePropTest() {
|
||||||
|
// TODO: test arrayNullableProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'arrayAndItemsNullableProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void arrayAndItemsNullablePropTest() {
|
||||||
|
// TODO: test arrayAndItemsNullableProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'arrayItemsNullable'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void arrayItemsNullableTest() {
|
||||||
|
// TODO: test arrayItemsNullable
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'objectNullableProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void objectNullablePropTest() {
|
||||||
|
// TODO: test objectNullableProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'objectAndItemsNullableProp'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void objectAndItemsNullablePropTest() {
|
||||||
|
// TODO: test objectAndItemsNullableProp
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'objectItemsNullable'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void objectItemsNullableTest() {
|
||||||
|
// TODO: test objectItemsNullable
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -21,63 +21,56 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.openapitools.client.model.DeprecatedObject;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for TypeHolderDefault
|
* Model tests for ObjectWithDeprecatedFields
|
||||||
*/
|
*/
|
||||||
public class TypeHolderDefaultTest {
|
public class ObjectWithDeprecatedFieldsTest {
|
||||||
private final TypeHolderDefault model = new TypeHolderDefault();
|
private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for TypeHolderDefault
|
* Model tests for ObjectWithDeprecatedFields
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testTypeHolderDefault() {
|
public void testObjectWithDeprecatedFields() {
|
||||||
// TODO: test TypeHolderDefault
|
// TODO: test ObjectWithDeprecatedFields
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'stringItem'
|
* Test the property 'uuid'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void stringItemTest() {
|
public void uuidTest() {
|
||||||
// TODO: test stringItem
|
// TODO: test uuid
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'numberItem'
|
* Test the property 'id'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void numberItemTest() {
|
public void idTest() {
|
||||||
// TODO: test numberItem
|
// TODO: test id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'integerItem'
|
* Test the property 'deprecatedRef'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void integerItemTest() {
|
public void deprecatedRefTest() {
|
||||||
// TODO: test integerItem
|
// TODO: test deprecatedRef
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'boolItem'
|
* Test the property 'bars'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void boolItemTest() {
|
public void barsTest() {
|
||||||
// TODO: test boolItem
|
// TODO: test bars
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test the property 'arrayItem'
|
|
||||||
*/
|
|
||||||
@Test
|
|
||||||
public void arrayItemTest() {
|
|
||||||
// TODO: test arrayItem
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumDefaultValue
|
||||||
|
*/
|
||||||
|
public class OuterEnumDefaultValueTest {
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumDefaultValue
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testOuterEnumDefaultValue() {
|
||||||
|
// TODO: test OuterEnumDefaultValue
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumIntegerDefaultValue
|
||||||
|
*/
|
||||||
|
public class OuterEnumIntegerDefaultValueTest {
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumIntegerDefaultValue
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testOuterEnumIntegerDefaultValue() {
|
||||||
|
// TODO: test OuterEnumIntegerDefaultValue
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumInteger
|
||||||
|
*/
|
||||||
|
public class OuterEnumIntegerTest {
|
||||||
|
/**
|
||||||
|
* Model tests for OuterEnumInteger
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testOuterEnumInteger() {
|
||||||
|
// TODO: test OuterEnumInteger
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -18,33 +18,32 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.HashMap;
|
import org.openapitools.client.model.OuterEnumInteger;
|
||||||
import java.util.Map;
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
* Model tests for OuterObjectWithEnumProperty
|
||||||
*/
|
*/
|
||||||
public class AdditionalPropertiesAnyTypeTest {
|
public class OuterObjectWithEnumPropertyTest {
|
||||||
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
private final OuterObjectWithEnumProperty model = new OuterObjectWithEnumProperty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model tests for AdditionalPropertiesAnyType
|
* Model tests for OuterObjectWithEnumProperty
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAdditionalPropertiesAnyType() {
|
public void testOuterObjectWithEnumProperty() {
|
||||||
// TODO: test AdditionalPropertiesAnyType
|
// TODO: test OuterObjectWithEnumProperty
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the property 'name'
|
* Test the property 'value'
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void nameTest() {
|
public void valueTest() {
|
||||||
// TODO: test name
|
// TODO: test value
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for SingleRefType
|
||||||
|
*/
|
||||||
|
public class SingleRefTypeTest {
|
||||||
|
/**
|
||||||
|
* Model tests for SingleRefType
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testSingleRefType() {
|
||||||
|
// TODO: test SingleRefType
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -5,27 +5,21 @@ README.md
|
|||||||
api/openapi.yaml
|
api/openapi.yaml
|
||||||
build.gradle
|
build.gradle
|
||||||
build.sbt
|
build.sbt
|
||||||
docs/AdditionalPropertiesAnyType.md
|
|
||||||
docs/AdditionalPropertiesArray.md
|
|
||||||
docs/AdditionalPropertiesBoolean.md
|
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AdditionalPropertiesInteger.md
|
docs/AllOfWithSingleRef.md
|
||||||
docs/AdditionalPropertiesNumber.md
|
|
||||||
docs/AdditionalPropertiesObject.md
|
|
||||||
docs/AdditionalPropertiesString.md
|
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
docs/ArrayOfArrayOfNumberOnly.md
|
docs/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/ArrayOfNumberOnly.md
|
docs/ArrayOfNumberOnly.md
|
||||||
docs/ArrayTest.md
|
docs/ArrayTest.md
|
||||||
docs/BigCat.md
|
|
||||||
docs/BigCatAllOf.md
|
|
||||||
docs/Capitalization.md
|
docs/Capitalization.md
|
||||||
docs/Cat.md
|
docs/Cat.md
|
||||||
docs/CatAllOf.md
|
docs/CatAllOf.md
|
||||||
docs/Category.md
|
docs/Category.md
|
||||||
docs/ClassModel.md
|
docs/ClassModel.md
|
||||||
docs/Client.md
|
docs/Client.md
|
||||||
|
docs/DefaultApi.md
|
||||||
|
docs/DeprecatedObject.md
|
||||||
docs/Dog.md
|
docs/Dog.md
|
||||||
docs/DogAllOf.md
|
docs/DogAllOf.md
|
||||||
docs/EnumArrays.md
|
docs/EnumArrays.md
|
||||||
@ -34,8 +28,11 @@ docs/EnumTest.md
|
|||||||
docs/FakeApi.md
|
docs/FakeApi.md
|
||||||
docs/FakeClassnameTags123Api.md
|
docs/FakeClassnameTags123Api.md
|
||||||
docs/FileSchemaTestClass.md
|
docs/FileSchemaTestClass.md
|
||||||
|
docs/Foo.md
|
||||||
|
docs/FooGetDefaultResponse.md
|
||||||
docs/FormatTest.md
|
docs/FormatTest.md
|
||||||
docs/HasOnlyReadOnly.md
|
docs/HasOnlyReadOnly.md
|
||||||
|
docs/HealthCheckResult.md
|
||||||
docs/MapTest.md
|
docs/MapTest.md
|
||||||
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model200Response.md
|
docs/Model200Response.md
|
||||||
@ -44,21 +41,25 @@ docs/ModelFile.md
|
|||||||
docs/ModelList.md
|
docs/ModelList.md
|
||||||
docs/ModelReturn.md
|
docs/ModelReturn.md
|
||||||
docs/Name.md
|
docs/Name.md
|
||||||
|
docs/NullableClass.md
|
||||||
docs/NumberOnly.md
|
docs/NumberOnly.md
|
||||||
|
docs/ObjectWithDeprecatedFields.md
|
||||||
docs/Order.md
|
docs/Order.md
|
||||||
docs/OuterComposite.md
|
docs/OuterComposite.md
|
||||||
docs/OuterEnum.md
|
docs/OuterEnum.md
|
||||||
|
docs/OuterEnumDefaultValue.md
|
||||||
|
docs/OuterEnumInteger.md
|
||||||
|
docs/OuterEnumIntegerDefaultValue.md
|
||||||
|
docs/OuterObjectWithEnumProperty.md
|
||||||
docs/Pet.md
|
docs/Pet.md
|
||||||
docs/PetApi.md
|
docs/PetApi.md
|
||||||
docs/ReadOnlyFirst.md
|
docs/ReadOnlyFirst.md
|
||||||
|
docs/SingleRefType.md
|
||||||
docs/SpecialModelName.md
|
docs/SpecialModelName.md
|
||||||
docs/StoreApi.md
|
docs/StoreApi.md
|
||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/TypeHolderDefault.md
|
|
||||||
docs/TypeHolderExample.md
|
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
docs/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
gradle.properties
|
gradle.properties
|
||||||
gradle/wrapper/gradle-wrapper.jar
|
gradle/wrapper/gradle-wrapper.jar
|
||||||
@ -78,40 +79,37 @@ src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
|||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
src/main/java/org/openapitools/client/ServerVariable.java
|
src/main/java/org/openapitools/client/ServerVariable.java
|
||||||
src/main/java/org/openapitools/client/api/AnotherFakeApi.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/FakeApi.java
|
||||||
src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.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/PetApi.java
|
||||||
src/main/java/org/openapitools/client/api/StoreApi.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/api/UserApi.java
|
||||||
src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java
|
src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
|
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java
|
src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java
|
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java
|
|
||||||
src/main/java/org/openapitools/client/model/Animal.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/ArrayOfArrayOfNumberOnly.java
|
||||||
src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.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/ArrayTest.java
|
||||||
src/main/java/org/openapitools/client/model/BigCat.java
|
|
||||||
src/main/java/org/openapitools/client/model/BigCatAllOf.java
|
|
||||||
src/main/java/org/openapitools/client/model/Capitalization.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/Cat.java
|
||||||
src/main/java/org/openapitools/client/model/CatAllOf.java
|
src/main/java/org/openapitools/client/model/CatAllOf.java
|
||||||
src/main/java/org/openapitools/client/model/Category.java
|
src/main/java/org/openapitools/client/model/Category.java
|
||||||
src/main/java/org/openapitools/client/model/ClassModel.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/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/Dog.java
|
||||||
src/main/java/org/openapitools/client/model/DogAllOf.java
|
src/main/java/org/openapitools/client/model/DogAllOf.java
|
||||||
src/main/java/org/openapitools/client/model/EnumArrays.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/EnumClass.java
|
||||||
src/main/java/org/openapitools/client/model/EnumTest.java
|
src/main/java/org/openapitools/client/model/EnumTest.java
|
||||||
src/main/java/org/openapitools/client/model/FileSchemaTestClass.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/FormatTest.java
|
||||||
src/main/java/org/openapitools/client/model/HasOnlyReadOnly.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/MapTest.java
|
||||||
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.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/Model200Response.java
|
||||||
@ -120,15 +118,19 @@ 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/ModelList.java
|
||||||
src/main/java/org/openapitools/client/model/ModelReturn.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/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/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/Order.java
|
||||||
src/main/java/org/openapitools/client/model/OuterComposite.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/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/Pet.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/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/SpecialModelName.java
|
||||||
src/main/java/org/openapitools/client/model/Tag.java
|
src/main/java/org/openapitools/client/model/Tag.java
|
||||||
src/main/java/org/openapitools/client/model/TypeHolderDefault.java
|
|
||||||
src/main/java/org/openapitools/client/model/TypeHolderExample.java
|
|
||||||
src/main/java/org/openapitools/client/model/User.java
|
src/main/java/org/openapitools/client/model/User.java
|
||||||
src/main/java/org/openapitools/client/model/XmlItem.java
|
|
||||||
|
@ -84,9 +84,9 @@ public class AnotherFakeApiExample {
|
|||||||
// Configure clients using the `defaultClient` object, such as
|
// Configure clients using the `defaultClient` object, such as
|
||||||
// overriding the host and port, timeout, etc.
|
// overriding the host and port, timeout, etc.
|
||||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(body);
|
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(client);
|
||||||
System.out.println(result.get());
|
System.out.println(result.get());
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||||
@ -108,8 +108,12 @@ Class | Method | HTTP request | Description
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*AnotherFakeApi* | [**call123testSpecialTagsWithHttpInfo**](docs/AnotherFakeApi.md#call123testSpecialTagsWithHttpInfo) | **PATCH** /another-fake/dummy | To test special tags
|
*AnotherFakeApi* | [**call123testSpecialTagsWithHttpInfo**](docs/AnotherFakeApi.md#call123testSpecialTagsWithHttpInfo) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem
|
*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo |
|
||||||
*FakeApi* | [**createXmlItemWithHttpInfo**](docs/FakeApi.md#createXmlItemWithHttpInfo) | **POST** /fake/create_xml_item | creates an XmlItem
|
*DefaultApi* | [**fooGetWithHttpInfo**](docs/DefaultApi.md#fooGetWithHttpInfo) | **GET** /foo |
|
||||||
|
*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
|
||||||
|
*FakeApi* | [**fakeHealthGetWithHttpInfo**](docs/FakeApi.md#fakeHealthGetWithHttpInfo) | **GET** /fake/health | Health check endpoint
|
||||||
|
*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||||
|
*FakeApi* | [**fakeHttpSignatureTestWithHttpInfo**](docs/FakeApi.md#fakeHttpSignatureTestWithHttpInfo) | **GET** /fake/http-signature-test | test http signature authentication
|
||||||
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**fakeOuterBooleanSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterBooleanSerializeWithHttpInfo) | **POST** /fake/outer/boolean |
|
*FakeApi* | [**fakeOuterBooleanSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterBooleanSerializeWithHttpInfo) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
||||||
@ -118,14 +122,18 @@ Class | Method | HTTP request | Description
|
|||||||
*FakeApi* | [**fakeOuterNumberSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterNumberSerializeWithHttpInfo) | **POST** /fake/outer/number |
|
*FakeApi* | [**fakeOuterNumberSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterNumberSerializeWithHttpInfo) | **POST** /fake/outer/number |
|
||||||
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
||||||
*FakeApi* | [**fakeOuterStringSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterStringSerializeWithHttpInfo) | **POST** /fake/outer/string |
|
*FakeApi* | [**fakeOuterStringSerializeWithHttpInfo**](docs/FakeApi.md#fakeOuterStringSerializeWithHttpInfo) | **POST** /fake/outer/string |
|
||||||
|
*FakeApi* | [**fakePropertyEnumIntegerSerialize**](docs/FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int |
|
||||||
|
*FakeApi* | [**fakePropertyEnumIntegerSerializeWithHttpInfo**](docs/FakeApi.md#fakePropertyEnumIntegerSerializeWithHttpInfo) | **POST** /fake/property/enum-int |
|
||||||
|
*FakeApi* | [**testBodyWithBinary**](docs/FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary |
|
||||||
|
*FakeApi* | [**testBodyWithBinaryWithHttpInfo**](docs/FakeApi.md#testBodyWithBinaryWithHttpInfo) | **PUT** /fake/body-with-binary |
|
||||||
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
|
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
|
||||||
*FakeApi* | [**testBodyWithFileSchemaWithHttpInfo**](docs/FakeApi.md#testBodyWithFileSchemaWithHttpInfo) | **PUT** /fake/body-with-file-schema |
|
*FakeApi* | [**testBodyWithFileSchemaWithHttpInfo**](docs/FakeApi.md#testBodyWithFileSchemaWithHttpInfo) | **PUT** /fake/body-with-file-schema |
|
||||||
*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
|
*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
|
||||||
*FakeApi* | [**testBodyWithQueryParamsWithHttpInfo**](docs/FakeApi.md#testBodyWithQueryParamsWithHttpInfo) | **PUT** /fake/body-with-query-params |
|
*FakeApi* | [**testBodyWithQueryParamsWithHttpInfo**](docs/FakeApi.md#testBodyWithQueryParamsWithHttpInfo) | **PUT** /fake/body-with-query-params |
|
||||||
*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
|
*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
|
||||||
*FakeApi* | [**testClientModelWithHttpInfo**](docs/FakeApi.md#testClientModelWithHttpInfo) | **PATCH** /fake | To test \"client\" model
|
*FakeApi* | [**testClientModelWithHttpInfo**](docs/FakeApi.md#testClientModelWithHttpInfo) | **PATCH** /fake | To test \"client\" model
|
||||||
*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*FakeApi* | [**testEndpointParametersWithHttpInfo**](docs/FakeApi.md#testEndpointParametersWithHttpInfo) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
*FakeApi* | [**testEndpointParametersWithHttpInfo**](docs/FakeApi.md#testEndpointParametersWithHttpInfo) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
|
*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
|
||||||
*FakeApi* | [**testEnumParametersWithHttpInfo**](docs/FakeApi.md#testEnumParametersWithHttpInfo) | **GET** /fake | To test enum parameters
|
*FakeApi* | [**testEnumParametersWithHttpInfo**](docs/FakeApi.md#testEnumParametersWithHttpInfo) | **GET** /fake | To test enum parameters
|
||||||
*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||||
@ -184,34 +192,30 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Documentation for Models
|
## Documentation for Models
|
||||||
|
|
||||||
- [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
|
||||||
- [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
|
||||||
- [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
|
||||||
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||||
- [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
- [AllOfWithSingleRef](docs/AllOfWithSingleRef.md)
|
||||||
- [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
|
||||||
- [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
|
||||||
- [AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
|
||||||
- [Animal](docs/Animal.md)
|
- [Animal](docs/Animal.md)
|
||||||
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [ArrayTest](docs/ArrayTest.md)
|
- [ArrayTest](docs/ArrayTest.md)
|
||||||
- [BigCat](docs/BigCat.md)
|
|
||||||
- [BigCatAllOf](docs/BigCatAllOf.md)
|
|
||||||
- [Capitalization](docs/Capitalization.md)
|
- [Capitalization](docs/Capitalization.md)
|
||||||
- [Cat](docs/Cat.md)
|
- [Cat](docs/Cat.md)
|
||||||
- [CatAllOf](docs/CatAllOf.md)
|
- [CatAllOf](docs/CatAllOf.md)
|
||||||
- [Category](docs/Category.md)
|
- [Category](docs/Category.md)
|
||||||
- [ClassModel](docs/ClassModel.md)
|
- [ClassModel](docs/ClassModel.md)
|
||||||
- [Client](docs/Client.md)
|
- [Client](docs/Client.md)
|
||||||
|
- [DeprecatedObject](docs/DeprecatedObject.md)
|
||||||
- [Dog](docs/Dog.md)
|
- [Dog](docs/Dog.md)
|
||||||
- [DogAllOf](docs/DogAllOf.md)
|
- [DogAllOf](docs/DogAllOf.md)
|
||||||
- [EnumArrays](docs/EnumArrays.md)
|
- [EnumArrays](docs/EnumArrays.md)
|
||||||
- [EnumClass](docs/EnumClass.md)
|
- [EnumClass](docs/EnumClass.md)
|
||||||
- [EnumTest](docs/EnumTest.md)
|
- [EnumTest](docs/EnumTest.md)
|
||||||
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||||
|
- [Foo](docs/Foo.md)
|
||||||
|
- [FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
|
||||||
- [FormatTest](docs/FormatTest.md)
|
- [FormatTest](docs/FormatTest.md)
|
||||||
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||||
|
- [HealthCheckResult](docs/HealthCheckResult.md)
|
||||||
- [MapTest](docs/MapTest.md)
|
- [MapTest](docs/MapTest.md)
|
||||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [Model200Response](docs/Model200Response.md)
|
- [Model200Response](docs/Model200Response.md)
|
||||||
@ -220,18 +224,22 @@ Class | Method | HTTP request | Description
|
|||||||
- [ModelList](docs/ModelList.md)
|
- [ModelList](docs/ModelList.md)
|
||||||
- [ModelReturn](docs/ModelReturn.md)
|
- [ModelReturn](docs/ModelReturn.md)
|
||||||
- [Name](docs/Name.md)
|
- [Name](docs/Name.md)
|
||||||
|
- [NullableClass](docs/NullableClass.md)
|
||||||
- [NumberOnly](docs/NumberOnly.md)
|
- [NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
|
||||||
- [Order](docs/Order.md)
|
- [Order](docs/Order.md)
|
||||||
- [OuterComposite](docs/OuterComposite.md)
|
- [OuterComposite](docs/OuterComposite.md)
|
||||||
- [OuterEnum](docs/OuterEnum.md)
|
- [OuterEnum](docs/OuterEnum.md)
|
||||||
|
- [OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
|
||||||
|
- [OuterEnumInteger](docs/OuterEnumInteger.md)
|
||||||
|
- [OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
|
||||||
|
- [OuterObjectWithEnumProperty](docs/OuterObjectWithEnumProperty.md)
|
||||||
- [Pet](docs/Pet.md)
|
- [Pet](docs/Pet.md)
|
||||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
|
- [SingleRefType](docs/SingleRefType.md)
|
||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Tag](docs/Tag.md)
|
- [Tag](docs/Tag.md)
|
||||||
- [TypeHolderDefault](docs/TypeHolderDefault.md)
|
|
||||||
- [TypeHolderExample](docs/TypeHolderExample.md)
|
|
||||||
- [User](docs/User.md)
|
- [User](docs/User.md)
|
||||||
- [XmlItem](docs/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation for Authorization
|
## Documentation for Authorization
|
||||||
@ -251,9 +259,19 @@ Authentication schemes defined for the API:
|
|||||||
- **API key parameter name**: api_key_query
|
- **API key parameter name**: api_key_query
|
||||||
- **Location**: URL query string
|
- **Location**: URL query string
|
||||||
|
|
||||||
|
### bearer_test
|
||||||
|
|
||||||
|
|
||||||
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
### http_basic_test
|
### http_basic_test
|
||||||
|
|
||||||
|
|
||||||
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
### http_signature_test
|
||||||
|
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
### petstore_auth
|
### petstore_auth
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -7,17 +7,8 @@
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------ | ------------- | ------------- | -------------|
|
|------------ | ------------- | ------------- | -------------|
|
||||||
|**mapString** | **Map<String, String>** | | [optional] |
|
|**mapProperty** | **Map<String, String>** | | [optional] |
|
||||||
|**mapNumber** | **Map<String, BigDecimal>** | | [optional] |
|
|**mapOfMapProperty** | **Map<String, Map<String, String>>** | | [optional] |
|
||||||
|**mapInteger** | **Map<String, Integer>** | | [optional] |
|
|
||||||
|**mapBoolean** | **Map<String, Boolean>** | | [optional] |
|
|
||||||
|**mapArrayInteger** | **Map<String, List<Integer>>** | | [optional] |
|
|
||||||
|**mapArrayAnytype** | **Map<String, List<Object>>** | | [optional] |
|
|
||||||
|**mapMapString** | **Map<String, Map<String, String>>** | | [optional] |
|
|
||||||
|**mapMapAnytype** | **Map<String, Map<String, Object>>** | | [optional] |
|
|
||||||
|**anytype1** | **Object** | | [optional] |
|
|
||||||
|**anytype2** | **Object** | | [optional] |
|
|
||||||
|**anytype3** | **Object** | | [optional] |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# AllOfWithSingleRef
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
| Name | Type | Description | Notes |
|
||||||
|
|------------ | ------------- | ------------- | -------------|
|
||||||
|
|**username** | **String** | | [optional] |
|
||||||
|
|**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## call123testSpecialTags
|
## call123testSpecialTags
|
||||||
|
|
||||||
> CompletableFuture<Client> call123testSpecialTags(body)
|
> CompletableFuture<Client> call123testSpecialTags(client)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -34,9 +34,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(body);
|
CompletableFuture<Client> result = apiInstance.call123testSpecialTags(client);
|
||||||
System.out.println(result.get());
|
System.out.println(result.get());
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||||
@ -54,7 +54,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ No authorization required
|
|||||||
|
|
||||||
## call123testSpecialTagsWithHttpInfo
|
## call123testSpecialTagsWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Client>> call123testSpecialTags call123testSpecialTagsWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Client>> call123testSpecialTags call123testSpecialTagsWithHttpInfo(client)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -101,9 +101,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Client>> response = apiInstance.call123testSpecialTagsWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Client>> response = apiInstance.call123testSpecialTagsWithHttpInfo(client);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
System.out.println("Response body: " + response.get().getData());
|
System.out.println("Response body: " + response.get().getData());
|
||||||
@ -130,7 +130,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
141
samples/client/petstore/java/native-async/docs/DefaultApi.md
Normal file
141
samples/client/petstore/java/native-async/docs/DefaultApi.md
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
# DefaultApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
| Method | HTTP request | Description |
|
||||||
|
|------------- | ------------- | -------------|
|
||||||
|
| [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | |
|
||||||
|
| [**fooGetWithHttpInfo**](DefaultApi.md#fooGetWithHttpInfo) | **GET** /foo | |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## fooGet
|
||||||
|
|
||||||
|
> CompletableFuture<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;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
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 {
|
||||||
|
CompletableFuture<FooGetDefaultResponse> result = apiInstance.fooGet();
|
||||||
|
System.out.println(result.get());
|
||||||
|
} 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
|
||||||
|
|
||||||
|
CompletableFuture<[**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 | - |
|
||||||
|
|
||||||
|
## fooGetWithHttpInfo
|
||||||
|
|
||||||
|
> CompletableFuture<ApiResponse<FooGetDefaultResponse>> fooGet fooGetWithHttpInfo()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```java
|
||||||
|
// Import classes:
|
||||||
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.ApiResponse;
|
||||||
|
import org.openapitools.client.Configuration;
|
||||||
|
import org.openapitools.client.models.*;
|
||||||
|
import org.openapitools.client.api.DefaultApi;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
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 {
|
||||||
|
CompletableFuture<ApiResponse<FooGetDefaultResponse>> response = apiInstance.fooGetWithHttpInfo();
|
||||||
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
|
System.out.println("Response body: " + response.get().getData());
|
||||||
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
|
ApiException apiException = (ApiException)e.getCause();
|
||||||
|
System.err.println("Exception when calling DefaultApi#fooGet");
|
||||||
|
System.err.println("Status code: " + apiException.getCode());
|
||||||
|
System.err.println("Response headers: " + apiException.getResponseHeaders());
|
||||||
|
System.err.println("Reason: " + apiException.getResponseBody());
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (ApiException e) {
|
||||||
|
System.err.println("Exception when calling DefaultApi#fooGet");
|
||||||
|
System.err.println("Status code: " + e.getCode());
|
||||||
|
System.err.println("Response headers: " + e.getResponseHeaders());
|
||||||
|
System.err.println("Reason: " + e.getResponseBody());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
CompletableFuture<ApiResponse<[**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] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,6 +12,9 @@
|
|||||||
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|
||||||
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|
||||||
|**outerEnum** | **OuterEnum** | | [optional] |
|
|**outerEnum** | **OuterEnum** | | [optional] |
|
||||||
|
|**outerEnumInteger** | **OuterEnumInteger** | | [optional] |
|
||||||
|
|**outerEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] |
|
||||||
|
|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## testClassname
|
## testClassname
|
||||||
|
|
||||||
> CompletableFuture<Client> testClassname(body)
|
> CompletableFuture<Client> testClassname(client)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -41,9 +41,9 @@ public class Example {
|
|||||||
//api_key_query.setApiKeyPrefix("Token");
|
//api_key_query.setApiKeyPrefix("Token");
|
||||||
|
|
||||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Client> result = apiInstance.testClassname(body);
|
CompletableFuture<Client> result = apiInstance.testClassname(client);
|
||||||
System.out.println(result.get());
|
System.out.println(result.get());
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
|
||||||
@ -61,7 +61,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ CompletableFuture<[**Client**](Client.md)>
|
|||||||
|
|
||||||
## testClassnameWithHttpInfo
|
## testClassnameWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Client>> testClassname testClassnameWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Client>> testClassname testClassnameWithHttpInfo(client)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -115,9 +115,9 @@ public class Example {
|
|||||||
//api_key_query.setApiKeyPrefix("Token");
|
//api_key_query.setApiKeyPrefix("Token");
|
||||||
|
|
||||||
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
|
||||||
Client body = new Client(); // Client | client model
|
Client client = new Client(); // Client | client model
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Client>> response = apiInstance.testClassnameWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Client>> response = apiInstance.testClassnameWithHttpInfo(client);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
System.out.println("Response body: " + response.get().getData());
|
System.out.println("Response body: " + response.get().getData());
|
||||||
@ -144,7 +144,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Client**](Client.md)| client model | |
|
| **client** | [**Client**](Client.md)| client model | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
13
samples/client/petstore/java/native-async/docs/Foo.md
Normal file
13
samples/client/petstore/java/native-async/docs/Foo.md
Normal file
@ -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] |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
|||||||
|**number** | **BigDecimal** | | |
|
|**number** | **BigDecimal** | | |
|
||||||
|**_float** | **Float** | | [optional] |
|
|**_float** | **Float** | | [optional] |
|
||||||
|**_double** | **Double** | | [optional] |
|
|**_double** | **Double** | | [optional] |
|
||||||
|
|**decimal** | **BigDecimal** | | [optional] |
|
||||||
|**string** | **String** | | [optional] |
|
|**string** | **String** | | [optional] |
|
||||||
|**_byte** | **byte[]** | | |
|
|**_byte** | **byte[]** | | |
|
||||||
|**binary** | **File** | | [optional] |
|
|**binary** | **File** | | [optional] |
|
||||||
@ -20,7 +21,8 @@
|
|||||||
|**dateTime** | **OffsetDateTime** | | [optional] |
|
|**dateTime** | **OffsetDateTime** | | [optional] |
|
||||||
|**uuid** | **UUID** | | [optional] |
|
|**uuid** | **UUID** | | [optional] |
|
||||||
|**password** | **String** | | |
|
|**password** | **String** | | |
|
||||||
|**bigDecimal** | **BigDecimal** | | [optional] |
|
|**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 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# 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,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,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,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** | | |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -27,10 +27,12 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## addPet
|
## addPet
|
||||||
|
|
||||||
> CompletableFuture<Void> addPet(body)
|
> CompletableFuture<Void> addPet(pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -53,9 +55,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.addPet(body);
|
CompletableFuture<Void> result = apiInstance.addPet(pet);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#addPet");
|
System.err.println("Exception when calling PetApi#addPet");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -72,7 +74,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -91,15 +93,17 @@ CompletableFuture<void> (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
## addPetWithHttpInfo
|
## addPetWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> addPet addPetWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Void>> addPet addPetWithHttpInfo(pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -123,9 +127,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.addPetWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.addPetWithHttpInfo(pet);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -151,7 +155,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -170,7 +174,7 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
|
|
||||||
@ -180,6 +184,8 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -242,7 +248,7 @@ CompletableFuture<void> (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid pet value | - |
|
| **400** | Invalid pet value | - |
|
||||||
|
|
||||||
## deletePetWithHttpInfo
|
## deletePetWithHttpInfo
|
||||||
@ -251,6 +257,8 @@ CompletableFuture<void> (empty response body)
|
|||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -323,7 +331,7 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid pet value | - |
|
| **400** | Invalid pet value | - |
|
||||||
|
|
||||||
|
|
||||||
@ -800,10 +808,12 @@ CompletableFuture<ApiResponse<[**Pet**](Pet.md)>>
|
|||||||
|
|
||||||
## updatePet
|
## updatePet
|
||||||
|
|
||||||
> CompletableFuture<Void> updatePet(body)
|
> CompletableFuture<Void> updatePet(pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -826,9 +836,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.updatePet(body);
|
CompletableFuture<Void> result = apiInstance.updatePet(pet);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling PetApi#updatePet");
|
System.err.println("Exception when calling PetApi#updatePet");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -845,7 +855,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -864,17 +874,19 @@ CompletableFuture<void> (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid ID supplied | - |
|
| **400** | Invalid ID supplied | - |
|
||||||
| **404** | Pet not found | - |
|
| **404** | Pet not found | - |
|
||||||
| **405** | Validation exception | - |
|
| **405** | Validation exception | - |
|
||||||
|
|
||||||
## updatePetWithHttpInfo
|
## updatePetWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> updatePet updatePetWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Void>> updatePet updatePetWithHttpInfo(pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -898,9 +910,9 @@ public class Example {
|
|||||||
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
|
||||||
|
|
||||||
PetApi apiInstance = new PetApi(defaultClient);
|
PetApi apiInstance = new PetApi(defaultClient);
|
||||||
Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
|
Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.updatePetWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.updatePetWithHttpInfo(pet);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -926,7 +938,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -945,7 +957,7 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
| **200** | successful operation | - |
|
| **200** | Successful operation | - |
|
||||||
| **400** | Invalid ID supplied | - |
|
| **400** | Invalid ID supplied | - |
|
||||||
| **404** | Pet not found | - |
|
| **404** | Pet not found | - |
|
||||||
| **405** | Validation exception | - |
|
| **405** | Validation exception | - |
|
||||||
@ -957,6 +969,8 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
|
|
||||||
Updates a pet in the store with form data
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1021,6 +1035,7 @@ CompletableFuture<void> (empty response body)
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
## updatePetWithFormWithHttpInfo
|
## updatePetWithFormWithHttpInfo
|
||||||
@ -1029,6 +1044,8 @@ CompletableFuture<void> (empty response body)
|
|||||||
|
|
||||||
Updates a pet in the store with form data
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1103,6 +1120,7 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
### HTTP response details
|
### HTTP response details
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
|
| **200** | Successful operation | - |
|
||||||
| **405** | Invalid input | - |
|
| **405** | Invalid input | - |
|
||||||
|
|
||||||
|
|
||||||
@ -1112,6 +1130,8 @@ CompletableFuture<ApiResponse<Void>>
|
|||||||
|
|
||||||
uploads an image
|
uploads an image
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1185,6 +1205,8 @@ CompletableFuture<[**ModelApiResponse**](ModelApiResponse.md)>
|
|||||||
|
|
||||||
uploads an image
|
uploads an image
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1269,6 +1291,8 @@ CompletableFuture<ApiResponse<[**ModelApiResponse**](ModelApiResponse.md)>>
|
|||||||
|
|
||||||
uploads an image (required)
|
uploads an image (required)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1342,6 +1366,8 @@ CompletableFuture<[**ModelApiResponse**](ModelApiResponse.md)>
|
|||||||
|
|
||||||
uploads an image (required)
|
uploads an image (required)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# SingleRefType
|
||||||
|
|
||||||
|
## Enum
|
||||||
|
|
||||||
|
|
||||||
|
* `ADMIN` (value: `"admin"`)
|
||||||
|
|
||||||
|
* `USER` (value: `"user"`)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -456,10 +456,12 @@ No authorization required
|
|||||||
|
|
||||||
## placeOrder
|
## placeOrder
|
||||||
|
|
||||||
> CompletableFuture<Order> placeOrder(body)
|
> CompletableFuture<Order> placeOrder(order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -477,9 +479,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
StoreApi apiInstance = new StoreApi(defaultClient);
|
StoreApi apiInstance = new StoreApi(defaultClient);
|
||||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Order> result = apiInstance.placeOrder(body);
|
CompletableFuture<Order> result = apiInstance.placeOrder(order);
|
||||||
System.out.println(result.get());
|
System.out.println(result.get());
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling StoreApi#placeOrder");
|
System.err.println("Exception when calling StoreApi#placeOrder");
|
||||||
@ -497,7 +499,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -510,7 +512,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -521,10 +523,12 @@ No authorization required
|
|||||||
|
|
||||||
## placeOrderWithHttpInfo
|
## placeOrderWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Order>> placeOrder placeOrderWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Order>> placeOrder placeOrderWithHttpInfo(order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -543,9 +547,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
StoreApi apiInstance = new StoreApi(defaultClient);
|
StoreApi apiInstance = new StoreApi(defaultClient);
|
||||||
Order body = new Order(); // Order | order placed for purchasing the pet
|
Order order = new Order(); // Order | order placed for purchasing the pet
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Order>> response = apiInstance.placeOrderWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Order>> response = apiInstance.placeOrderWithHttpInfo(order);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
System.out.println("Response body: " + response.get().getData());
|
System.out.println("Response body: " + response.get().getData());
|
||||||
@ -572,7 +576,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -585,7 +589,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: application/xml, application/json
|
- **Accept**: application/xml, application/json
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -25,7 +25,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
## createUser
|
## createUser
|
||||||
|
|
||||||
> CompletableFuture<Void> createUser(body)
|
> CompletableFuture<Void> createUser(user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -48,9 +48,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
User body = new User(); // User | Created user object
|
User user = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.createUser(body);
|
CompletableFuture<Void> result = apiInstance.createUser(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUser");
|
System.err.println("Exception when calling UserApi#createUser");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -67,7 +67,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**User**](User.md)| Created user object | |
|
| **user** | [**User**](User.md)| Created user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -90,7 +90,7 @@ No authorization required
|
|||||||
|
|
||||||
## createUserWithHttpInfo
|
## createUserWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> createUser createUserWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Void>> createUser createUserWithHttpInfo(user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -114,9 +114,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
User body = new User(); // User | Created user object
|
User user = new User(); // User | Created user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUserWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUserWithHttpInfo(user);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -142,7 +142,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**User**](User.md)| Created user object | |
|
| **user** | [**User**](User.md)| Created user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -166,10 +166,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithArrayInput
|
## createUsersWithArrayInput
|
||||||
|
|
||||||
> CompletableFuture<Void> createUsersWithArrayInput(body)
|
> CompletableFuture<Void> createUsersWithArrayInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -187,9 +189,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.createUsersWithArrayInput(body);
|
CompletableFuture<Void> result = apiInstance.createUsersWithArrayInput(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -206,7 +208,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -219,7 +221,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -229,10 +231,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithArrayInputWithHttpInfo
|
## createUsersWithArrayInputWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> createUsersWithArrayInput createUsersWithArrayInputWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Void>> createUsersWithArrayInput createUsersWithArrayInputWithHttpInfo(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -251,9 +255,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUsersWithArrayInputWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUsersWithArrayInputWithHttpInfo(user);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -279,7 +283,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -292,7 +296,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -303,10 +307,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithListInput
|
## createUsersWithListInput
|
||||||
|
|
||||||
> CompletableFuture<Void> createUsersWithListInput(body)
|
> CompletableFuture<Void> createUsersWithListInput(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -324,9 +330,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.createUsersWithListInput(body);
|
CompletableFuture<Void> result = apiInstance.createUsersWithListInput(user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
System.err.println("Exception when calling UserApi#createUsersWithListInput");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -343,7 +349,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -356,7 +362,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -366,10 +372,12 @@ No authorization required
|
|||||||
|
|
||||||
## createUsersWithListInputWithHttpInfo
|
## createUsersWithListInputWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> createUsersWithListInput createUsersWithListInputWithHttpInfo(body)
|
> CompletableFuture<ApiResponse<Void>> createUsersWithListInput createUsersWithListInputWithHttpInfo(user)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -388,9 +396,9 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
List<User> body = Arrays.asList(); // List<User> | List of user object
|
List<User> user = Arrays.asList(); // List<User> | List of user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUsersWithListInputWithHttpInfo(body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.createUsersWithListInputWithHttpInfo(user);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -416,7 +424,7 @@ public class Example {
|
|||||||
|
|
||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **body** | [**List<User>**](User.md)| List of user object | |
|
| **user** | [**List<User>**](User.md)| List of user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -429,7 +437,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -587,6 +595,8 @@ No authorization required
|
|||||||
|
|
||||||
Get user by user name
|
Get user by user name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -653,6 +663,8 @@ No authorization required
|
|||||||
|
|
||||||
Get user by user name
|
Get user by user name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -730,6 +742,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs user into the system
|
Logs user into the system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -797,6 +811,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs user into the system
|
Logs user into the system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -875,6 +891,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -934,6 +952,8 @@ No authorization required
|
|||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@ -1000,7 +1020,7 @@ No authorization required
|
|||||||
|
|
||||||
## updateUser
|
## updateUser
|
||||||
|
|
||||||
> CompletableFuture<Void> updateUser(username, body)
|
> CompletableFuture<Void> updateUser(username, user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -1024,9 +1044,9 @@ public class Example {
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User user = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<Void> result = apiInstance.updateUser(username, body);
|
CompletableFuture<Void> result = apiInstance.updateUser(username, user);
|
||||||
} catch (ApiException e) {
|
} catch (ApiException e) {
|
||||||
System.err.println("Exception when calling UserApi#updateUser");
|
System.err.println("Exception when calling UserApi#updateUser");
|
||||||
System.err.println("Status code: " + e.getCode());
|
System.err.println("Status code: " + e.getCode());
|
||||||
@ -1044,7 +1064,7 @@ public class Example {
|
|||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **username** | **String**| name that need to be deleted | |
|
| **username** | **String**| name that need to be deleted | |
|
||||||
| **body** | [**User**](User.md)| Updated user object | |
|
| **user** | [**User**](User.md)| Updated user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -1057,7 +1077,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
@ -1068,7 +1088,7 @@ No authorization required
|
|||||||
|
|
||||||
## updateUserWithHttpInfo
|
## updateUserWithHttpInfo
|
||||||
|
|
||||||
> CompletableFuture<ApiResponse<Void>> updateUser updateUserWithHttpInfo(username, body)
|
> CompletableFuture<ApiResponse<Void>> updateUser updateUserWithHttpInfo(username, user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -1093,9 +1113,9 @@ public class Example {
|
|||||||
|
|
||||||
UserApi apiInstance = new UserApi(defaultClient);
|
UserApi apiInstance = new UserApi(defaultClient);
|
||||||
String username = "username_example"; // String | name that need to be deleted
|
String username = "username_example"; // String | name that need to be deleted
|
||||||
User body = new User(); // User | Updated user object
|
User user = new User(); // User | Updated user object
|
||||||
try {
|
try {
|
||||||
CompletableFuture<ApiResponse<Void>> response = apiInstance.updateUserWithHttpInfo(username, body);
|
CompletableFuture<ApiResponse<Void>> response = apiInstance.updateUserWithHttpInfo(username, user);
|
||||||
System.out.println("Status code: " + response.get().getStatusCode());
|
System.out.println("Status code: " + response.get().getStatusCode());
|
||||||
System.out.println("Response headers: " + response.get().getHeaders());
|
System.out.println("Response headers: " + response.get().getHeaders());
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
@ -1122,7 +1142,7 @@ public class Example {
|
|||||||
| Name | Type | Description | Notes |
|
| Name | Type | Description | Notes |
|
||||||
|------------- | ------------- | ------------- | -------------|
|
|------------- | ------------- | ------------- | -------------|
|
||||||
| **username** | **String**| name that need to be deleted | |
|
| **username** | **String**| name that need to be deleted | |
|
||||||
| **body** | [**User**](User.md)| Updated user object | |
|
| **user** | [**User**](User.md)| Updated user object | |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -1135,7 +1155,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -78,13 +78,13 @@ public class AnotherFakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags and operation ID starting with number
|
* To test special tags and operation ID starting with number
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<Client>
|
* @return CompletableFuture<Client>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Client> call123testSpecialTags(Client body) throws ApiException {
|
public CompletableFuture<Client> call123testSpecialTags(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -109,13 +109,13 @@ public class AnotherFakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test special tags
|
* To test special tags
|
||||||
* To test special tags and operation ID starting with number
|
* To test special tags and operation ID starting with number
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<ApiResponse<Client>>
|
* @return CompletableFuture<ApiResponse<Client>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Client>> call123testSpecialTagsWithHttpInfo(Client body) throws ApiException {
|
public CompletableFuture<ApiResponse<Client>> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -144,10 +144,10 @@ public class AnotherFakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client body) throws ApiException {
|
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client client) throws ApiException {
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
@ -160,7 +160,7 @@ public class AnotherFakeApi {
|
|||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(client);
|
||||||
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
|
@ -0,0 +1,164 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
import org.openapitools.client.ApiClient;
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.ApiResponse;
|
||||||
|
import org.openapitools.client.Pair;
|
||||||
|
|
||||||
|
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.net.http.HttpClient;
|
||||||
|
import java.net.http.HttpRequest;
|
||||||
|
import java.net.http.HttpResponse;
|
||||||
|
import java.time.Duration;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.StringJoiner;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class DefaultApi {
|
||||||
|
private final HttpClient memberVarHttpClient;
|
||||||
|
private final ObjectMapper memberVarObjectMapper;
|
||||||
|
private final String memberVarBaseUri;
|
||||||
|
private final Consumer<HttpRequest.Builder> memberVarInterceptor;
|
||||||
|
private final Duration memberVarReadTimeout;
|
||||||
|
private final Consumer<HttpResponse<InputStream>> memberVarResponseInterceptor;
|
||||||
|
private final Consumer<HttpResponse<String>> memberVarAsyncResponseInterceptor;
|
||||||
|
|
||||||
|
public DefaultApi() {
|
||||||
|
this(new ApiClient());
|
||||||
|
}
|
||||||
|
|
||||||
|
public DefaultApi(ApiClient apiClient) {
|
||||||
|
memberVarHttpClient = apiClient.getHttpClient();
|
||||||
|
memberVarObjectMapper = apiClient.getObjectMapper();
|
||||||
|
memberVarBaseUri = apiClient.getBaseUri();
|
||||||
|
memberVarInterceptor = apiClient.getRequestInterceptor();
|
||||||
|
memberVarReadTimeout = apiClient.getReadTimeout();
|
||||||
|
memberVarResponseInterceptor = apiClient.getResponseInterceptor();
|
||||||
|
memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor();
|
||||||
|
}
|
||||||
|
|
||||||
|
private ApiException getApiException(String operationId, HttpResponse<String> response) {
|
||||||
|
String message = formatExceptionMessage(operationId, response.statusCode(), response.body());
|
||||||
|
return new ApiException(response.statusCode(), message, response.headers(), response.body());
|
||||||
|
}
|
||||||
|
|
||||||
|
private String formatExceptionMessage(String operationId, int statusCode, String body) {
|
||||||
|
if (body == null || body.isEmpty()) {
|
||||||
|
body = "[no body]";
|
||||||
|
}
|
||||||
|
return operationId + " call failed with: " + statusCode + " - " + body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return CompletableFuture<FooGetDefaultResponse>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<FooGetDefaultResponse> fooGet() throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = fooGetRequestBuilder();
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("fooGet", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<FooGetDefaultResponse>() {})
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return CompletableFuture<ApiResponse<FooGetDefaultResponse>>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<ApiResponse<FooGetDefaultResponse>> fooGetWithHttpInfo() throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = fooGetRequestBuilder();
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (memberVarAsyncResponseInterceptor != null) {
|
||||||
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
|
}
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("fooGet", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
new ApiResponse<FooGetDefaultResponse>(
|
||||||
|
localVarResponse.statusCode(),
|
||||||
|
localVarResponse.headers().map(),
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<FooGetDefaultResponse>() {}))
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private HttpRequest.Builder fooGetRequestBuilder() throws ApiException {
|
||||||
|
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
|
String localVarPath = "/foo";
|
||||||
|
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
|
||||||
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
|
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
|
||||||
|
if (memberVarReadTimeout != null) {
|
||||||
|
localVarRequestBuilder.timeout(memberVarReadTimeout);
|
||||||
|
}
|
||||||
|
if (memberVarInterceptor != null) {
|
||||||
|
memberVarInterceptor.accept(localVarRequestBuilder);
|
||||||
|
}
|
||||||
|
return localVarRequestBuilder;
|
||||||
|
}
|
||||||
|
}
|
@ -19,13 +19,16 @@ import org.openapitools.client.Pair;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import org.openapitools.client.model.Client;
|
import org.openapitools.client.model.Client;
|
||||||
|
import org.openapitools.client.model.EnumClass;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import org.openapitools.client.model.FileSchemaTestClass;
|
import org.openapitools.client.model.FileSchemaTestClass;
|
||||||
|
import org.openapitools.client.model.HealthCheckResult;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import org.openapitools.client.model.OuterComposite;
|
import org.openapitools.client.model.OuterComposite;
|
||||||
|
import org.openapitools.client.model.OuterObjectWithEnumProperty;
|
||||||
|
import org.openapitools.client.model.Pet;
|
||||||
import org.openapitools.client.model.User;
|
import org.openapitools.client.model.User;
|
||||||
import org.openapitools.client.model.XmlItem;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
@ -84,20 +87,108 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* Health check endpoint
|
||||||
* this route creates an XmlItem
|
*
|
||||||
* @param xmlItem XmlItem Body (required)
|
* @return CompletableFuture<HealthCheckResult>
|
||||||
* @return CompletableFuture<Void>
|
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> createXmlItem(XmlItem xmlItem) throws ApiException {
|
public CompletableFuture<HealthCheckResult> fakeHealthGet() throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = createXmlItemRequestBuilder(xmlItem);
|
HttpRequest.Builder localVarRequestBuilder = fakeHealthGetRequestBuilder();
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
if (localVarResponse.statusCode()/ 100 != 2) {
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
return CompletableFuture.failedFuture(getApiException("createXmlItem", localVarResponse));
|
return CompletableFuture.failedFuture(getApiException("fakeHealthGet", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<HealthCheckResult>() {})
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Health check endpoint
|
||||||
|
*
|
||||||
|
* @return CompletableFuture<ApiResponse<HealthCheckResult>>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<ApiResponse<HealthCheckResult>> fakeHealthGetWithHttpInfo() throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = fakeHealthGetRequestBuilder();
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (memberVarAsyncResponseInterceptor != null) {
|
||||||
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
|
}
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("fakeHealthGet", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
new ApiResponse<HealthCheckResult>(
|
||||||
|
localVarResponse.statusCode(),
|
||||||
|
localVarResponse.headers().map(),
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<HealthCheckResult>() {}))
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private HttpRequest.Builder fakeHealthGetRequestBuilder() throws ApiException {
|
||||||
|
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
|
String localVarPath = "/fake/health";
|
||||||
|
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
|
||||||
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
|
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
|
||||||
|
if (memberVarReadTimeout != null) {
|
||||||
|
localVarRequestBuilder.timeout(memberVarReadTimeout);
|
||||||
|
}
|
||||||
|
if (memberVarInterceptor != null) {
|
||||||
|
memberVarInterceptor.accept(localVarRequestBuilder);
|
||||||
|
}
|
||||||
|
return localVarRequestBuilder;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* test http signature authentication
|
||||||
|
*
|
||||||
|
* @param pet Pet object that needs to be added to the store (required)
|
||||||
|
* @param query1 query parameter (optional)
|
||||||
|
* @param header1 header parameter (optional)
|
||||||
|
* @return CompletableFuture<Void>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<Void> fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = fakeHttpSignatureTestRequestBuilder(pet, query1, header1);
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("fakeHttpSignatureTest", localVarResponse));
|
||||||
}
|
}
|
||||||
return CompletableFuture.completedFuture(null);
|
return CompletableFuture.completedFuture(null);
|
||||||
});
|
});
|
||||||
@ -108,15 +199,17 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* creates an XmlItem
|
* test http signature authentication
|
||||||
* this route creates an XmlItem
|
*
|
||||||
* @param xmlItem XmlItem Body (required)
|
* @param pet Pet object that needs to be added to the store (required)
|
||||||
|
* @param query1 query parameter (optional)
|
||||||
|
* @param header1 header parameter (optional)
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> createXmlItemWithHttpInfo(XmlItem xmlItem) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = createXmlItemRequestBuilder(xmlItem);
|
HttpRequest.Builder localVarRequestBuilder = fakeHttpSignatureTestRequestBuilder(pet, query1, header1);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -124,7 +217,7 @@ public class FakeApi {
|
|||||||
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
}
|
}
|
||||||
if (localVarResponse.statusCode()/ 100 != 2) {
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
return CompletableFuture.failedFuture(getApiException("createXmlItem", localVarResponse));
|
return CompletableFuture.failedFuture(getApiException("fakeHttpSignatureTest", localVarResponse));
|
||||||
}
|
}
|
||||||
return CompletableFuture.completedFuture(
|
return CompletableFuture.completedFuture(
|
||||||
new ApiResponse<Void>(localVarResponse.statusCode(), localVarResponse.headers().map(), null)
|
new ApiResponse<Void>(localVarResponse.statusCode(), localVarResponse.headers().map(), null)
|
||||||
@ -137,24 +230,36 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder createXmlItemRequestBuilder(XmlItem xmlItem) throws ApiException {
|
private HttpRequest.Builder fakeHttpSignatureTestRequestBuilder(Pet pet, String query1, String header1) throws ApiException {
|
||||||
// verify the required parameter 'xmlItem' is set
|
// verify the required parameter 'pet' is set
|
||||||
if (xmlItem == null) {
|
if (pet == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem");
|
throw new ApiException(400, "Missing the required parameter 'pet' when calling fakeHttpSignatureTest");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
String localVarPath = "/fake/create_xml_item";
|
String localVarPath = "/fake/http-signature-test";
|
||||||
|
|
||||||
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
List<Pair> localVarQueryParams = new ArrayList<>();
|
||||||
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("query_1", query1));
|
||||||
|
|
||||||
localVarRequestBuilder.header("Content-Type", "application/xml");
|
if (!localVarQueryParams.isEmpty()) {
|
||||||
|
StringJoiner queryJoiner = new StringJoiner("&");
|
||||||
|
localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
|
||||||
|
} else {
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (header1 != null) {
|
||||||
|
localVarRequestBuilder.header("header_1", header1.toString());
|
||||||
|
}
|
||||||
|
localVarRequestBuilder.header("Content-Type", "application/json");
|
||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(xmlItem);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(pet);
|
||||||
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
}
|
}
|
||||||
@ -263,13 +368,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param body Input composite as post body (optional)
|
* @param outerComposite Input composite as post body (optional)
|
||||||
* @return CompletableFuture<OuterComposite>
|
* @return CompletableFuture<OuterComposite>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<OuterComposite> fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
|
public CompletableFuture<OuterComposite> fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -294,13 +399,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Test serialization of object with outer number type
|
* Test serialization of object with outer number type
|
||||||
* @param body Input composite as post body (optional)
|
* @param outerComposite Input composite as post body (optional)
|
||||||
* @return CompletableFuture<ApiResponse<OuterComposite>>
|
* @return CompletableFuture<ApiResponse<OuterComposite>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<OuterComposite>> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws ApiException {
|
public CompletableFuture<ApiResponse<OuterComposite>> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -329,7 +434,7 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite body) throws ApiException {
|
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite outerComposite) throws ApiException {
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
@ -341,7 +446,7 @@ public class FakeApi {
|
|||||||
localVarRequestBuilder.header("Accept", "*/*");
|
localVarRequestBuilder.header("Accept", "*/*");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(outerComposite);
|
||||||
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
@ -539,19 +644,117 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* Test serialization of enum (int) properties with examples
|
||||||
* @param body (required)
|
* @param outerObjectWithEnumProperty Input enum (int) as post body (required)
|
||||||
* @return CompletableFuture<Void>
|
* @return CompletableFuture<OuterObjectWithEnumProperty>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
|
public CompletableFuture<OuterObjectWithEnumProperty> fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = fakePropertyEnumIntegerSerializeRequestBuilder(outerObjectWithEnumProperty);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
if (localVarResponse.statusCode()/ 100 != 2) {
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
return CompletableFuture.failedFuture(getApiException("testBodyWithFileSchema", localVarResponse));
|
return CompletableFuture.failedFuture(getApiException("fakePropertyEnumIntegerSerialize", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<OuterObjectWithEnumProperty>() {})
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Test serialization of enum (int) properties with examples
|
||||||
|
* @param outerObjectWithEnumProperty Input enum (int) as post body (required)
|
||||||
|
* @return CompletableFuture<ApiResponse<OuterObjectWithEnumProperty>>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<ApiResponse<OuterObjectWithEnumProperty>> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = fakePropertyEnumIntegerSerializeRequestBuilder(outerObjectWithEnumProperty);
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (memberVarAsyncResponseInterceptor != null) {
|
||||||
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
|
}
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("fakePropertyEnumIntegerSerialize", localVarResponse));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
String responseBody = localVarResponse.body();
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
new ApiResponse<OuterObjectWithEnumProperty>(
|
||||||
|
localVarResponse.statusCode(),
|
||||||
|
localVarResponse.headers().map(),
|
||||||
|
responseBody == null || responseBody.isBlank() ? null : memberVarObjectMapper.readValue(responseBody, new TypeReference<OuterObjectWithEnumProperty>() {}))
|
||||||
|
);
|
||||||
|
} catch (IOException e) {
|
||||||
|
return CompletableFuture.failedFuture(new ApiException(e));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private HttpRequest.Builder fakePropertyEnumIntegerSerializeRequestBuilder(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
|
||||||
|
// verify the required parameter 'outerObjectWithEnumProperty' is set
|
||||||
|
if (outerObjectWithEnumProperty == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'outerObjectWithEnumProperty' when calling fakePropertyEnumIntegerSerialize");
|
||||||
|
}
|
||||||
|
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
|
String localVarPath = "/fake/property/enum-int";
|
||||||
|
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
|
||||||
|
localVarRequestBuilder.header("Content-Type", "application/json");
|
||||||
|
localVarRequestBuilder.header("Accept", "*/*");
|
||||||
|
|
||||||
|
try {
|
||||||
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(outerObjectWithEnumProperty);
|
||||||
|
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new ApiException(e);
|
||||||
|
}
|
||||||
|
if (memberVarReadTimeout != null) {
|
||||||
|
localVarRequestBuilder.timeout(memberVarReadTimeout);
|
||||||
|
}
|
||||||
|
if (memberVarInterceptor != null) {
|
||||||
|
memberVarInterceptor.accept(localVarRequestBuilder);
|
||||||
|
}
|
||||||
|
return localVarRequestBuilder;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* For this test, the body has to be a binary file.
|
||||||
|
* @param body image to upload (required)
|
||||||
|
* @return CompletableFuture<Void>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<Void> testBodyWithBinary(File body) throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithBinaryRequestBuilder(body);
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("testBodyWithBinary", localVarResponse));
|
||||||
}
|
}
|
||||||
return CompletableFuture.completedFuture(null);
|
return CompletableFuture.completedFuture(null);
|
||||||
});
|
});
|
||||||
@ -563,14 +766,14 @@ public class FakeApi {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* For this test, the body for this request much reference a schema named `File`.
|
* For this test, the body has to be a binary file.
|
||||||
* @param body (required)
|
* @param body image to upload (required)
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testBodyWithBinaryWithHttpInfo(File body) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithBinaryRequestBuilder(body);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -578,7 +781,7 @@ public class FakeApi {
|
|||||||
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
}
|
}
|
||||||
if (localVarResponse.statusCode()/ 100 != 2) {
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
return CompletableFuture.failedFuture(getApiException("testBodyWithFileSchema", localVarResponse));
|
return CompletableFuture.failedFuture(getApiException("testBodyWithBinary", localVarResponse));
|
||||||
}
|
}
|
||||||
return CompletableFuture.completedFuture(
|
return CompletableFuture.completedFuture(
|
||||||
new ApiResponse<Void>(localVarResponse.statusCode(), localVarResponse.headers().map(), null)
|
new ApiResponse<Void>(localVarResponse.statusCode(), localVarResponse.headers().map(), null)
|
||||||
@ -591,19 +794,19 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass body) throws ApiException {
|
private HttpRequest.Builder testBodyWithBinaryRequestBuilder(File body) throws ApiException {
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'body' is set
|
||||||
if (body == null) {
|
if (body == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithBinary");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
String localVarPath = "/fake/body-with-file-schema";
|
String localVarPath = "/fake/body-with-binary";
|
||||||
|
|
||||||
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
|
||||||
localVarRequestBuilder.header("Content-Type", "application/json");
|
localVarRequestBuilder.header("Content-Type", "image/png");
|
||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -622,15 +825,98 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
* For this test, the body for this request must reference a schema named `File`.
|
||||||
* @param query (required)
|
* @param fileSchemaTestClass (required)
|
||||||
* @param body (required)
|
|
||||||
* @return CompletableFuture<Void>
|
* @return CompletableFuture<Void>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testBodyWithQueryParams(String query, User body) throws ApiException {
|
public CompletableFuture<Void> testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, body);
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass);
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("testBodyWithFileSchema", localVarResponse));
|
||||||
|
}
|
||||||
|
return CompletableFuture.completedFuture(null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* For this test, the body for this request must reference a schema named `File`.
|
||||||
|
* @param fileSchemaTestClass (required)
|
||||||
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<ApiResponse<Void>> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass);
|
||||||
|
return memberVarHttpClient.sendAsync(
|
||||||
|
localVarRequestBuilder.build(),
|
||||||
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
|
if (memberVarAsyncResponseInterceptor != null) {
|
||||||
|
memberVarAsyncResponseInterceptor.accept(localVarResponse);
|
||||||
|
}
|
||||||
|
if (localVarResponse.statusCode()/ 100 != 2) {
|
||||||
|
return CompletableFuture.failedFuture(getApiException("testBodyWithFileSchema", localVarResponse));
|
||||||
|
}
|
||||||
|
return CompletableFuture.completedFuture(
|
||||||
|
new ApiResponse<Void>(localVarResponse.statusCode(), localVarResponse.headers().map(), null)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
catch (ApiException e) {
|
||||||
|
return CompletableFuture.failedFuture(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
|
||||||
|
// verify the required parameter 'fileSchemaTestClass' is set
|
||||||
|
if (fileSchemaTestClass == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||||
|
}
|
||||||
|
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
|
String localVarPath = "/fake/body-with-file-schema";
|
||||||
|
|
||||||
|
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
|
||||||
|
|
||||||
|
localVarRequestBuilder.header("Content-Type", "application/json");
|
||||||
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
|
try {
|
||||||
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(fileSchemaTestClass);
|
||||||
|
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new ApiException(e);
|
||||||
|
}
|
||||||
|
if (memberVarReadTimeout != null) {
|
||||||
|
localVarRequestBuilder.timeout(memberVarReadTimeout);
|
||||||
|
}
|
||||||
|
if (memberVarInterceptor != null) {
|
||||||
|
memberVarInterceptor.accept(localVarRequestBuilder);
|
||||||
|
}
|
||||||
|
return localVarRequestBuilder;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param query (required)
|
||||||
|
* @param user (required)
|
||||||
|
* @return CompletableFuture<Void>
|
||||||
|
* @throws ApiException if fails to make API call
|
||||||
|
*/
|
||||||
|
public CompletableFuture<Void> testBodyWithQueryParams(String query, User user) throws ApiException {
|
||||||
|
try {
|
||||||
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -649,13 +935,13 @@ public class FakeApi {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param query (required)
|
* @param query (required)
|
||||||
* @param body (required)
|
* @param user (required)
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, body);
|
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -676,14 +962,14 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User body) throws ApiException {
|
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User user) throws ApiException {
|
||||||
// verify the required parameter 'query' is set
|
// verify the required parameter 'query' is set
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if (body == null) {
|
if (user == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
@ -705,7 +991,7 @@ public class FakeApi {
|
|||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(user);
|
||||||
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
@ -721,13 +1007,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<Client>
|
* @return CompletableFuture<Client>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Client> testClientModel(Client body) throws ApiException {
|
public CompletableFuture<Client> testClientModel(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -752,13 +1038,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* To test \"client\" model
|
* To test \"client\" model
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<ApiResponse<Client>>
|
* @return CompletableFuture<ApiResponse<Client>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Client>> testClientModelWithHttpInfo(Client body) throws ApiException {
|
public CompletableFuture<ApiResponse<Client>> testClientModelWithHttpInfo(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -787,10 +1073,10 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testClientModelRequestBuilder(Client body) throws ApiException {
|
private HttpRequest.Builder testClientModelRequestBuilder(Client client) throws ApiException {
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
@ -803,7 +1089,7 @@ public class FakeApi {
|
|||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(client);
|
||||||
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
@ -817,8 +1103,8 @@ public class FakeApi {
|
|||||||
return localVarRequestBuilder;
|
return localVarRequestBuilder;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param number None (required)
|
* @param number None (required)
|
||||||
* @param _double None (required)
|
* @param _double None (required)
|
||||||
* @param patternWithoutDelimiter None (required)
|
* @param patternWithoutDelimiter None (required)
|
||||||
@ -854,8 +1140,8 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
* @param number None (required)
|
* @param number None (required)
|
||||||
* @param _double None (required)
|
* @param _double None (required)
|
||||||
* @param patternWithoutDelimiter None (required)
|
* @param patternWithoutDelimiter None (required)
|
||||||
@ -940,14 +1226,15 @@ public class FakeApi {
|
|||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
|
* @param enumQueryModelArray (optional
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @return CompletableFuture<Void>
|
* @return CompletableFuture<Void>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
public CompletableFuture<Void> testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -971,14 +1258,15 @@ public class FakeApi {
|
|||||||
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
|
||||||
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
* @param enumQueryInteger Query parameter enum test (double) (optional)
|
||||||
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
* @param enumQueryDouble Query parameter enum test (double) (optional)
|
||||||
|
* @param enumQueryModelArray (optional
|
||||||
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
* @param enumFormStringArray Form parameter enum test (string array) (optional
|
||||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -999,17 +1287,18 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testEnumParametersRequestBuilder(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
private HttpRequest.Builder testEnumParametersRequestBuilder(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws ApiException {
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
String localVarPath = "/fake";
|
String localVarPath = "/fake";
|
||||||
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<>();
|
List<Pair> localVarQueryParams = new ArrayList<>();
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "enum_query_string_array", enumQueryStringArray));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_string", enumQueryString));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_string", enumQueryString));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_integer", enumQueryInteger));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_integer", enumQueryInteger));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_double", enumQueryDouble));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_query_double", enumQueryDouble));
|
||||||
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "enum_query_model_array", enumQueryModelArray));
|
||||||
|
|
||||||
if (!localVarQueryParams.isEmpty()) {
|
if (!localVarQueryParams.isEmpty()) {
|
||||||
StringJoiner queryJoiner = new StringJoiner("&");
|
StringJoiner queryJoiner = new StringJoiner("&");
|
||||||
@ -1263,13 +1552,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param param request body (required)
|
* @param requestBody request body (required)
|
||||||
* @return CompletableFuture<Void>
|
* @return CompletableFuture<Void>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testInlineAdditionalProperties(Map<String, String> param) throws ApiException {
|
public CompletableFuture<Void> testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(param);
|
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -1287,13 +1576,13 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param param request body (required)
|
* @param requestBody request body (required)
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(param);
|
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -1314,10 +1603,10 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map<String, String> param) throws ApiException {
|
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map<String, String> requestBody) throws ApiException {
|
||||||
// verify the required parameter 'param' is set
|
// verify the required parameter 'requestBody' is set
|
||||||
if (param == null) {
|
if (requestBody == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
@ -1330,7 +1619,7 @@ public class FakeApi {
|
|||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(param);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(requestBody);
|
||||||
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
@ -1434,12 +1723,14 @@ public class FakeApi {
|
|||||||
* @param http (required)
|
* @param http (required)
|
||||||
* @param url (required)
|
* @param url (required)
|
||||||
* @param context (required)
|
* @param context (required)
|
||||||
|
* @param allowEmpty (required)
|
||||||
|
* @param language (optional
|
||||||
* @return CompletableFuture<Void>
|
* @return CompletableFuture<Void>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
public CompletableFuture<Void> testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context);
|
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -1462,12 +1753,14 @@ public class FakeApi {
|
|||||||
* @param http (required)
|
* @param http (required)
|
||||||
* @param url (required)
|
* @param url (required)
|
||||||
* @param context (required)
|
* @param context (required)
|
||||||
|
* @param allowEmpty (required)
|
||||||
|
* @param language (optional
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context);
|
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -1488,7 +1781,7 @@ public class FakeApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
|
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws ApiException {
|
||||||
// verify the required parameter 'pipe' is set
|
// verify the required parameter 'pipe' is set
|
||||||
if (pipe == null) {
|
if (pipe == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
|
||||||
@ -1509,17 +1802,23 @@ public class FakeApi {
|
|||||||
if (context == null) {
|
if (context == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||||
}
|
}
|
||||||
|
// verify the required parameter 'allowEmpty' is set
|
||||||
|
if (allowEmpty == null) {
|
||||||
|
throw new ApiException(400, "Missing the required parameter 'allowEmpty' when calling testQueryParameterCollectionFormat");
|
||||||
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
|
|
||||||
String localVarPath = "/fake/test-query-parameters";
|
String localVarPath = "/fake/test-query-parameters";
|
||||||
|
|
||||||
List<Pair> localVarQueryParams = new ArrayList<>();
|
List<Pair> localVarQueryParams = new ArrayList<>();
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "pipe", pipe));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("pipes", "pipe", pipe));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "ioutil", ioutil));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("ssv", "http", http));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("ssv", "http", http));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "url", url));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "url", url));
|
||||||
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "context", context));
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("multi", "context", context));
|
||||||
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("language", language));
|
||||||
|
localVarQueryParams.addAll(ApiClient.parameterToPairs("allowEmpty", allowEmpty));
|
||||||
|
|
||||||
if (!localVarQueryParams.isEmpty()) {
|
if (!localVarQueryParams.isEmpty()) {
|
||||||
StringJoiner queryJoiner = new StringJoiner("&");
|
StringJoiner queryJoiner = new StringJoiner("&");
|
||||||
|
@ -78,13 +78,13 @@ public class FakeClassnameTags123Api {
|
|||||||
/**
|
/**
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<Client>
|
* @return CompletableFuture<Client>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Client> testClassname(Client body) throws ApiException {
|
public CompletableFuture<Client> testClassname(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -109,13 +109,13 @@ public class FakeClassnameTags123Api {
|
|||||||
/**
|
/**
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
* @param body client model (required)
|
* @param client client model (required)
|
||||||
* @return CompletableFuture<ApiResponse<Client>>
|
* @return CompletableFuture<ApiResponse<Client>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Client>> testClassnameWithHttpInfo(Client body) throws ApiException {
|
public CompletableFuture<ApiResponse<Client>> testClassnameWithHttpInfo(Client client) throws ApiException {
|
||||||
try {
|
try {
|
||||||
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(body);
|
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client);
|
||||||
return memberVarHttpClient.sendAsync(
|
return memberVarHttpClient.sendAsync(
|
||||||
localVarRequestBuilder.build(),
|
localVarRequestBuilder.build(),
|
||||||
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
HttpResponse.BodyHandlers.ofString()).thenComposeAsync(localVarResponse -> {
|
||||||
@ -144,10 +144,10 @@ public class FakeClassnameTags123Api {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private HttpRequest.Builder testClassnameRequestBuilder(Client body) throws ApiException {
|
private HttpRequest.Builder testClassnameRequestBuilder(Client client) throws ApiException {
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if (body == null) {
|
if (client == null) {
|
||||||
throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
|
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
|
||||||
@ -160,7 +160,7 @@ public class FakeClassnameTags123Api {
|
|||||||
localVarRequestBuilder.header("Accept", "application/json");
|
localVarRequestBuilder.header("Accept", "application/json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
|
byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(client);
|
||||||
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new ApiException(e);
|
throw new ApiException(e);
|
||||||
|
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