forked from loafle/openapi-generator-original
Migrate PHP client samples to use OAS v3 spec (#6722)
* consolidate php samples * restore EnumTestTest.php
This commit is contained in:
parent
8400d4c6f9
commit
bcefbe99c1
@ -1,4 +0,0 @@
|
|||||||
generatorName: php
|
|
||||||
outputDir: samples/client/petstore/php/OpenAPIClient-php
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/php
|
|
@ -1,4 +1,4 @@
|
|||||||
generatorName: php
|
generatorName: php
|
||||||
outputDir: samples/openapi3/client/petstore/php/OpenAPIClient-php
|
outputDir: samples/client/petstore/php/OpenAPIClient-php
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_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/php
|
templateDir: modules/openapi-generator/src/main/resources/php
|
||||||
|
1
pom.xml
1
pom.xml
@ -1181,7 +1181,6 @@
|
|||||||
<module>samples/client/petstore/rust/reqwest/petstore</module>
|
<module>samples/client/petstore/rust/reqwest/petstore</module>
|
||||||
<module>samples/client/petstore/rust/reqwest/petstore-async</module>
|
<module>samples/client/petstore/rust/reqwest/petstore-async</module>
|
||||||
<module>samples/client/petstore/php/OpenAPIClient-php</module>
|
<module>samples/client/petstore/php/OpenAPIClient-php</module>
|
||||||
<module>samples/openapi3/client/petstore/php/OpenAPIClient-php</module>
|
|
||||||
<!--<module>samples/client/petstore/javascript-apollo</module>-->
|
<!--<module>samples/client/petstore/javascript-apollo</module>-->
|
||||||
<module>samples/client/petstore/javascript-es6</module>
|
<module>samples/client/petstore/javascript-es6</module>
|
||||||
<module>samples/client/petstore/javascript-promise-es6</module>
|
<module>samples/client/petstore/javascript-promise-es6</module>
|
||||||
|
@ -4,26 +4,18 @@
|
|||||||
README.md
|
README.md
|
||||||
composer.json
|
composer.json
|
||||||
docs/Api/AnotherFakeApi.md
|
docs/Api/AnotherFakeApi.md
|
||||||
|
docs/Api/DefaultApi.md
|
||||||
docs/Api/FakeApi.md
|
docs/Api/FakeApi.md
|
||||||
docs/Api/FakeClassnameTags123Api.md
|
docs/Api/FakeClassnameTags123Api.md
|
||||||
docs/Api/PetApi.md
|
docs/Api/PetApi.md
|
||||||
docs/Api/StoreApi.md
|
docs/Api/StoreApi.md
|
||||||
docs/Api/UserApi.md
|
docs/Api/UserApi.md
|
||||||
docs/Model/AdditionalPropertiesAnyType.md
|
|
||||||
docs/Model/AdditionalPropertiesArray.md
|
|
||||||
docs/Model/AdditionalPropertiesBoolean.md
|
|
||||||
docs/Model/AdditionalPropertiesClass.md
|
docs/Model/AdditionalPropertiesClass.md
|
||||||
docs/Model/AdditionalPropertiesInteger.md
|
|
||||||
docs/Model/AdditionalPropertiesNumber.md
|
|
||||||
docs/Model/AdditionalPropertiesObject.md
|
|
||||||
docs/Model/AdditionalPropertiesString.md
|
|
||||||
docs/Model/Animal.md
|
docs/Model/Animal.md
|
||||||
docs/Model/ApiResponse.md
|
docs/Model/ApiResponse.md
|
||||||
docs/Model/ArrayOfArrayOfNumberOnly.md
|
docs/Model/ArrayOfArrayOfNumberOnly.md
|
||||||
docs/Model/ArrayOfNumberOnly.md
|
docs/Model/ArrayOfNumberOnly.md
|
||||||
docs/Model/ArrayTest.md
|
docs/Model/ArrayTest.md
|
||||||
docs/Model/BigCat.md
|
|
||||||
docs/Model/BigCatAllOf.md
|
|
||||||
docs/Model/Capitalization.md
|
docs/Model/Capitalization.md
|
||||||
docs/Model/Cat.md
|
docs/Model/Cat.md
|
||||||
docs/Model/CatAllOf.md
|
docs/Model/CatAllOf.md
|
||||||
@ -37,28 +29,39 @@ docs/Model/EnumClass.md
|
|||||||
docs/Model/EnumTest.md
|
docs/Model/EnumTest.md
|
||||||
docs/Model/File.md
|
docs/Model/File.md
|
||||||
docs/Model/FileSchemaTestClass.md
|
docs/Model/FileSchemaTestClass.md
|
||||||
|
docs/Model/Foo.md
|
||||||
docs/Model/FormatTest.md
|
docs/Model/FormatTest.md
|
||||||
docs/Model/HasOnlyReadOnly.md
|
docs/Model/HasOnlyReadOnly.md
|
||||||
|
docs/Model/HealthCheckResult.md
|
||||||
|
docs/Model/InlineObject.md
|
||||||
|
docs/Model/InlineObject1.md
|
||||||
|
docs/Model/InlineObject2.md
|
||||||
|
docs/Model/InlineObject3.md
|
||||||
|
docs/Model/InlineObject4.md
|
||||||
|
docs/Model/InlineObject5.md
|
||||||
|
docs/Model/InlineResponseDefault.md
|
||||||
docs/Model/MapTest.md
|
docs/Model/MapTest.md
|
||||||
docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md
|
docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md
|
||||||
docs/Model/Model200Response.md
|
docs/Model/Model200Response.md
|
||||||
docs/Model/ModelList.md
|
docs/Model/ModelList.md
|
||||||
docs/Model/ModelReturn.md
|
docs/Model/ModelReturn.md
|
||||||
docs/Model/Name.md
|
docs/Model/Name.md
|
||||||
|
docs/Model/NullableClass.md
|
||||||
docs/Model/NumberOnly.md
|
docs/Model/NumberOnly.md
|
||||||
docs/Model/Order.md
|
docs/Model/Order.md
|
||||||
docs/Model/OuterComposite.md
|
docs/Model/OuterComposite.md
|
||||||
docs/Model/OuterEnum.md
|
docs/Model/OuterEnum.md
|
||||||
|
docs/Model/OuterEnumDefaultValue.md
|
||||||
|
docs/Model/OuterEnumInteger.md
|
||||||
|
docs/Model/OuterEnumIntegerDefaultValue.md
|
||||||
docs/Model/Pet.md
|
docs/Model/Pet.md
|
||||||
docs/Model/ReadOnlyFirst.md
|
docs/Model/ReadOnlyFirst.md
|
||||||
docs/Model/SpecialModelName.md
|
docs/Model/SpecialModelName.md
|
||||||
docs/Model/Tag.md
|
docs/Model/Tag.md
|
||||||
docs/Model/TypeHolderDefault.md
|
|
||||||
docs/Model/TypeHolderExample.md
|
|
||||||
docs/Model/User.md
|
docs/Model/User.md
|
||||||
docs/Model/XmlItem.md
|
|
||||||
git_push.sh
|
git_push.sh
|
||||||
lib/Api/AnotherFakeApi.php
|
lib/Api/AnotherFakeApi.php
|
||||||
|
lib/Api/DefaultApi.php
|
||||||
lib/Api/FakeApi.php
|
lib/Api/FakeApi.php
|
||||||
lib/Api/FakeClassnameTags123Api.php
|
lib/Api/FakeClassnameTags123Api.php
|
||||||
lib/Api/PetApi.php
|
lib/Api/PetApi.php
|
||||||
@ -67,21 +70,12 @@ lib/Api/UserApi.php
|
|||||||
lib/ApiException.php
|
lib/ApiException.php
|
||||||
lib/Configuration.php
|
lib/Configuration.php
|
||||||
lib/HeaderSelector.php
|
lib/HeaderSelector.php
|
||||||
lib/Model/AdditionalPropertiesAnyType.php
|
|
||||||
lib/Model/AdditionalPropertiesArray.php
|
|
||||||
lib/Model/AdditionalPropertiesBoolean.php
|
|
||||||
lib/Model/AdditionalPropertiesClass.php
|
lib/Model/AdditionalPropertiesClass.php
|
||||||
lib/Model/AdditionalPropertiesInteger.php
|
|
||||||
lib/Model/AdditionalPropertiesNumber.php
|
|
||||||
lib/Model/AdditionalPropertiesObject.php
|
|
||||||
lib/Model/AdditionalPropertiesString.php
|
|
||||||
lib/Model/Animal.php
|
lib/Model/Animal.php
|
||||||
lib/Model/ApiResponse.php
|
lib/Model/ApiResponse.php
|
||||||
lib/Model/ArrayOfArrayOfNumberOnly.php
|
lib/Model/ArrayOfArrayOfNumberOnly.php
|
||||||
lib/Model/ArrayOfNumberOnly.php
|
lib/Model/ArrayOfNumberOnly.php
|
||||||
lib/Model/ArrayTest.php
|
lib/Model/ArrayTest.php
|
||||||
lib/Model/BigCat.php
|
|
||||||
lib/Model/BigCatAllOf.php
|
|
||||||
lib/Model/Capitalization.php
|
lib/Model/Capitalization.php
|
||||||
lib/Model/Cat.php
|
lib/Model/Cat.php
|
||||||
lib/Model/CatAllOf.php
|
lib/Model/CatAllOf.php
|
||||||
@ -95,8 +89,17 @@ lib/Model/EnumClass.php
|
|||||||
lib/Model/EnumTest.php
|
lib/Model/EnumTest.php
|
||||||
lib/Model/File.php
|
lib/Model/File.php
|
||||||
lib/Model/FileSchemaTestClass.php
|
lib/Model/FileSchemaTestClass.php
|
||||||
|
lib/Model/Foo.php
|
||||||
lib/Model/FormatTest.php
|
lib/Model/FormatTest.php
|
||||||
lib/Model/HasOnlyReadOnly.php
|
lib/Model/HasOnlyReadOnly.php
|
||||||
|
lib/Model/HealthCheckResult.php
|
||||||
|
lib/Model/InlineObject.php
|
||||||
|
lib/Model/InlineObject1.php
|
||||||
|
lib/Model/InlineObject2.php
|
||||||
|
lib/Model/InlineObject3.php
|
||||||
|
lib/Model/InlineObject4.php
|
||||||
|
lib/Model/InlineObject5.php
|
||||||
|
lib/Model/InlineResponseDefault.php
|
||||||
lib/Model/MapTest.php
|
lib/Model/MapTest.php
|
||||||
lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php
|
lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php
|
||||||
lib/Model/Model200Response.php
|
lib/Model/Model200Response.php
|
||||||
@ -104,17 +107,18 @@ lib/Model/ModelInterface.php
|
|||||||
lib/Model/ModelList.php
|
lib/Model/ModelList.php
|
||||||
lib/Model/ModelReturn.php
|
lib/Model/ModelReturn.php
|
||||||
lib/Model/Name.php
|
lib/Model/Name.php
|
||||||
|
lib/Model/NullableClass.php
|
||||||
lib/Model/NumberOnly.php
|
lib/Model/NumberOnly.php
|
||||||
lib/Model/Order.php
|
lib/Model/Order.php
|
||||||
lib/Model/OuterComposite.php
|
lib/Model/OuterComposite.php
|
||||||
lib/Model/OuterEnum.php
|
lib/Model/OuterEnum.php
|
||||||
|
lib/Model/OuterEnumDefaultValue.php
|
||||||
|
lib/Model/OuterEnumInteger.php
|
||||||
|
lib/Model/OuterEnumIntegerDefaultValue.php
|
||||||
lib/Model/Pet.php
|
lib/Model/Pet.php
|
||||||
lib/Model/ReadOnlyFirst.php
|
lib/Model/ReadOnlyFirst.php
|
||||||
lib/Model/SpecialModelName.php
|
lib/Model/SpecialModelName.php
|
||||||
lib/Model/Tag.php
|
lib/Model/Tag.php
|
||||||
lib/Model/TypeHolderDefault.php
|
|
||||||
lib/Model/TypeHolderExample.php
|
|
||||||
lib/Model/User.php
|
lib/Model/User.php
|
||||||
lib/Model/XmlItem.php
|
|
||||||
lib/ObjectSerializer.php
|
lib/ObjectSerializer.php
|
||||||
phpunit.xml.dist
|
phpunit.xml.dist
|
||||||
|
@ -65,10 +65,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->call123TestSpecialTags($body);
|
$result = $apiInstance->call123TestSpecialTags($client);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -84,7 +84,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
*AnotherFakeApi* | [**call123TestSpecialTags**](docs/Api/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
*AnotherFakeApi* | [**call123TestSpecialTags**](docs/Api/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*FakeApi* | [**createXmlItem**](docs/Api/FakeApi.md#createxmlitem) | **POST** /fake/create_xml_item | creates an XmlItem
|
*DefaultApi* | [**fooGet**](docs/Api/DefaultApi.md#fooget) | **GET** /foo |
|
||||||
|
*FakeApi* | [**fakeHealthGet**](docs/Api/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
||||||
|
*FakeApi* | [**fakeHttpSignatureTest**](docs/Api/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
||||||
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/Api/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/Api/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/Api/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/Api/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
*FakeApi* | [**fakeOuterNumberSerialize**](docs/Api/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
*FakeApi* | [**fakeOuterNumberSerialize**](docs/Api/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
@ -92,7 +94,7 @@ Class | Method | HTTP request | Description
|
|||||||
*FakeApi* | [**testBodyWithFileSchema**](docs/Api/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
*FakeApi* | [**testBodyWithFileSchema**](docs/Api/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
||||||
*FakeApi* | [**testBodyWithQueryParams**](docs/Api/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
*FakeApi* | [**testBodyWithQueryParams**](docs/Api/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
||||||
*FakeApi* | [**testClientModel**](docs/Api/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
*FakeApi* | [**testClientModel**](docs/Api/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||||
*FakeApi* | [**testEndpointParameters**](docs/Api/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
*FakeApi* | [**testEndpointParameters**](docs/Api/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
*FakeApi* | [**testEnumParameters**](docs/Api/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
*FakeApi* | [**testEnumParameters**](docs/Api/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||||
*FakeApi* | [**testGroupParameters**](docs/Api/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
*FakeApi* | [**testGroupParameters**](docs/Api/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||||
*FakeApi* | [**testInlineAdditionalProperties**](docs/Api/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
*FakeApi* | [**testInlineAdditionalProperties**](docs/Api/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||||
@ -124,21 +126,12 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Documentation For Models
|
## Documentation For Models
|
||||||
|
|
||||||
- [AdditionalPropertiesAnyType](docs/Model/AdditionalPropertiesAnyType.md)
|
|
||||||
- [AdditionalPropertiesArray](docs/Model/AdditionalPropertiesArray.md)
|
|
||||||
- [AdditionalPropertiesBoolean](docs/Model/AdditionalPropertiesBoolean.md)
|
|
||||||
- [AdditionalPropertiesClass](docs/Model/AdditionalPropertiesClass.md)
|
- [AdditionalPropertiesClass](docs/Model/AdditionalPropertiesClass.md)
|
||||||
- [AdditionalPropertiesInteger](docs/Model/AdditionalPropertiesInteger.md)
|
|
||||||
- [AdditionalPropertiesNumber](docs/Model/AdditionalPropertiesNumber.md)
|
|
||||||
- [AdditionalPropertiesObject](docs/Model/AdditionalPropertiesObject.md)
|
|
||||||
- [AdditionalPropertiesString](docs/Model/AdditionalPropertiesString.md)
|
|
||||||
- [Animal](docs/Model/Animal.md)
|
- [Animal](docs/Model/Animal.md)
|
||||||
- [ApiResponse](docs/Model/ApiResponse.md)
|
- [ApiResponse](docs/Model/ApiResponse.md)
|
||||||
- [ArrayOfArrayOfNumberOnly](docs/Model/ArrayOfArrayOfNumberOnly.md)
|
- [ArrayOfArrayOfNumberOnly](docs/Model/ArrayOfArrayOfNumberOnly.md)
|
||||||
- [ArrayOfNumberOnly](docs/Model/ArrayOfNumberOnly.md)
|
- [ArrayOfNumberOnly](docs/Model/ArrayOfNumberOnly.md)
|
||||||
- [ArrayTest](docs/Model/ArrayTest.md)
|
- [ArrayTest](docs/Model/ArrayTest.md)
|
||||||
- [BigCat](docs/Model/BigCat.md)
|
|
||||||
- [BigCatAllOf](docs/Model/BigCatAllOf.md)
|
|
||||||
- [Capitalization](docs/Model/Capitalization.md)
|
- [Capitalization](docs/Model/Capitalization.md)
|
||||||
- [Cat](docs/Model/Cat.md)
|
- [Cat](docs/Model/Cat.md)
|
||||||
- [CatAllOf](docs/Model/CatAllOf.md)
|
- [CatAllOf](docs/Model/CatAllOf.md)
|
||||||
@ -152,26 +145,36 @@ Class | Method | HTTP request | Description
|
|||||||
- [EnumTest](docs/Model/EnumTest.md)
|
- [EnumTest](docs/Model/EnumTest.md)
|
||||||
- [File](docs/Model/File.md)
|
- [File](docs/Model/File.md)
|
||||||
- [FileSchemaTestClass](docs/Model/FileSchemaTestClass.md)
|
- [FileSchemaTestClass](docs/Model/FileSchemaTestClass.md)
|
||||||
|
- [Foo](docs/Model/Foo.md)
|
||||||
- [FormatTest](docs/Model/FormatTest.md)
|
- [FormatTest](docs/Model/FormatTest.md)
|
||||||
- [HasOnlyReadOnly](docs/Model/HasOnlyReadOnly.md)
|
- [HasOnlyReadOnly](docs/Model/HasOnlyReadOnly.md)
|
||||||
|
- [HealthCheckResult](docs/Model/HealthCheckResult.md)
|
||||||
|
- [InlineObject](docs/Model/InlineObject.md)
|
||||||
|
- [InlineObject1](docs/Model/InlineObject1.md)
|
||||||
|
- [InlineObject2](docs/Model/InlineObject2.md)
|
||||||
|
- [InlineObject3](docs/Model/InlineObject3.md)
|
||||||
|
- [InlineObject4](docs/Model/InlineObject4.md)
|
||||||
|
- [InlineObject5](docs/Model/InlineObject5.md)
|
||||||
|
- [InlineResponseDefault](docs/Model/InlineResponseDefault.md)
|
||||||
- [MapTest](docs/Model/MapTest.md)
|
- [MapTest](docs/Model/MapTest.md)
|
||||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md)
|
- [MixedPropertiesAndAdditionalPropertiesClass](docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
- [Model200Response](docs/Model/Model200Response.md)
|
- [Model200Response](docs/Model/Model200Response.md)
|
||||||
- [ModelList](docs/Model/ModelList.md)
|
- [ModelList](docs/Model/ModelList.md)
|
||||||
- [ModelReturn](docs/Model/ModelReturn.md)
|
- [ModelReturn](docs/Model/ModelReturn.md)
|
||||||
- [Name](docs/Model/Name.md)
|
- [Name](docs/Model/Name.md)
|
||||||
|
- [NullableClass](docs/Model/NullableClass.md)
|
||||||
- [NumberOnly](docs/Model/NumberOnly.md)
|
- [NumberOnly](docs/Model/NumberOnly.md)
|
||||||
- [Order](docs/Model/Order.md)
|
- [Order](docs/Model/Order.md)
|
||||||
- [OuterComposite](docs/Model/OuterComposite.md)
|
- [OuterComposite](docs/Model/OuterComposite.md)
|
||||||
- [OuterEnum](docs/Model/OuterEnum.md)
|
- [OuterEnum](docs/Model/OuterEnum.md)
|
||||||
|
- [OuterEnumDefaultValue](docs/Model/OuterEnumDefaultValue.md)
|
||||||
|
- [OuterEnumInteger](docs/Model/OuterEnumInteger.md)
|
||||||
|
- [OuterEnumIntegerDefaultValue](docs/Model/OuterEnumIntegerDefaultValue.md)
|
||||||
- [Pet](docs/Model/Pet.md)
|
- [Pet](docs/Model/Pet.md)
|
||||||
- [ReadOnlyFirst](docs/Model/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/Model/ReadOnlyFirst.md)
|
||||||
- [SpecialModelName](docs/Model/SpecialModelName.md)
|
- [SpecialModelName](docs/Model/SpecialModelName.md)
|
||||||
- [Tag](docs/Model/Tag.md)
|
- [Tag](docs/Model/Tag.md)
|
||||||
- [TypeHolderDefault](docs/Model/TypeHolderDefault.md)
|
|
||||||
- [TypeHolderExample](docs/Model/TypeHolderExample.md)
|
|
||||||
- [User](docs/Model/User.md)
|
- [User](docs/Model/User.md)
|
||||||
- [XmlItem](docs/Model/XmlItem.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
@ -198,6 +201,13 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## bearer_test
|
||||||
|
|
||||||
|
|
||||||
|
- **Type**: Bearer authentication (JWT)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## http_basic_test
|
## http_basic_test
|
||||||
|
|
||||||
|
|
||||||
@ -205,6 +215,11 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## http_signature_test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## petstore_auth
|
## petstore_auth
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## call123TestSpecialTags
|
## call123TestSpecialTags
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client call123TestSpecialTags($body)
|
> \OpenAPI\Client\Model\Client call123TestSpecialTags($client)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -28,10 +28,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->call123TestSpecialTags($body);
|
$result = $apiInstance->call123TestSpecialTags($client);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -44,7 +44,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -7,16 +7,20 @@ Method | HTTP request | Description
|
|||||||
[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |
|
[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |
|
||||||
|
|
||||||
|
|
||||||
# **fooGet**
|
|
||||||
|
## fooGet
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\InlineResponseDefault fooGet()
|
> \OpenAPI\Client\Model\InlineResponseDefault fooGet()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
require_once(__DIR__ . '/vendor/autoload.php');
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\DefaultApi(
|
$apiInstance = new OpenAPI\Client\Api\DefaultApi(
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
@ -33,6 +37,7 @@ try {
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
This endpoint does not need any parameter.
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -45,8 +50,10 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: Not defined
|
||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models)
|
||||||
|
[[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@ 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 |
|
||||||
@ -12,7 +13,7 @@ Method | HTTP request | Description
|
|||||||
[**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 +22,11 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## createXmlItem
|
## fakeHealthGet
|
||||||
|
|
||||||
> createXmlItem($xml_item)
|
> \OpenAPI\Client\Model\HealthCheckResult fakeHealthGet()
|
||||||
|
|
||||||
creates an XmlItem
|
Health check endpoint
|
||||||
|
|
||||||
this route creates an XmlItem
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -41,12 +40,67 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$xml_item = new \OpenAPI\Client\Model\XmlItem(); // \OpenAPI\Client\Model\XmlItem | XmlItem Body
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->createXmlItem($xml_item);
|
$result = $apiInstance->fakeHealthGet();
|
||||||
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->createXmlItem: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->fakeHealthGet: ', $e->getMessage(), PHP_EOL;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**\OpenAPI\Client\Model\HealthCheckResult**](../Model/HealthCheckResult.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
|
[[Back to Model list]](../../README.md#documentation-for-models)
|
||||||
|
[[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
## fakeHttpSignatureTest
|
||||||
|
|
||||||
|
> fakeHttpSignatureTest($pet, $query_1, $header_1)
|
||||||
|
|
||||||
|
test http signature authentication
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```php
|
||||||
|
<?php
|
||||||
|
require_once(__DIR__ . '/vendor/autoload.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
||||||
|
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||||
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
|
new GuzzleHttp\Client(),
|
||||||
|
$config
|
||||||
|
);
|
||||||
|
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
||||||
|
$query_1 = 'query_1_example'; // string | query parameter
|
||||||
|
$header_1 = 'header_1_example'; // string | header parameter
|
||||||
|
|
||||||
|
try {
|
||||||
|
$apiInstance->fakeHttpSignatureTest($pet, $query_1, $header_1);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo 'Exception when calling FakeApi->fakeHttpSignatureTest: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
```
|
```
|
||||||
@ -56,7 +110,9 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**xml_item** | [**\OpenAPI\Client\Model\XmlItem**](../Model/XmlItem.md)| XmlItem Body |
|
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
**query_1** | **string**| query parameter | [optional]
|
||||||
|
**header_1** | **string**| header parameter | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -64,11 +120,11 @@ void (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
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -124,7 +180,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -134,7 +190,7 @@ No authorization required
|
|||||||
|
|
||||||
## fakeOuterCompositeSerialize
|
## fakeOuterCompositeSerialize
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($body)
|
> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -152,10 +208,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body
|
$outer_composite = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->fakeOuterCompositeSerialize($body);
|
$result = $apiInstance->fakeOuterCompositeSerialize($outer_composite);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -168,7 +224,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
|
**outer_composite** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -180,7 +236,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -236,7 +292,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -292,7 +348,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: */*
|
- **Accept**: */*
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -302,7 +358,7 @@ No authorization required
|
|||||||
|
|
||||||
## testBodyWithFileSchema
|
## testBodyWithFileSchema
|
||||||
|
|
||||||
> testBodyWithFileSchema($body)
|
> testBodyWithFileSchema($file_schema_test_class)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -320,10 +376,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass |
|
$file_schema_test_class = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->testBodyWithFileSchema($body);
|
$apiInstance->testBodyWithFileSchema($file_schema_test_class);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -335,7 +391,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| |
|
**file_schema_test_class** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -357,7 +413,7 @@ No authorization required
|
|||||||
|
|
||||||
## testBodyWithQueryParams
|
## testBodyWithQueryParams
|
||||||
|
|
||||||
> testBodyWithQueryParams($query, $body)
|
> testBodyWithQueryParams($query, $user)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -374,10 +430,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$query = 'query_example'; // string |
|
$query = 'query_example'; // string |
|
||||||
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User |
|
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->testBodyWithQueryParams($query, $body);
|
$apiInstance->testBodyWithQueryParams($query, $user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -390,7 +446,7 @@ try {
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**query** | **string**| |
|
**query** | **string**| |
|
||||||
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
|
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -412,7 +468,7 @@ No authorization required
|
|||||||
|
|
||||||
## testClientModel
|
## testClientModel
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client testClientModel($body)
|
> \OpenAPI\Client\Model\Client testClientModel($client)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@ -430,10 +486,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->testClientModel($body);
|
$result = $apiInstance->testClientModel($client);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -446,7 +502,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -470,9 +526,9 @@ No authorization required
|
|||||||
|
|
||||||
> testEndpointParameters($number, $double, $pattern_without_delimiter, $byte, $integer, $int32, $int64, $float, $string, $binary, $date, $date_time, $password, $callback)
|
> testEndpointParameters($number, $double, $pattern_without_delimiter, $byte, $integer, $int32, $int64, $float, $string, $binary, $date, $date_time, $password, $callback)
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
@ -638,10 +694,15 @@ Fake endpoint to test group parameters (optional)
|
|||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
require_once(__DIR__ . '/vendor/autoload.php');
|
||||||
|
|
||||||
|
|
||||||
|
// Configure Bearer (JWT) authorization: bearer_test
|
||||||
|
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client(),
|
||||||
|
$config
|
||||||
);
|
);
|
||||||
$associate_array['required_string_group'] = 56; // int | Required String in group parameters
|
$associate_array['required_string_group'] = 56; // int | Required String in group parameters
|
||||||
$associate_array['required_boolean_group'] = True; // bool | Required Boolean in group parameters
|
$associate_array['required_boolean_group'] = True; // bool | Required Boolean in group parameters
|
||||||
@ -678,7 +739,7 @@ void (empty response body)
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
No authorization required
|
[bearer_test](../../README.md#bearer_test)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -692,7 +753,7 @@ No authorization required
|
|||||||
|
|
||||||
## testInlineAdditionalProperties
|
## testInlineAdditionalProperties
|
||||||
|
|
||||||
> testInlineAdditionalProperties($param)
|
> testInlineAdditionalProperties($request_body)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
@ -708,10 +769,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$param = array('key' => 'param_example'); // map[string,string] | request body
|
$request_body = array('key' => 'request_body_example'); // map[string,string] | request body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->testInlineAdditionalProperties($param);
|
$apiInstance->testInlineAdditionalProperties($request_body);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -723,7 +784,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**param** | [**map[string,string]**](../Model/string.md)| request body |
|
**request_body** | [**map[string,string]**](../Model/string.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## testClassname
|
## testClassname
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client testClassname($body)
|
> \OpenAPI\Client\Model\Client testClassname($client)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -35,10 +35,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api(
|
|||||||
new GuzzleHttp\Client(),
|
new GuzzleHttp\Client(),
|
||||||
$config
|
$config
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->testClassname($body);
|
$result = $apiInstance->testClassname($client);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -51,7 +51,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## addPet
|
## addPet
|
||||||
|
|
||||||
> addPet($body)
|
> addPet($pet)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
@ -39,10 +39,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
|
|||||||
new GuzzleHttp\Client(),
|
new GuzzleHttp\Client(),
|
||||||
$config
|
$config
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->addPet($body);
|
$apiInstance->addPet($pet);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
## updatePet
|
## updatePet
|
||||||
|
|
||||||
> updatePet($body)
|
> updatePet($pet)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
@ -342,10 +342,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
|
|||||||
new GuzzleHttp\Client(),
|
new GuzzleHttp\Client(),
|
||||||
$config
|
$config
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->updatePet($body);
|
$apiInstance->updatePet($pet);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -357,7 +357,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ No authorization required
|
|||||||
|
|
||||||
## placeOrder
|
## placeOrder
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Order placeOrder($body)
|
> \OpenAPI\Client\Model\Order placeOrder($order)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
@ -199,10 +199,10 @@ $apiInstance = new OpenAPI\Client\Api\StoreApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet
|
$order = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $apiInstance->placeOrder($body);
|
$result = $apiInstance->placeOrder($order);
|
||||||
print_r($result);
|
print_r($result);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
|
||||||
@ -215,7 +215,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
|
**order** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -227,7 +227,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
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
## createUser
|
## createUser
|
||||||
|
|
||||||
> createUser($body)
|
> createUser($user)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
@ -35,10 +35,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object
|
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->createUser($body);
|
$apiInstance->createUser($user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object |
|
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -72,7 +72,7 @@ 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
|
||||||
|
|
||||||
@ -88,10 +88,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
$user = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->createUsersWithArrayInput($body);
|
$apiInstance->createUsersWithArrayInput($user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -125,7 +125,7 @@ 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
|
||||||
|
|
||||||
@ -141,10 +141,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$body = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
$user = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->createUsersWithListInput($body);
|
$apiInstance->createUsersWithListInput($user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**body** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
@ -392,7 +392,7 @@ No authorization required
|
|||||||
|
|
||||||
## updateUser
|
## updateUser
|
||||||
|
|
||||||
> updateUser($username, $body)
|
> updateUser($username, $user)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
@ -411,10 +411,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
|
|||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$username = 'username_example'; // string | name that need to be deleted
|
$username = 'username_example'; // string | name that need to be deleted
|
||||||
$body = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object
|
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->updateUser($username, $body);
|
$apiInstance->updateUser($username, $user);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
|
echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -427,7 +427,7 @@ try {
|
|||||||
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** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object |
|
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ No authorization required
|
|||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: Not defined
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
||||||
|
@ -4,17 +4,8 @@
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**map_string** | **map[string,string]** | | [optional]
|
**map_property** | **map[string,string]** | | [optional]
|
||||||
**map_number** | **map[string,float]** | | [optional]
|
**map_of_map_property** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
||||||
**map_integer** | **map[string,int]** | | [optional]
|
|
||||||
**map_boolean** | **map[string,bool]** | | [optional]
|
|
||||||
**map_array_integer** | [**map[string,int[]]**](array.md) | | [optional]
|
|
||||||
**map_array_anytype** | [**map[string,object[]]**](array.md) | | [optional]
|
|
||||||
**map_map_string** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
|
||||||
**map_map_anytype** | [**map[string,map[string,object]]**](map.md) | | [optional]
|
|
||||||
**anytype_1** | **object** | | [optional]
|
|
||||||
**anytype_2** | **object** | | [optional]
|
|
||||||
**anytype_3** | **object** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ Name | Type | Description | Notes
|
|||||||
**enum_integer** | **int** | | [optional]
|
**enum_integer** | **int** | | [optional]
|
||||||
**enum_number** | **double** | | [optional]
|
**enum_number** | **double** | | [optional]
|
||||||
**outer_enum** | [**\OpenAPI\Client\Model\OuterEnum**](OuterEnum.md) | | [optional]
|
**outer_enum** | [**\OpenAPI\Client\Model\OuterEnum**](OuterEnum.md) | | [optional]
|
||||||
|
**outer_enum_integer** | [**\OpenAPI\Client\Model\OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
|
||||||
|
**outer_enum_default_value** | [**\OpenAPI\Client\Model\OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
|
||||||
|
**outer_enum_integer_default_value** | [**\OpenAPI\Client\Model\OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# Foo
|
# # Foo
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**bar** | **string** | | [optional] [default to 'bar']
|
**bar** | **string** | | [optional] [default to 'bar']
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ Name | Type | Description | Notes
|
|||||||
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
|
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
|
||||||
**uuid** | **string** | | [optional]
|
**uuid** | **string** | | [optional]
|
||||||
**password** | **string** | |
|
**password** | **string** | |
|
||||||
**big_decimal** | [**BigDecimal**](BigDecimal.md) | | [optional]
|
**pattern_with_digits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||||
|
**pattern_with_digits_and_delimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# InlineObject
|
# # InlineObject
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **string** | Updated name of the pet | [optional]
|
**name** | **string** | Updated name of the pet | [optional]
|
||||||
**status** | **string** | Updated status of the pet | [optional]
|
**status** | **string** | Updated status of the pet | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# InlineObject1
|
# # InlineObject1
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
||||||
**file** | [**\SplFileObject**](\SplFileObject.md) | file to upload | [optional]
|
**file** | [**\SplFileObject**](\SplFileObject.md) | file to upload | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# InlineObject2
|
# # InlineObject2
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**enum_form_string_array** | **string[]** | Form parameter enum test (string array) | [optional]
|
**enum_form_string_array** | **string[]** | Form parameter enum test (string array) | [optional]
|
||||||
**enum_form_string** | **string** | Form parameter enum test (string) | [optional] [default to '-efg']
|
**enum_form_string** | **string** | Form parameter enum test (string) | [optional] [default to '-efg']
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# InlineObject3
|
# # InlineObject3
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**integer** | **int** | None | [optional]
|
**integer** | **int** | None | [optional]
|
||||||
@ -18,6 +19,6 @@ Name | Type | Description | Notes
|
|||||||
**password** | **string** | None | [optional]
|
**password** | **string** | None | [optional]
|
||||||
**callback** | **string** | None | [optional]
|
**callback** | **string** | None | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# InlineObject4
|
# # InlineObject4
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**param** | **string** | field1 |
|
**param** | **string** | field1 |
|
||||||
**param2** | **string** | field2 |
|
**param2** | **string** | field2 |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# InlineObject5
|
# # InlineObject5
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
||||||
**required_file** | [**\SplFileObject**](\SplFileObject.md) | file to upload |
|
**required_file** | [**\SplFileObject**](\SplFileObject.md) | file to upload |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
# InlineResponseDefault
|
# # InlineResponseDefault
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**string** | [**\OpenAPI\Client\Model\Foo**](Foo.md) | | [optional]
|
**string** | [**\OpenAPI\Client\Model\Foo**](Foo.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -120,15 +120,15 @@ class AnotherFakeApi
|
|||||||
*
|
*
|
||||||
* To test special tags
|
* To test special tags
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \OpenAPI\Client\Model\Client
|
* @return \OpenAPI\Client\Model\Client
|
||||||
*/
|
*/
|
||||||
public function call123TestSpecialTags($body)
|
public function call123TestSpecialTags($client)
|
||||||
{
|
{
|
||||||
list($response) = $this->call123TestSpecialTagsWithHttpInfo($body);
|
list($response) = $this->call123TestSpecialTagsWithHttpInfo($client);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,15 +137,15 @@ class AnotherFakeApi
|
|||||||
*
|
*
|
||||||
* To test special tags
|
* To test special tags
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
|
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function call123TestSpecialTagsWithHttpInfo($body)
|
public function call123TestSpecialTagsWithHttpInfo($client)
|
||||||
{
|
{
|
||||||
$request = $this->call123TestSpecialTagsRequest($body);
|
$request = $this->call123TestSpecialTagsRequest($client);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -225,14 +225,14 @@ class AnotherFakeApi
|
|||||||
*
|
*
|
||||||
* To test special tags
|
* To test special tags
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function call123TestSpecialTagsAsync($body)
|
public function call123TestSpecialTagsAsync($client)
|
||||||
{
|
{
|
||||||
return $this->call123TestSpecialTagsAsyncWithHttpInfo($body)
|
return $this->call123TestSpecialTagsAsyncWithHttpInfo($client)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -245,15 +245,15 @@ class AnotherFakeApi
|
|||||||
*
|
*
|
||||||
* To test special tags
|
* To test special tags
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function call123TestSpecialTagsAsyncWithHttpInfo($body)
|
public function call123TestSpecialTagsAsyncWithHttpInfo($client)
|
||||||
{
|
{
|
||||||
$returnType = '\OpenAPI\Client\Model\Client';
|
$returnType = '\OpenAPI\Client\Model\Client';
|
||||||
$request = $this->call123TestSpecialTagsRequest($body);
|
$request = $this->call123TestSpecialTagsRequest($client);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -292,17 +292,17 @@ class AnotherFakeApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'call123TestSpecialTags'
|
* Create request for operation 'call123TestSpecialTags'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function call123TestSpecialTagsRequest($body)
|
protected function call123TestSpecialTagsRequest($client)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($client === null || (is_array($client) && count($client) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling call123TestSpecialTags'
|
'Missing the required parameter $client when calling call123TestSpecialTags'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,8 +318,8 @@ class AnotherFakeApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($client)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -120,15 +120,15 @@ class FakeClassnameTags123Api
|
|||||||
*
|
*
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \OpenAPI\Client\Model\Client
|
* @return \OpenAPI\Client\Model\Client
|
||||||
*/
|
*/
|
||||||
public function testClassname($body)
|
public function testClassname($client)
|
||||||
{
|
{
|
||||||
list($response) = $this->testClassnameWithHttpInfo($body);
|
list($response) = $this->testClassnameWithHttpInfo($client);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,15 +137,15 @@ class FakeClassnameTags123Api
|
|||||||
*
|
*
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
|
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function testClassnameWithHttpInfo($body)
|
public function testClassnameWithHttpInfo($client)
|
||||||
{
|
{
|
||||||
$request = $this->testClassnameRequest($body);
|
$request = $this->testClassnameRequest($client);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -225,14 +225,14 @@ class FakeClassnameTags123Api
|
|||||||
*
|
*
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function testClassnameAsync($body)
|
public function testClassnameAsync($client)
|
||||||
{
|
{
|
||||||
return $this->testClassnameAsyncWithHttpInfo($body)
|
return $this->testClassnameAsyncWithHttpInfo($client)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -245,15 +245,15 @@ class FakeClassnameTags123Api
|
|||||||
*
|
*
|
||||||
* To test class name in snake case
|
* To test class name in snake case
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function testClassnameAsyncWithHttpInfo($body)
|
public function testClassnameAsyncWithHttpInfo($client)
|
||||||
{
|
{
|
||||||
$returnType = '\OpenAPI\Client\Model\Client';
|
$returnType = '\OpenAPI\Client\Model\Client';
|
||||||
$request = $this->testClassnameRequest($body);
|
$request = $this->testClassnameRequest($client);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -292,17 +292,17 @@ class FakeClassnameTags123Api
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'testClassname'
|
* Create request for operation 'testClassname'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Client $body client model (required)
|
* @param \OpenAPI\Client\Model\Client $client client model (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function testClassnameRequest($body)
|
protected function testClassnameRequest($client)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'client' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($client === null || (is_array($client) && count($client) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling testClassname'
|
'Missing the required parameter $client when calling testClassname'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,8 +318,8 @@ class FakeClassnameTags123Api
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($client)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
|
@ -120,15 +120,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function addPet($body)
|
public function addPet($pet)
|
||||||
{
|
{
|
||||||
$this->addPetWithHttpInfo($body);
|
$this->addPetWithHttpInfo($pet);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -136,15 +140,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function addPetWithHttpInfo($body)
|
public function addPetWithHttpInfo($pet)
|
||||||
{
|
{
|
||||||
$request = $this->addPetRequest($body);
|
$request = $this->addPetRequest($pet);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -188,14 +196,18 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function addPetAsync($body)
|
public function addPetAsync($pet)
|
||||||
{
|
{
|
||||||
return $this->addPetAsyncWithHttpInfo($body)
|
return $this->addPetAsyncWithHttpInfo($pet)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -208,15 +220,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function addPetAsyncWithHttpInfo($body)
|
public function addPetAsyncWithHttpInfo($pet)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->addPetRequest($body);
|
$request = $this->addPetRequest($pet);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -244,17 +260,21 @@ class PetApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'addPet'
|
* Create request for operation 'addPet'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function addPetRequest($body)
|
protected function addPetRequest($pet)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'pet' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($pet === null || (is_array($pet) && count($pet) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling addPet'
|
'Missing the required parameter $pet when calling addPet'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,8 +290,8 @@ class PetApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($pet)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $pet;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -330,10 +350,16 @@ class PetApi
|
|||||||
$headers
|
$headers
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$operationHosts = ["http://petstore.swagger.io/v2", "http://path-server-test.petstore.local/v2"];
|
||||||
|
if ($this->hostIndex < 0 || $this->hostIndex >= sizeof($operationHosts)) {
|
||||||
|
throw new \InvalidArgumentException("Invalid index {$this->hostIndex} when selecting the host. Must be less than ".sizeof($operationHosts));
|
||||||
|
}
|
||||||
|
$operationHost = $operationHosts[$this->hostIndex];
|
||||||
|
|
||||||
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
||||||
return new Request(
|
return new Request(
|
||||||
'POST',
|
'POST',
|
||||||
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
|
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
|
||||||
$headers,
|
$headers,
|
||||||
$httpBody
|
$httpBody
|
||||||
);
|
);
|
||||||
@ -1412,15 +1438,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function updatePet($body)
|
public function updatePet($pet)
|
||||||
{
|
{
|
||||||
$this->updatePetWithHttpInfo($body);
|
$this->updatePetWithHttpInfo($pet);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1428,15 +1458,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function updatePetWithHttpInfo($body)
|
public function updatePetWithHttpInfo($pet)
|
||||||
{
|
{
|
||||||
$request = $this->updatePetRequest($body);
|
$request = $this->updatePetRequest($pet);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -1480,14 +1514,18 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function updatePetAsync($body)
|
public function updatePetAsync($pet)
|
||||||
{
|
{
|
||||||
return $this->updatePetAsyncWithHttpInfo($body)
|
return $this->updatePetAsyncWithHttpInfo($pet)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -1500,15 +1538,19 @@ class PetApi
|
|||||||
*
|
*
|
||||||
* Update an existing pet
|
* Update an existing pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function updatePetAsyncWithHttpInfo($body)
|
public function updatePetAsyncWithHttpInfo($pet)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->updatePetRequest($body);
|
$request = $this->updatePetRequest($pet);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -1536,17 +1578,21 @@ class PetApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'updatePet'
|
* Create request for operation 'updatePet'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Pet $body Pet object that needs to be added to the store (required)
|
* This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
|
||||||
|
* URL: http://petstore.swagger.io/v2
|
||||||
|
* URL: http://path-server-test.petstore.local/v2
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function updatePetRequest($body)
|
protected function updatePetRequest($pet)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'pet' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($pet === null || (is_array($pet) && count($pet) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling updatePet'
|
'Missing the required parameter $pet when calling updatePet'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1562,8 +1608,8 @@ class PetApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($pet)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $pet;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -1622,10 +1668,16 @@ class PetApi
|
|||||||
$headers
|
$headers
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$operationHosts = ["http://petstore.swagger.io/v2", "http://path-server-test.petstore.local/v2"];
|
||||||
|
if ($this->hostIndex < 0 || $this->hostIndex >= sizeof($operationHosts)) {
|
||||||
|
throw new \InvalidArgumentException("Invalid index {$this->hostIndex} when selecting the host. Must be less than ".sizeof($operationHosts));
|
||||||
|
}
|
||||||
|
$operationHost = $operationHosts[$this->hostIndex];
|
||||||
|
|
||||||
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
$query = \GuzzleHttp\Psr7\build_query($queryParams);
|
||||||
return new Request(
|
return new Request(
|
||||||
'PUT',
|
'PUT',
|
||||||
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
|
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
|
||||||
$headers,
|
$headers,
|
||||||
$httpBody
|
$httpBody
|
||||||
);
|
);
|
||||||
|
@ -884,15 +884,15 @@ class StoreApi
|
|||||||
*
|
*
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required)
|
* @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \OpenAPI\Client\Model\Order
|
* @return \OpenAPI\Client\Model\Order
|
||||||
*/
|
*/
|
||||||
public function placeOrder($body)
|
public function placeOrder($order)
|
||||||
{
|
{
|
||||||
list($response) = $this->placeOrderWithHttpInfo($body);
|
list($response) = $this->placeOrderWithHttpInfo($order);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -901,15 +901,15 @@ class StoreApi
|
|||||||
*
|
*
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required)
|
* @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
|
* @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function placeOrderWithHttpInfo($body)
|
public function placeOrderWithHttpInfo($order)
|
||||||
{
|
{
|
||||||
$request = $this->placeOrderRequest($body);
|
$request = $this->placeOrderRequest($order);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -989,14 +989,14 @@ class StoreApi
|
|||||||
*
|
*
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required)
|
* @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function placeOrderAsync($body)
|
public function placeOrderAsync($order)
|
||||||
{
|
{
|
||||||
return $this->placeOrderAsyncWithHttpInfo($body)
|
return $this->placeOrderAsyncWithHttpInfo($order)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -1009,15 +1009,15 @@ class StoreApi
|
|||||||
*
|
*
|
||||||
* Place an order for a pet
|
* Place an order for a pet
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required)
|
* @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function placeOrderAsyncWithHttpInfo($body)
|
public function placeOrderAsyncWithHttpInfo($order)
|
||||||
{
|
{
|
||||||
$returnType = '\OpenAPI\Client\Model\Order';
|
$returnType = '\OpenAPI\Client\Model\Order';
|
||||||
$request = $this->placeOrderRequest($body);
|
$request = $this->placeOrderRequest($order);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -1056,17 +1056,17 @@ class StoreApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'placeOrder'
|
* Create request for operation 'placeOrder'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\Order $body order placed for purchasing the pet (required)
|
* @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function placeOrderRequest($body)
|
protected function placeOrderRequest($order)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'order' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($order === null || (is_array($order) && count($order) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling placeOrder'
|
'Missing the required parameter $order when calling placeOrder'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1082,8 +1082,8 @@ class StoreApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($order)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $order;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -1093,7 +1093,7 @@ class StoreApi
|
|||||||
} else {
|
} else {
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
['application/xml', 'application/json'],
|
['application/xml', 'application/json'],
|
||||||
[]
|
['application/json']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,15 +120,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Create user
|
* Create user
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User $body Created user object (required)
|
* @param \OpenAPI\Client\Model\User $user Created user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function createUser($body)
|
public function createUser($user)
|
||||||
{
|
{
|
||||||
$this->createUserWithHttpInfo($body);
|
$this->createUserWithHttpInfo($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -136,15 +136,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Create user
|
* Create user
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User $body Created user object (required)
|
* @param \OpenAPI\Client\Model\User $user Created user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function createUserWithHttpInfo($body)
|
public function createUserWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$request = $this->createUserRequest($body);
|
$request = $this->createUserRequest($user);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -188,14 +188,14 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Create user
|
* Create user
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User $body Created user object (required)
|
* @param \OpenAPI\Client\Model\User $user Created user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUserAsync($body)
|
public function createUserAsync($user)
|
||||||
{
|
{
|
||||||
return $this->createUserAsyncWithHttpInfo($body)
|
return $this->createUserAsyncWithHttpInfo($user)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -208,15 +208,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Create user
|
* Create user
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User $body Created user object (required)
|
* @param \OpenAPI\Client\Model\User $user Created user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUserAsyncWithHttpInfo($body)
|
public function createUserAsyncWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->createUserRequest($body);
|
$request = $this->createUserRequest($user);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -244,17 +244,17 @@ class UserApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'createUser'
|
* Create request for operation 'createUser'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User $body Created user object (required)
|
* @param \OpenAPI\Client\Model\User $user Created user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function createUserRequest($body)
|
protected function createUserRequest($user)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($user === null || (is_array($user) && count($user) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling createUser'
|
'Missing the required parameter $user when calling createUser'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,8 +270,8 @@ class UserApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($user)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -281,7 +281,7 @@ class UserApi
|
|||||||
} else {
|
} else {
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
[],
|
[],
|
||||||
[]
|
['application/json']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -340,15 +340,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function createUsersWithArrayInput($body)
|
public function createUsersWithArrayInput($user)
|
||||||
{
|
{
|
||||||
$this->createUsersWithArrayInputWithHttpInfo($body);
|
$this->createUsersWithArrayInputWithHttpInfo($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -356,15 +356,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function createUsersWithArrayInputWithHttpInfo($body)
|
public function createUsersWithArrayInputWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$request = $this->createUsersWithArrayInputRequest($body);
|
$request = $this->createUsersWithArrayInputRequest($user);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -408,14 +408,14 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUsersWithArrayInputAsync($body)
|
public function createUsersWithArrayInputAsync($user)
|
||||||
{
|
{
|
||||||
return $this->createUsersWithArrayInputAsyncWithHttpInfo($body)
|
return $this->createUsersWithArrayInputAsyncWithHttpInfo($user)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -428,15 +428,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUsersWithArrayInputAsyncWithHttpInfo($body)
|
public function createUsersWithArrayInputAsyncWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->createUsersWithArrayInputRequest($body);
|
$request = $this->createUsersWithArrayInputRequest($user);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -464,17 +464,17 @@ class UserApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'createUsersWithArrayInput'
|
* Create request for operation 'createUsersWithArrayInput'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function createUsersWithArrayInputRequest($body)
|
protected function createUsersWithArrayInputRequest($user)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($user === null || (is_array($user) && count($user) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling createUsersWithArrayInput'
|
'Missing the required parameter $user when calling createUsersWithArrayInput'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,8 +490,8 @@ class UserApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($user)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -501,7 +501,7 @@ class UserApi
|
|||||||
} else {
|
} else {
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
[],
|
[],
|
||||||
[]
|
['application/json']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -560,15 +560,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function createUsersWithListInput($body)
|
public function createUsersWithListInput($user)
|
||||||
{
|
{
|
||||||
$this->createUsersWithListInputWithHttpInfo($body);
|
$this->createUsersWithListInputWithHttpInfo($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -576,15 +576,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function createUsersWithListInputWithHttpInfo($body)
|
public function createUsersWithListInputWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$request = $this->createUsersWithListInputRequest($body);
|
$request = $this->createUsersWithListInputRequest($user);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -628,14 +628,14 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUsersWithListInputAsync($body)
|
public function createUsersWithListInputAsync($user)
|
||||||
{
|
{
|
||||||
return $this->createUsersWithListInputAsyncWithHttpInfo($body)
|
return $this->createUsersWithListInputAsyncWithHttpInfo($user)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -648,15 +648,15 @@ class UserApi
|
|||||||
*
|
*
|
||||||
* Creates list of users with given input array
|
* Creates list of users with given input array
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function createUsersWithListInputAsyncWithHttpInfo($body)
|
public function createUsersWithListInputAsyncWithHttpInfo($user)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->createUsersWithListInputRequest($body);
|
$request = $this->createUsersWithListInputRequest($user);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -684,17 +684,17 @@ class UserApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'createUsersWithListInput'
|
* Create request for operation 'createUsersWithListInput'
|
||||||
*
|
*
|
||||||
* @param \OpenAPI\Client\Model\User[] $body List of user object (required)
|
* @param \OpenAPI\Client\Model\User[] $user List of user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function createUsersWithListInputRequest($body)
|
protected function createUsersWithListInputRequest($user)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'body' is set
|
// verify the required parameter 'user' is set
|
||||||
if ($body === null || (is_array($body) && count($body) === 0)) {
|
if ($user === null || (is_array($user) && count($user) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling createUsersWithListInput'
|
'Missing the required parameter $user when calling createUsersWithListInput'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -710,8 +710,8 @@ class UserApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($user)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -721,7 +721,7 @@ class UserApi
|
|||||||
} else {
|
} else {
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
[],
|
[],
|
||||||
[]
|
['application/json']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1483,18 +1483,26 @@ class UserApi
|
|||||||
$multipart = false;
|
$multipart = false;
|
||||||
|
|
||||||
// query params
|
// query params
|
||||||
if (is_array($username)) {
|
|
||||||
$username = ObjectSerializer::serializeCollection($username, '', true);
|
|
||||||
}
|
|
||||||
if ($username !== null) {
|
if ($username !== null) {
|
||||||
$queryParams['username'] = $username;
|
if('form' === 'form' && is_array($username)) {
|
||||||
|
foreach($username as $key => $value) {
|
||||||
|
$queryParams[$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$queryParams['username'] = $username;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// query params
|
// query params
|
||||||
if (is_array($password)) {
|
|
||||||
$password = ObjectSerializer::serializeCollection($password, '', true);
|
|
||||||
}
|
|
||||||
if ($password !== null) {
|
if ($password !== null) {
|
||||||
$queryParams['password'] = $password;
|
if('form' === 'form' && is_array($password)) {
|
||||||
|
foreach($password as $key => $value) {
|
||||||
|
$queryParams[$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$queryParams['password'] = $password;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1775,15 +1783,15 @@ class UserApi
|
|||||||
* Updated user
|
* Updated user
|
||||||
*
|
*
|
||||||
* @param string $username name that need to be deleted (required)
|
* @param string $username name that need to be deleted (required)
|
||||||
* @param \OpenAPI\Client\Model\User $body Updated user object (required)
|
* @param \OpenAPI\Client\Model\User $user Updated user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function updateUser($username, $body)
|
public function updateUser($username, $user)
|
||||||
{
|
{
|
||||||
$this->updateUserWithHttpInfo($username, $body);
|
$this->updateUserWithHttpInfo($username, $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1792,15 +1800,15 @@ class UserApi
|
|||||||
* Updated user
|
* Updated user
|
||||||
*
|
*
|
||||||
* @param string $username name that need to be deleted (required)
|
* @param string $username name that need to be deleted (required)
|
||||||
* @param \OpenAPI\Client\Model\User $body Updated user object (required)
|
* @param \OpenAPI\Client\Model\User $user Updated user object (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function updateUserWithHttpInfo($username, $body)
|
public function updateUserWithHttpInfo($username, $user)
|
||||||
{
|
{
|
||||||
$request = $this->updateUserRequest($username, $body);
|
$request = $this->updateUserRequest($username, $user);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$options = $this->createHttpClientOption();
|
$options = $this->createHttpClientOption();
|
||||||
@ -1845,14 +1853,14 @@ class UserApi
|
|||||||
* Updated user
|
* Updated user
|
||||||
*
|
*
|
||||||
* @param string $username name that need to be deleted (required)
|
* @param string $username name that need to be deleted (required)
|
||||||
* @param \OpenAPI\Client\Model\User $body Updated user object (required)
|
* @param \OpenAPI\Client\Model\User $user Updated user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function updateUserAsync($username, $body)
|
public function updateUserAsync($username, $user)
|
||||||
{
|
{
|
||||||
return $this->updateUserAsyncWithHttpInfo($username, $body)
|
return $this->updateUserAsyncWithHttpInfo($username, $user)
|
||||||
->then(
|
->then(
|
||||||
function ($response) {
|
function ($response) {
|
||||||
return $response[0];
|
return $response[0];
|
||||||
@ -1866,15 +1874,15 @@ class UserApi
|
|||||||
* Updated user
|
* Updated user
|
||||||
*
|
*
|
||||||
* @param string $username name that need to be deleted (required)
|
* @param string $username name that need to be deleted (required)
|
||||||
* @param \OpenAPI\Client\Model\User $body Updated user object (required)
|
* @param \OpenAPI\Client\Model\User $user Updated user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function updateUserAsyncWithHttpInfo($username, $body)
|
public function updateUserAsyncWithHttpInfo($username, $user)
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->updateUserRequest($username, $body);
|
$request = $this->updateUserRequest($username, $user);
|
||||||
|
|
||||||
return $this->client
|
return $this->client
|
||||||
->sendAsync($request, $this->createHttpClientOption())
|
->sendAsync($request, $this->createHttpClientOption())
|
||||||
@ -1903,12 +1911,12 @@ class UserApi
|
|||||||
* Create request for operation 'updateUser'
|
* Create request for operation 'updateUser'
|
||||||
*
|
*
|
||||||
* @param string $username name that need to be deleted (required)
|
* @param string $username name that need to be deleted (required)
|
||||||
* @param \OpenAPI\Client\Model\User $body Updated user object (required)
|
* @param \OpenAPI\Client\Model\User $user Updated user object (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function updateUserRequest($username, $body)
|
protected function updateUserRequest($username, $user)
|
||||||
{
|
{
|
||||||
// verify the required parameter 'username' is set
|
// verify the required parameter 'username' is set
|
||||||
if ($username === null || (is_array($username) && count($username) === 0)) {
|
if ($username === null || (is_array($username) && count($username) === 0)) {
|
||||||
@ -1916,10 +1924,10 @@ class UserApi
|
|||||||
'Missing the required parameter $username when calling updateUser'
|
'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 || (is_array($body) && count($body) === 0)) {
|
if ($user === null || (is_array($user) && count($user) === 0)) {
|
||||||
throw new \InvalidArgumentException(
|
throw new \InvalidArgumentException(
|
||||||
'Missing the required parameter $body when calling updateUser'
|
'Missing the required parameter $user when calling updateUser'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1943,8 +1951,8 @@ class UserApi
|
|||||||
|
|
||||||
// body params
|
// body params
|
||||||
$_tempBody = null;
|
$_tempBody = null;
|
||||||
if (isset($body)) {
|
if (isset($user)) {
|
||||||
$_tempBody = $body;
|
$_tempBody = $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($multipart) {
|
if ($multipart) {
|
||||||
@ -1954,7 +1962,7 @@ class UserApi
|
|||||||
} else {
|
} else {
|
||||||
$headers = $this->headerSelector->selectHeaders(
|
$headers = $this->headerSelector->selectHeaders(
|
||||||
[],
|
[],
|
||||||
[]
|
['application/json']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,8 +436,41 @@ class Configuration
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
"url" => "http://petstore.swagger.io:80/v2",
|
"url" => "http://{server}.swagger.io:{port}/v2",
|
||||||
"description" => "No description provided",
|
"description" => "petstore server",
|
||||||
|
"variables" => [
|
||||||
|
"server" => [
|
||||||
|
"description" => "No description provided",
|
||||||
|
"default_value" => "petstore",
|
||||||
|
"enum_values" => [
|
||||||
|
"petstore",
|
||||||
|
"qa-petstore",
|
||||||
|
"dev-petstore"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"port" => [
|
||||||
|
"description" => "No description provided",
|
||||||
|
"default_value" => "80",
|
||||||
|
"enum_values" => [
|
||||||
|
"80",
|
||||||
|
"8080"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"url" => "https://localhost:8080/{version}",
|
||||||
|
"description" => "The local server",
|
||||||
|
"variables" => [
|
||||||
|
"version" => [
|
||||||
|
"description" => "No description provided",
|
||||||
|
"default_value" => "v2",
|
||||||
|
"enum_values" => [
|
||||||
|
"v1",
|
||||||
|
"v2"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -57,17 +57,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected static $openAPITypes = [
|
protected static $openAPITypes = [
|
||||||
'map_string' => 'map[string,string]',
|
'map_property' => 'map[string,string]',
|
||||||
'map_number' => 'map[string,float]',
|
'map_of_map_property' => 'map[string,map[string,string]]'
|
||||||
'map_integer' => 'map[string,int]',
|
|
||||||
'map_boolean' => 'map[string,bool]',
|
|
||||||
'map_array_integer' => 'map[string,int[]]',
|
|
||||||
'map_array_anytype' => 'map[string,object[]]',
|
|
||||||
'map_map_string' => 'map[string,map[string,string]]',
|
|
||||||
'map_map_anytype' => 'map[string,map[string,object]]',
|
|
||||||
'anytype_1' => 'object',
|
|
||||||
'anytype_2' => 'object',
|
|
||||||
'anytype_3' => 'object'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,17 +67,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected static $openAPIFormats = [
|
protected static $openAPIFormats = [
|
||||||
'map_string' => null,
|
'map_property' => null,
|
||||||
'map_number' => null,
|
'map_of_map_property' => null
|
||||||
'map_integer' => null,
|
|
||||||
'map_boolean' => null,
|
|
||||||
'map_array_integer' => null,
|
|
||||||
'map_array_anytype' => null,
|
|
||||||
'map_map_string' => null,
|
|
||||||
'map_map_anytype' => null,
|
|
||||||
'anytype_1' => null,
|
|
||||||
'anytype_2' => null,
|
|
||||||
'anytype_3' => null
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -116,17 +98,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected static $attributeMap = [
|
protected static $attributeMap = [
|
||||||
'map_string' => 'map_string',
|
'map_property' => 'map_property',
|
||||||
'map_number' => 'map_number',
|
'map_of_map_property' => 'map_of_map_property'
|
||||||
'map_integer' => 'map_integer',
|
|
||||||
'map_boolean' => 'map_boolean',
|
|
||||||
'map_array_integer' => 'map_array_integer',
|
|
||||||
'map_array_anytype' => 'map_array_anytype',
|
|
||||||
'map_map_string' => 'map_map_string',
|
|
||||||
'map_map_anytype' => 'map_map_anytype',
|
|
||||||
'anytype_1' => 'anytype_1',
|
|
||||||
'anytype_2' => 'anytype_2',
|
|
||||||
'anytype_3' => 'anytype_3'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,17 +108,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected static $setters = [
|
protected static $setters = [
|
||||||
'map_string' => 'setMapString',
|
'map_property' => 'setMapProperty',
|
||||||
'map_number' => 'setMapNumber',
|
'map_of_map_property' => 'setMapOfMapProperty'
|
||||||
'map_integer' => 'setMapInteger',
|
|
||||||
'map_boolean' => 'setMapBoolean',
|
|
||||||
'map_array_integer' => 'setMapArrayInteger',
|
|
||||||
'map_array_anytype' => 'setMapArrayAnytype',
|
|
||||||
'map_map_string' => 'setMapMapString',
|
|
||||||
'map_map_anytype' => 'setMapMapAnytype',
|
|
||||||
'anytype_1' => 'setAnytype1',
|
|
||||||
'anytype_2' => 'setAnytype2',
|
|
||||||
'anytype_3' => 'setAnytype3'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -154,17 +118,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
* @var string[]
|
* @var string[]
|
||||||
*/
|
*/
|
||||||
protected static $getters = [
|
protected static $getters = [
|
||||||
'map_string' => 'getMapString',
|
'map_property' => 'getMapProperty',
|
||||||
'map_number' => 'getMapNumber',
|
'map_of_map_property' => 'getMapOfMapProperty'
|
||||||
'map_integer' => 'getMapInteger',
|
|
||||||
'map_boolean' => 'getMapBoolean',
|
|
||||||
'map_array_integer' => 'getMapArrayInteger',
|
|
||||||
'map_array_anytype' => 'getMapArrayAnytype',
|
|
||||||
'map_map_string' => 'getMapMapString',
|
|
||||||
'map_map_anytype' => 'getMapMapAnytype',
|
|
||||||
'anytype_1' => 'getAnytype1',
|
|
||||||
'anytype_2' => 'getAnytype2',
|
|
||||||
'anytype_3' => 'getAnytype3'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -227,17 +182,8 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
$this->container['map_string'] = isset($data['map_string']) ? $data['map_string'] : null;
|
$this->container['map_property'] = isset($data['map_property']) ? $data['map_property'] : null;
|
||||||
$this->container['map_number'] = isset($data['map_number']) ? $data['map_number'] : null;
|
$this->container['map_of_map_property'] = isset($data['map_of_map_property']) ? $data['map_of_map_property'] : null;
|
||||||
$this->container['map_integer'] = isset($data['map_integer']) ? $data['map_integer'] : null;
|
|
||||||
$this->container['map_boolean'] = isset($data['map_boolean']) ? $data['map_boolean'] : null;
|
|
||||||
$this->container['map_array_integer'] = isset($data['map_array_integer']) ? $data['map_array_integer'] : null;
|
|
||||||
$this->container['map_array_anytype'] = isset($data['map_array_anytype']) ? $data['map_array_anytype'] : null;
|
|
||||||
$this->container['map_map_string'] = isset($data['map_map_string']) ? $data['map_map_string'] : null;
|
|
||||||
$this->container['map_map_anytype'] = isset($data['map_map_anytype']) ? $data['map_map_anytype'] : null;
|
|
||||||
$this->container['anytype_1'] = isset($data['anytype_1']) ? $data['anytype_1'] : null;
|
|
||||||
$this->container['anytype_2'] = isset($data['anytype_2']) ? $data['anytype_2'] : null;
|
|
||||||
$this->container['anytype_3'] = isset($data['anytype_3']) ? $data['anytype_3'] : null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -265,265 +211,49 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets map_string
|
* Gets map_property
|
||||||
*
|
*
|
||||||
* @return map[string,string]|null
|
* @return map[string,string]|null
|
||||||
*/
|
*/
|
||||||
public function getMapString()
|
public function getMapProperty()
|
||||||
{
|
{
|
||||||
return $this->container['map_string'];
|
return $this->container['map_property'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets map_string
|
* Sets map_property
|
||||||
*
|
*
|
||||||
* @param map[string,string]|null $map_string map_string
|
* @param map[string,string]|null $map_property map_property
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setMapString($map_string)
|
public function setMapProperty($map_property)
|
||||||
{
|
{
|
||||||
$this->container['map_string'] = $map_string;
|
$this->container['map_property'] = $map_property;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets map_number
|
* Gets map_of_map_property
|
||||||
*
|
|
||||||
* @return map[string,float]|null
|
|
||||||
*/
|
|
||||||
public function getMapNumber()
|
|
||||||
{
|
|
||||||
return $this->container['map_number'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_number
|
|
||||||
*
|
|
||||||
* @param map[string,float]|null $map_number map_number
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapNumber($map_number)
|
|
||||||
{
|
|
||||||
$this->container['map_number'] = $map_number;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_integer
|
|
||||||
*
|
|
||||||
* @return map[string,int]|null
|
|
||||||
*/
|
|
||||||
public function getMapInteger()
|
|
||||||
{
|
|
||||||
return $this->container['map_integer'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_integer
|
|
||||||
*
|
|
||||||
* @param map[string,int]|null $map_integer map_integer
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapInteger($map_integer)
|
|
||||||
{
|
|
||||||
$this->container['map_integer'] = $map_integer;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_boolean
|
|
||||||
*
|
|
||||||
* @return map[string,bool]|null
|
|
||||||
*/
|
|
||||||
public function getMapBoolean()
|
|
||||||
{
|
|
||||||
return $this->container['map_boolean'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_boolean
|
|
||||||
*
|
|
||||||
* @param map[string,bool]|null $map_boolean map_boolean
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapBoolean($map_boolean)
|
|
||||||
{
|
|
||||||
$this->container['map_boolean'] = $map_boolean;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_array_integer
|
|
||||||
*
|
|
||||||
* @return map[string,int[]]|null
|
|
||||||
*/
|
|
||||||
public function getMapArrayInteger()
|
|
||||||
{
|
|
||||||
return $this->container['map_array_integer'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_array_integer
|
|
||||||
*
|
|
||||||
* @param map[string,int[]]|null $map_array_integer map_array_integer
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapArrayInteger($map_array_integer)
|
|
||||||
{
|
|
||||||
$this->container['map_array_integer'] = $map_array_integer;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_array_anytype
|
|
||||||
*
|
|
||||||
* @return map[string,object[]]|null
|
|
||||||
*/
|
|
||||||
public function getMapArrayAnytype()
|
|
||||||
{
|
|
||||||
return $this->container['map_array_anytype'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_array_anytype
|
|
||||||
*
|
|
||||||
* @param map[string,object[]]|null $map_array_anytype map_array_anytype
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapArrayAnytype($map_array_anytype)
|
|
||||||
{
|
|
||||||
$this->container['map_array_anytype'] = $map_array_anytype;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_map_string
|
|
||||||
*
|
*
|
||||||
* @return map[string,map[string,string]]|null
|
* @return map[string,map[string,string]]|null
|
||||||
*/
|
*/
|
||||||
public function getMapMapString()
|
public function getMapOfMapProperty()
|
||||||
{
|
{
|
||||||
return $this->container['map_map_string'];
|
return $this->container['map_of_map_property'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets map_map_string
|
* Sets map_of_map_property
|
||||||
*
|
*
|
||||||
* @param map[string,map[string,string]]|null $map_map_string map_map_string
|
* @param map[string,map[string,string]]|null $map_of_map_property map_of_map_property
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setMapMapString($map_map_string)
|
public function setMapOfMapProperty($map_of_map_property)
|
||||||
{
|
{
|
||||||
$this->container['map_map_string'] = $map_map_string;
|
$this->container['map_of_map_property'] = $map_of_map_property;
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets map_map_anytype
|
|
||||||
*
|
|
||||||
* @return map[string,map[string,object]]|null
|
|
||||||
*/
|
|
||||||
public function getMapMapAnytype()
|
|
||||||
{
|
|
||||||
return $this->container['map_map_anytype'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets map_map_anytype
|
|
||||||
*
|
|
||||||
* @param map[string,map[string,object]]|null $map_map_anytype map_map_anytype
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setMapMapAnytype($map_map_anytype)
|
|
||||||
{
|
|
||||||
$this->container['map_map_anytype'] = $map_map_anytype;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets anytype_1
|
|
||||||
*
|
|
||||||
* @return object|null
|
|
||||||
*/
|
|
||||||
public function getAnytype1()
|
|
||||||
{
|
|
||||||
return $this->container['anytype_1'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets anytype_1
|
|
||||||
*
|
|
||||||
* @param object|null $anytype_1 anytype_1
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setAnytype1($anytype_1)
|
|
||||||
{
|
|
||||||
$this->container['anytype_1'] = $anytype_1;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets anytype_2
|
|
||||||
*
|
|
||||||
* @return object|null
|
|
||||||
*/
|
|
||||||
public function getAnytype2()
|
|
||||||
{
|
|
||||||
return $this->container['anytype_2'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets anytype_2
|
|
||||||
*
|
|
||||||
* @param object|null $anytype_2 anytype_2
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setAnytype2($anytype_2)
|
|
||||||
{
|
|
||||||
$this->container['anytype_2'] = $anytype_2;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets anytype_3
|
|
||||||
*
|
|
||||||
* @return object|null
|
|
||||||
*/
|
|
||||||
public function getAnytype3()
|
|
||||||
{
|
|
||||||
return $this->container['anytype_3'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets anytype_3
|
|
||||||
*
|
|
||||||
* @param object|null $anytype_3 anytype_3
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setAnytype3($anytype_3)
|
|
||||||
{
|
|
||||||
$this->container['anytype_3'] = $anytype_3;
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,10 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
'enum_string_required' => 'string',
|
'enum_string_required' => 'string',
|
||||||
'enum_integer' => 'int',
|
'enum_integer' => 'int',
|
||||||
'enum_number' => 'double',
|
'enum_number' => 'double',
|
||||||
'outer_enum' => '\OpenAPI\Client\Model\OuterEnum'
|
'outer_enum' => '\OpenAPI\Client\Model\OuterEnum',
|
||||||
|
'outer_enum_integer' => '\OpenAPI\Client\Model\OuterEnumInteger',
|
||||||
|
'outer_enum_default_value' => '\OpenAPI\Client\Model\OuterEnumDefaultValue',
|
||||||
|
'outer_enum_integer_default_value' => '\OpenAPI\Client\Model\OuterEnumIntegerDefaultValue'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -74,7 +77,10 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
'enum_string_required' => null,
|
'enum_string_required' => null,
|
||||||
'enum_integer' => 'int32',
|
'enum_integer' => 'int32',
|
||||||
'enum_number' => 'double',
|
'enum_number' => 'double',
|
||||||
'outer_enum' => null
|
'outer_enum' => null,
|
||||||
|
'outer_enum_integer' => null,
|
||||||
|
'outer_enum_default_value' => null,
|
||||||
|
'outer_enum_integer_default_value' => null
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -108,7 +114,10 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
'enum_string_required' => 'enum_string_required',
|
'enum_string_required' => 'enum_string_required',
|
||||||
'enum_integer' => 'enum_integer',
|
'enum_integer' => 'enum_integer',
|
||||||
'enum_number' => 'enum_number',
|
'enum_number' => 'enum_number',
|
||||||
'outer_enum' => 'outerEnum'
|
'outer_enum' => 'outerEnum',
|
||||||
|
'outer_enum_integer' => 'outerEnumInteger',
|
||||||
|
'outer_enum_default_value' => 'outerEnumDefaultValue',
|
||||||
|
'outer_enum_integer_default_value' => 'outerEnumIntegerDefaultValue'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -121,7 +130,10 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
'enum_string_required' => 'setEnumStringRequired',
|
'enum_string_required' => 'setEnumStringRequired',
|
||||||
'enum_integer' => 'setEnumInteger',
|
'enum_integer' => 'setEnumInteger',
|
||||||
'enum_number' => 'setEnumNumber',
|
'enum_number' => 'setEnumNumber',
|
||||||
'outer_enum' => 'setOuterEnum'
|
'outer_enum' => 'setOuterEnum',
|
||||||
|
'outer_enum_integer' => 'setOuterEnumInteger',
|
||||||
|
'outer_enum_default_value' => 'setOuterEnumDefaultValue',
|
||||||
|
'outer_enum_integer_default_value' => 'setOuterEnumIntegerDefaultValue'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -134,7 +146,10 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
'enum_string_required' => 'getEnumStringRequired',
|
'enum_string_required' => 'getEnumStringRequired',
|
||||||
'enum_integer' => 'getEnumInteger',
|
'enum_integer' => 'getEnumInteger',
|
||||||
'enum_number' => 'getEnumNumber',
|
'enum_number' => 'getEnumNumber',
|
||||||
'outer_enum' => 'getOuterEnum'
|
'outer_enum' => 'getOuterEnum',
|
||||||
|
'outer_enum_integer' => 'getOuterEnumInteger',
|
||||||
|
'outer_enum_default_value' => 'getOuterEnumDefaultValue',
|
||||||
|
'outer_enum_integer_default_value' => 'getOuterEnumIntegerDefaultValue'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -266,6 +281,9 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
$this->container['enum_integer'] = isset($data['enum_integer']) ? $data['enum_integer'] : null;
|
$this->container['enum_integer'] = isset($data['enum_integer']) ? $data['enum_integer'] : null;
|
||||||
$this->container['enum_number'] = isset($data['enum_number']) ? $data['enum_number'] : null;
|
$this->container['enum_number'] = isset($data['enum_number']) ? $data['enum_number'] : null;
|
||||||
$this->container['outer_enum'] = isset($data['outer_enum']) ? $data['outer_enum'] : null;
|
$this->container['outer_enum'] = isset($data['outer_enum']) ? $data['outer_enum'] : null;
|
||||||
|
$this->container['outer_enum_integer'] = isset($data['outer_enum_integer']) ? $data['outer_enum_integer'] : null;
|
||||||
|
$this->container['outer_enum_default_value'] = isset($data['outer_enum_default_value']) ? $data['outer_enum_default_value'] : null;
|
||||||
|
$this->container['outer_enum_integer_default_value'] = isset($data['outer_enum_integer_default_value']) ? $data['outer_enum_integer_default_value'] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -482,6 +500,78 @@ class EnumTest implements ModelInterface, ArrayAccess
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets outer_enum_integer
|
||||||
|
*
|
||||||
|
* @return \OpenAPI\Client\Model\OuterEnumInteger|null
|
||||||
|
*/
|
||||||
|
public function getOuterEnumInteger()
|
||||||
|
{
|
||||||
|
return $this->container['outer_enum_integer'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets outer_enum_integer
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\OuterEnumInteger|null $outer_enum_integer outer_enum_integer
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setOuterEnumInteger($outer_enum_integer)
|
||||||
|
{
|
||||||
|
$this->container['outer_enum_integer'] = $outer_enum_integer;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets outer_enum_default_value
|
||||||
|
*
|
||||||
|
* @return \OpenAPI\Client\Model\OuterEnumDefaultValue|null
|
||||||
|
*/
|
||||||
|
public function getOuterEnumDefaultValue()
|
||||||
|
{
|
||||||
|
return $this->container['outer_enum_default_value'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets outer_enum_default_value
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\OuterEnumDefaultValue|null $outer_enum_default_value outer_enum_default_value
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setOuterEnumDefaultValue($outer_enum_default_value)
|
||||||
|
{
|
||||||
|
$this->container['outer_enum_default_value'] = $outer_enum_default_value;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets outer_enum_integer_default_value
|
||||||
|
*
|
||||||
|
* @return \OpenAPI\Client\Model\OuterEnumIntegerDefaultValue|null
|
||||||
|
*/
|
||||||
|
public function getOuterEnumIntegerDefaultValue()
|
||||||
|
{
|
||||||
|
return $this->container['outer_enum_integer_default_value'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets outer_enum_integer_default_value
|
||||||
|
*
|
||||||
|
* @param \OpenAPI\Client\Model\OuterEnumIntegerDefaultValue|null $outer_enum_integer_default_value outer_enum_integer_default_value
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setOuterEnumIntegerDefaultValue($outer_enum_integer_default_value)
|
||||||
|
{
|
||||||
|
$this->container['outer_enum_integer_default_value'] = $outer_enum_integer_default_value;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Returns true if offset exists. False otherwise.
|
* Returns true if offset exists. False otherwise.
|
||||||
*
|
*
|
||||||
|
@ -70,7 +70,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
'date_time' => '\DateTime',
|
'date_time' => '\DateTime',
|
||||||
'uuid' => 'string',
|
'uuid' => 'string',
|
||||||
'password' => 'string',
|
'password' => 'string',
|
||||||
'big_decimal' => 'BigDecimal'
|
'pattern_with_digits' => 'string',
|
||||||
|
'pattern_with_digits_and_delimiter' => 'string'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -92,7 +93,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
'date_time' => 'date-time',
|
'date_time' => 'date-time',
|
||||||
'uuid' => 'uuid',
|
'uuid' => 'uuid',
|
||||||
'password' => 'password',
|
'password' => 'password',
|
||||||
'big_decimal' => 'number'
|
'pattern_with_digits' => null,
|
||||||
|
'pattern_with_digits_and_delimiter' => null
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,7 +137,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
'date_time' => 'dateTime',
|
'date_time' => 'dateTime',
|
||||||
'uuid' => 'uuid',
|
'uuid' => 'uuid',
|
||||||
'password' => 'password',
|
'password' => 'password',
|
||||||
'big_decimal' => 'BigDecimal'
|
'pattern_with_digits' => 'pattern_with_digits',
|
||||||
|
'pattern_with_digits_and_delimiter' => 'pattern_with_digits_and_delimiter'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -157,7 +160,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
'date_time' => 'setDateTime',
|
'date_time' => 'setDateTime',
|
||||||
'uuid' => 'setUuid',
|
'uuid' => 'setUuid',
|
||||||
'password' => 'setPassword',
|
'password' => 'setPassword',
|
||||||
'big_decimal' => 'setBigDecimal'
|
'pattern_with_digits' => 'setPatternWithDigits',
|
||||||
|
'pattern_with_digits_and_delimiter' => 'setPatternWithDigitsAndDelimiter'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -179,7 +183,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
'date_time' => 'getDateTime',
|
'date_time' => 'getDateTime',
|
||||||
'uuid' => 'getUuid',
|
'uuid' => 'getUuid',
|
||||||
'password' => 'getPassword',
|
'password' => 'getPassword',
|
||||||
'big_decimal' => 'getBigDecimal'
|
'pattern_with_digits' => 'getPatternWithDigits',
|
||||||
|
'pattern_with_digits_and_delimiter' => 'getPatternWithDigitsAndDelimiter'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -255,7 +260,8 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
$this->container['date_time'] = isset($data['date_time']) ? $data['date_time'] : null;
|
$this->container['date_time'] = isset($data['date_time']) ? $data['date_time'] : null;
|
||||||
$this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null;
|
$this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null;
|
||||||
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
|
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
|
||||||
$this->container['big_decimal'] = isset($data['big_decimal']) ? $data['big_decimal'] : null;
|
$this->container['pattern_with_digits'] = isset($data['pattern_with_digits']) ? $data['pattern_with_digits'] : null;
|
||||||
|
$this->container['pattern_with_digits_and_delimiter'] = isset($data['pattern_with_digits_and_delimiter']) ? $data['pattern_with_digits_and_delimiter'] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -317,10 +323,6 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
if ($this->container['byte'] === null) {
|
if ($this->container['byte'] === null) {
|
||||||
$invalidProperties[] = "'byte' can't be null";
|
$invalidProperties[] = "'byte' can't be null";
|
||||||
}
|
}
|
||||||
if (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['byte'])) {
|
|
||||||
$invalidProperties[] = "invalid value for 'byte', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->container['date'] === null) {
|
if ($this->container['date'] === null) {
|
||||||
$invalidProperties[] = "'date' can't be null";
|
$invalidProperties[] = "'date' can't be null";
|
||||||
}
|
}
|
||||||
@ -335,6 +337,14 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
$invalidProperties[] = "invalid value for 'password', the character length must be bigger than or equal to 10.";
|
$invalidProperties[] = "invalid value for 'password', the character length must be bigger than or equal to 10.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_null($this->container['pattern_with_digits']) && !preg_match("/^\\d{10}$/", $this->container['pattern_with_digits'])) {
|
||||||
|
$invalidProperties[] = "invalid value for 'pattern_with_digits', must be conform to the pattern /^\\d{10}$/.";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!is_null($this->container['pattern_with_digits_and_delimiter']) && !preg_match("/^image_\\d{1,3}$/i", $this->container['pattern_with_digits_and_delimiter'])) {
|
||||||
|
$invalidProperties[] = "invalid value for 'pattern_with_digits_and_delimiter', must be conform to the pattern /^image_\\d{1,3}$/i.";
|
||||||
|
}
|
||||||
|
|
||||||
return $invalidProperties;
|
return $invalidProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -582,11 +592,6 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function setByte($byte)
|
public function setByte($byte)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ((!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $byte))) {
|
|
||||||
throw new \InvalidArgumentException("invalid value for $byte when calling FormatTest., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.");
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->container['byte'] = $byte;
|
$this->container['byte'] = $byte;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -720,25 +725,59 @@ class FormatTest implements ModelInterface, ArrayAccess
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets big_decimal
|
* Gets pattern_with_digits
|
||||||
*
|
*
|
||||||
* @return BigDecimal|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public function getBigDecimal()
|
public function getPatternWithDigits()
|
||||||
{
|
{
|
||||||
return $this->container['big_decimal'];
|
return $this->container['pattern_with_digits'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets big_decimal
|
* Sets pattern_with_digits
|
||||||
*
|
*
|
||||||
* @param BigDecimal|null $big_decimal big_decimal
|
* @param string|null $pattern_with_digits A string that is a 10 digit number. Can have leading zeros.
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setBigDecimal($big_decimal)
|
public function setPatternWithDigits($pattern_with_digits)
|
||||||
{
|
{
|
||||||
$this->container['big_decimal'] = $big_decimal;
|
|
||||||
|
if (!is_null($pattern_with_digits) && (!preg_match("/^\\d{10}$/", $pattern_with_digits))) {
|
||||||
|
throw new \InvalidArgumentException("invalid value for $pattern_with_digits when calling FormatTest., must conform to the pattern /^\\d{10}$/.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->container['pattern_with_digits'] = $pattern_with_digits;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets pattern_with_digits_and_delimiter
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getPatternWithDigitsAndDelimiter()
|
||||||
|
{
|
||||||
|
return $this->container['pattern_with_digits_and_delimiter'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets pattern_with_digits_and_delimiter
|
||||||
|
*
|
||||||
|
* @param string|null $pattern_with_digits_and_delimiter A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setPatternWithDigitsAndDelimiter($pattern_with_digits_and_delimiter)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!is_null($pattern_with_digits_and_delimiter) && (!preg_match("/^image_\\d{1,3}$/i", $pattern_with_digits_and_delimiter))) {
|
||||||
|
throw new \InvalidArgumentException("invalid value for $pattern_with_digits_and_delimiter when calling FormatTest., must conform to the pattern /^image_\\d{1,3}$/i.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->container['pattern_with_digits_and_delimiter'] = $pattern_with_digits_and_delimiter;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class SpecialModelName implements ModelInterface, ArrayAccess
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected static $openAPIModelName = '$special[model.name]';
|
protected static $openAPIModelName = '_special_model.name_';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of property to type mappings. Used for (de)serialization
|
* Array of property to type mappings. Used for (de)serialization
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<project>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>PhpPetstoreOAS2Tests</artifactId>
|
<artifactId>PhpPetstoreOAS3Tests</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<name>PHP OpenAPI OAS2 Client</name>
|
<name>PHP OpenAPI OAS3 Client</name>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -73,12 +73,22 @@ class FakeApiTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test case for createXmlItem
|
* Test case for fakeHealthGet
|
||||||
*
|
*
|
||||||
* creates an XmlItem.
|
* Health check endpoint.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function testCreateXmlItem()
|
public function testFakeHealthGet()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test case for fakeHttpSignatureTest
|
||||||
|
*
|
||||||
|
* test http signature authentication.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function testFakeHttpSignatureTest()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +165,7 @@ class FakeApiTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* Test case for testEndpointParameters
|
* Test case for testEndpointParameters
|
||||||
*
|
*
|
||||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트.
|
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function testTestEndpointParameters()
|
public function testTestEndpointParameters()
|
||||||
|
@ -79,79 +79,16 @@ class AdditionalPropertiesClassTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test attribute "map_string"
|
* Test attribute "map_property"
|
||||||
*/
|
*/
|
||||||
public function testPropertyMapString()
|
public function testPropertyMapProperty()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test attribute "map_number"
|
* Test attribute "map_of_map_property"
|
||||||
*/
|
*/
|
||||||
public function testPropertyMapNumber()
|
public function testPropertyMapOfMapProperty()
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_integer"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapInteger()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_boolean"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapBoolean()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_array_integer"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapArrayInteger()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_array_anytype"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapArrayAnytype()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_map_string"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapMapString()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "map_map_anytype"
|
|
||||||
*/
|
|
||||||
public function testPropertyMapMapAnytype()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "anytype_1"
|
|
||||||
*/
|
|
||||||
public function testPropertyAnytype1()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "anytype_2"
|
|
||||||
*/
|
|
||||||
public function testPropertyAnytype2()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Test attribute "anytype_3"
|
|
||||||
*/
|
|
||||||
public function testPropertyAnytype3()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,4 +112,25 @@ class EnumTestTest extends TestCase
|
|||||||
public function testPropertyOuterEnum()
|
public function testPropertyOuterEnum()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test attribute "outer_enum_integer"
|
||||||
|
*/
|
||||||
|
public function testPropertyOuterEnumInteger()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test attribute "outer_enum_default_value"
|
||||||
|
*/
|
||||||
|
public function testPropertyOuterEnumDefaultValue()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test attribute "outer_enum_integer_default_value"
|
||||||
|
*/
|
||||||
|
public function testPropertyOuterEnumIntegerDefaultValue()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,9 +170,16 @@ class FormatTestTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test attribute "big_decimal"
|
* Test attribute "pattern_with_digits"
|
||||||
*/
|
*/
|
||||||
public function testPropertyBigDecimal()
|
public function testPropertyPatternWithDigits()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test attribute "pattern_with_digits_and_delimiter"
|
||||||
|
*/
|
||||||
|
public function testPropertyPatternWithDigitsAndDelimiter()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,16 @@ use PHPUnit\Framework\TestCase;
|
|||||||
|
|
||||||
class DebugTest extends TestCase
|
class DebugTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public static function setUpBeforeClass(): void
|
||||||
|
{
|
||||||
|
parent::setUpBeforeClass();
|
||||||
|
$newPet = new Model\Pet;
|
||||||
|
$newPet->setId(1);
|
||||||
|
$newPet->setName("PHP Unit Test");
|
||||||
|
(new Api\PetApi())->addPetWithHttpInfo($newPet);
|
||||||
|
}
|
||||||
|
|
||||||
public function testEnableDebugOutput()
|
public function testEnableDebugOutput()
|
||||||
{
|
{
|
||||||
$this->expectOutputRegex('#GET /v2/pet/1 HTTP/1.1#');
|
$this->expectOutputRegex('#GET /v2/pet/1 HTTP/1.1#');
|
||||||
|
@ -5,8 +5,8 @@ namespace OpenAPI\Client;
|
|||||||
use OpenAPI\Client\Api\PetApi;
|
use OpenAPI\Client\Api\PetApi;
|
||||||
use OpenAPI\Client\Model\ApiResponse;
|
use OpenAPI\Client\Model\ApiResponse;
|
||||||
use OpenAPI\Client\Model\Pet;
|
use OpenAPI\Client\Model\Pet;
|
||||||
use PHPUnit\Framework\Assert;
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use PHPUnit\Framework\Assert;
|
||||||
|
|
||||||
class PetApiTest extends TestCase
|
class PetApiTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,6 @@ require_once __DIR__ . '/FakeHttpClient.php';
|
|||||||
|
|
||||||
class RequestTest extends TestCase
|
class RequestTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/** @var FakeApi */
|
/** @var FakeApi */
|
||||||
private $api;
|
private $api;
|
||||||
/** @var FakeHttpClient */
|
/** @var FakeHttpClient */
|
||||||
|
@ -40,8 +40,8 @@ class ResponseTypesTest extends TestCase
|
|||||||
|
|
||||||
public function testDefinedErrorException()
|
public function testDefinedErrorException()
|
||||||
{
|
{
|
||||||
$this->expectException(\OpenAPI\Client\ApiException::class);
|
|
||||||
$this->expectExceptionCode(400);
|
$this->expectExceptionCode(400);
|
||||||
|
$this->expectException(\OpenAPI\Client\ApiException::class);
|
||||||
$statusCode = 400;
|
$statusCode = 400;
|
||||||
|
|
||||||
$this->fakeHttpClient->setResponse(new Response($statusCode, [], '{}'));
|
$this->fakeHttpClient->setResponse(new Response($statusCode, [], '{}'));
|
||||||
@ -69,8 +69,8 @@ class ResponseTypesTest extends TestCase
|
|||||||
|
|
||||||
public function testDefaultErrorException()
|
public function testDefaultErrorException()
|
||||||
{
|
{
|
||||||
$this->expectException(\OpenAPI\Client\ApiException::class);
|
|
||||||
$this->expectExceptionCode(404);
|
$this->expectExceptionCode(404);
|
||||||
|
$this->expectException(\OpenAPI\Client\ApiException::class);
|
||||||
$statusCode = 404;
|
$statusCode = 404;
|
||||||
|
|
||||||
$this->fakeHttpClient->setResponse(new Response($statusCode, [], '{}'));
|
$this->fakeHttpClient->setResponse(new Response($statusCode, [], '{}'));
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
|
|
||||||
|
|
||||||
composer.phar
|
|
||||||
/vendor/
|
|
||||||
|
|
||||||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
|
|
||||||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
|
|
||||||
composer.lock
|
|
||||||
|
|
||||||
# php-cs-fixer cache
|
|
||||||
.php_cs.cache
|
|
||||||
|
|
||||||
# PHPUnit cache
|
|
||||||
.phpunit.result.cache
|
|
@ -1,23 +0,0 @@
|
|||||||
# OpenAPI Generator Ignore
|
|
||||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
||||||
|
|
||||||
# Use this file to prevent files from being overwritten by the generator.
|
|
||||||
# The patterns follow closely to .gitignore or .dockerignore.
|
|
||||||
|
|
||||||
# As an example, the C# client generator defines ApiClient.cs.
|
|
||||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
||||||
#ApiClient.cs
|
|
||||||
|
|
||||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
||||||
#foo/*/qux
|
|
||||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
||||||
#foo/**/qux
|
|
||||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
||||||
|
|
||||||
# You can also negate patterns with an exclamation (!).
|
|
||||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
||||||
#docs/*.md
|
|
||||||
# Then explicitly reverse the ignore rule for a single file:
|
|
||||||
#!docs/README.md
|
|
@ -1,124 +0,0 @@
|
|||||||
.gitignore
|
|
||||||
.php_cs
|
|
||||||
.travis.yml
|
|
||||||
README.md
|
|
||||||
composer.json
|
|
||||||
docs/Api/AnotherFakeApi.md
|
|
||||||
docs/Api/DefaultApi.md
|
|
||||||
docs/Api/FakeApi.md
|
|
||||||
docs/Api/FakeClassnameTags123Api.md
|
|
||||||
docs/Api/PetApi.md
|
|
||||||
docs/Api/StoreApi.md
|
|
||||||
docs/Api/UserApi.md
|
|
||||||
docs/Model/AdditionalPropertiesClass.md
|
|
||||||
docs/Model/Animal.md
|
|
||||||
docs/Model/ApiResponse.md
|
|
||||||
docs/Model/ArrayOfArrayOfNumberOnly.md
|
|
||||||
docs/Model/ArrayOfNumberOnly.md
|
|
||||||
docs/Model/ArrayTest.md
|
|
||||||
docs/Model/Capitalization.md
|
|
||||||
docs/Model/Cat.md
|
|
||||||
docs/Model/CatAllOf.md
|
|
||||||
docs/Model/Category.md
|
|
||||||
docs/Model/ClassModel.md
|
|
||||||
docs/Model/Client.md
|
|
||||||
docs/Model/Dog.md
|
|
||||||
docs/Model/DogAllOf.md
|
|
||||||
docs/Model/EnumArrays.md
|
|
||||||
docs/Model/EnumClass.md
|
|
||||||
docs/Model/EnumTest.md
|
|
||||||
docs/Model/File.md
|
|
||||||
docs/Model/FileSchemaTestClass.md
|
|
||||||
docs/Model/Foo.md
|
|
||||||
docs/Model/FormatTest.md
|
|
||||||
docs/Model/HasOnlyReadOnly.md
|
|
||||||
docs/Model/HealthCheckResult.md
|
|
||||||
docs/Model/InlineObject.md
|
|
||||||
docs/Model/InlineObject1.md
|
|
||||||
docs/Model/InlineObject2.md
|
|
||||||
docs/Model/InlineObject3.md
|
|
||||||
docs/Model/InlineObject4.md
|
|
||||||
docs/Model/InlineObject5.md
|
|
||||||
docs/Model/InlineResponseDefault.md
|
|
||||||
docs/Model/MapTest.md
|
|
||||||
docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md
|
|
||||||
docs/Model/Model200Response.md
|
|
||||||
docs/Model/ModelList.md
|
|
||||||
docs/Model/ModelReturn.md
|
|
||||||
docs/Model/Name.md
|
|
||||||
docs/Model/NullableClass.md
|
|
||||||
docs/Model/NumberOnly.md
|
|
||||||
docs/Model/Order.md
|
|
||||||
docs/Model/OuterComposite.md
|
|
||||||
docs/Model/OuterEnum.md
|
|
||||||
docs/Model/OuterEnumDefaultValue.md
|
|
||||||
docs/Model/OuterEnumInteger.md
|
|
||||||
docs/Model/OuterEnumIntegerDefaultValue.md
|
|
||||||
docs/Model/Pet.md
|
|
||||||
docs/Model/ReadOnlyFirst.md
|
|
||||||
docs/Model/SpecialModelName.md
|
|
||||||
docs/Model/Tag.md
|
|
||||||
docs/Model/User.md
|
|
||||||
git_push.sh
|
|
||||||
lib/Api/AnotherFakeApi.php
|
|
||||||
lib/Api/DefaultApi.php
|
|
||||||
lib/Api/FakeApi.php
|
|
||||||
lib/Api/FakeClassnameTags123Api.php
|
|
||||||
lib/Api/PetApi.php
|
|
||||||
lib/Api/StoreApi.php
|
|
||||||
lib/Api/UserApi.php
|
|
||||||
lib/ApiException.php
|
|
||||||
lib/Configuration.php
|
|
||||||
lib/HeaderSelector.php
|
|
||||||
lib/Model/AdditionalPropertiesClass.php
|
|
||||||
lib/Model/Animal.php
|
|
||||||
lib/Model/ApiResponse.php
|
|
||||||
lib/Model/ArrayOfArrayOfNumberOnly.php
|
|
||||||
lib/Model/ArrayOfNumberOnly.php
|
|
||||||
lib/Model/ArrayTest.php
|
|
||||||
lib/Model/Capitalization.php
|
|
||||||
lib/Model/Cat.php
|
|
||||||
lib/Model/CatAllOf.php
|
|
||||||
lib/Model/Category.php
|
|
||||||
lib/Model/ClassModel.php
|
|
||||||
lib/Model/Client.php
|
|
||||||
lib/Model/Dog.php
|
|
||||||
lib/Model/DogAllOf.php
|
|
||||||
lib/Model/EnumArrays.php
|
|
||||||
lib/Model/EnumClass.php
|
|
||||||
lib/Model/EnumTest.php
|
|
||||||
lib/Model/File.php
|
|
||||||
lib/Model/FileSchemaTestClass.php
|
|
||||||
lib/Model/Foo.php
|
|
||||||
lib/Model/FormatTest.php
|
|
||||||
lib/Model/HasOnlyReadOnly.php
|
|
||||||
lib/Model/HealthCheckResult.php
|
|
||||||
lib/Model/InlineObject.php
|
|
||||||
lib/Model/InlineObject1.php
|
|
||||||
lib/Model/InlineObject2.php
|
|
||||||
lib/Model/InlineObject3.php
|
|
||||||
lib/Model/InlineObject4.php
|
|
||||||
lib/Model/InlineObject5.php
|
|
||||||
lib/Model/InlineResponseDefault.php
|
|
||||||
lib/Model/MapTest.php
|
|
||||||
lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php
|
|
||||||
lib/Model/Model200Response.php
|
|
||||||
lib/Model/ModelInterface.php
|
|
||||||
lib/Model/ModelList.php
|
|
||||||
lib/Model/ModelReturn.php
|
|
||||||
lib/Model/Name.php
|
|
||||||
lib/Model/NullableClass.php
|
|
||||||
lib/Model/NumberOnly.php
|
|
||||||
lib/Model/Order.php
|
|
||||||
lib/Model/OuterComposite.php
|
|
||||||
lib/Model/OuterEnum.php
|
|
||||||
lib/Model/OuterEnumDefaultValue.php
|
|
||||||
lib/Model/OuterEnumInteger.php
|
|
||||||
lib/Model/OuterEnumIntegerDefaultValue.php
|
|
||||||
lib/Model/Pet.php
|
|
||||||
lib/Model/ReadOnlyFirst.php
|
|
||||||
lib/Model/SpecialModelName.php
|
|
||||||
lib/Model/Tag.php
|
|
||||||
lib/Model/User.php
|
|
||||||
lib/ObjectSerializer.php
|
|
||||||
phpunit.xml.dist
|
|
@ -1 +0,0 @@
|
|||||||
5.0.0-SNAPSHOT
|
|
@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
|
||||||
->setUsingCache(true)
|
|
||||||
->setRules([
|
|
||||||
'@PSR2' => true,
|
|
||||||
'ordered_imports' => true,
|
|
||||||
'phpdoc_order' => true,
|
|
||||||
'array_syntax' => [ 'syntax' => 'short' ],
|
|
||||||
'strict_comparison' => true,
|
|
||||||
'strict_param' => true,
|
|
||||||
'no_trailing_whitespace' => false,
|
|
||||||
'no_trailing_whitespace_in_comment' => false,
|
|
||||||
'braces' => false,
|
|
||||||
'single_blank_line_at_eof' => false,
|
|
||||||
'blank_line_after_namespace' => false,
|
|
||||||
])
|
|
||||||
->setFinder(
|
|
||||||
PhpCsFixer\Finder::create()
|
|
||||||
->exclude('test')
|
|
||||||
->exclude('tests')
|
|
||||||
->in(__DIR__)
|
|
||||||
);
|
|
@ -1,10 +0,0 @@
|
|||||||
language: php
|
|
||||||
# Bionic environment has preinstalled PHP from 7.1 to 7.4
|
|
||||||
# https://docs.travis-ci.com/user/reference/bionic/#php-support
|
|
||||||
dist: bionic
|
|
||||||
php:
|
|
||||||
- 7.2
|
|
||||||
- 7.3
|
|
||||||
- 7.4
|
|
||||||
before_install: "composer install"
|
|
||||||
script: "vendor/bin/phpunit"
|
|
@ -1,237 +0,0 @@
|
|||||||
# OpenAPIClient-php
|
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
|
|
||||||
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
||||||
|
|
||||||
- API version: 1.0.0
|
|
||||||
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
|
|
||||||
|
|
||||||
## Requirements
|
|
||||||
|
|
||||||
PHP 7.2 and later
|
|
||||||
|
|
||||||
## Installation & Usage
|
|
||||||
|
|
||||||
### Composer
|
|
||||||
|
|
||||||
To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"repositories": [
|
|
||||||
{
|
|
||||||
"type": "vcs",
|
|
||||||
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"require": {
|
|
||||||
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Then run `composer install`
|
|
||||||
|
|
||||||
### Manual Installation
|
|
||||||
|
|
||||||
Download the files and include `autoload.php`:
|
|
||||||
|
|
||||||
```php
|
|
||||||
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
|
|
||||||
```
|
|
||||||
|
|
||||||
## Tests
|
|
||||||
|
|
||||||
To run the unit tests:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
composer install
|
|
||||||
./vendor/bin/phpunit
|
|
||||||
```
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->call123TestSpecialTags($client);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation for API Endpoints
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
*AnotherFakeApi* | [**call123TestSpecialTags**](docs/Api/AnotherFakeApi.md#call123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
|
||||||
*DefaultApi* | [**fooGet**](docs/Api/DefaultApi.md#fooget) | **GET** /foo |
|
|
||||||
*FakeApi* | [**fakeHealthGet**](docs/Api/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
|
|
||||||
*FakeApi* | [**fakeHttpSignatureTest**](docs/Api/FakeApi.md#fakehttpsignaturetest) | **GET** /fake/http-signature-test | test http signature authentication
|
|
||||||
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/Api/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
|
||||||
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/Api/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
|
||||||
*FakeApi* | [**fakeOuterNumberSerialize**](docs/Api/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
|
||||||
*FakeApi* | [**fakeOuterStringSerialize**](docs/Api/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
|
||||||
*FakeApi* | [**testBodyWithFileSchema**](docs/Api/FakeApi.md#testbodywithfileschema) | **PUT** /fake/body-with-file-schema |
|
|
||||||
*FakeApi* | [**testBodyWithQueryParams**](docs/Api/FakeApi.md#testbodywithqueryparams) | **PUT** /fake/body-with-query-params |
|
|
||||||
*FakeApi* | [**testClientModel**](docs/Api/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
|
||||||
*FakeApi* | [**testEndpointParameters**](docs/Api/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
||||||
*FakeApi* | [**testEnumParameters**](docs/Api/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
|
||||||
*FakeApi* | [**testGroupParameters**](docs/Api/FakeApi.md#testgroupparameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
|
||||||
*FakeApi* | [**testInlineAdditionalProperties**](docs/Api/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
|
||||||
*FakeApi* | [**testJsonFormData**](docs/Api/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
|
||||||
*FakeApi* | [**testQueryParameterCollectionFormat**](docs/Api/FakeApi.md#testqueryparametercollectionformat) | **PUT** /fake/test-query-paramters |
|
|
||||||
*FakeClassnameTags123Api* | [**testClassname**](docs/Api/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
|
||||||
*PetApi* | [**addPet**](docs/Api/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
|
||||||
*PetApi* | [**deletePet**](docs/Api/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
|
||||||
*PetApi* | [**findPetsByStatus**](docs/Api/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
|
||||||
*PetApi* | [**findPetsByTags**](docs/Api/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
|
||||||
*PetApi* | [**getPetById**](docs/Api/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
|
||||||
*PetApi* | [**updatePet**](docs/Api/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
|
||||||
*PetApi* | [**updatePetWithForm**](docs/Api/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
|
||||||
*PetApi* | [**uploadFile**](docs/Api/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
|
||||||
*PetApi* | [**uploadFileWithRequiredFile**](docs/Api/PetApi.md#uploadfilewithrequiredfile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
|
||||||
*StoreApi* | [**deleteOrder**](docs/Api/StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
|
||||||
*StoreApi* | [**getInventory**](docs/Api/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
|
||||||
*StoreApi* | [**getOrderById**](docs/Api/StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
|
||||||
*StoreApi* | [**placeOrder**](docs/Api/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
|
||||||
*UserApi* | [**createUser**](docs/Api/UserApi.md#createuser) | **POST** /user | Create user
|
|
||||||
*UserApi* | [**createUsersWithArrayInput**](docs/Api/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
|
||||||
*UserApi* | [**createUsersWithListInput**](docs/Api/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
|
||||||
*UserApi* | [**deleteUser**](docs/Api/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
|
||||||
*UserApi* | [**getUserByName**](docs/Api/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
|
||||||
*UserApi* | [**loginUser**](docs/Api/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
|
||||||
*UserApi* | [**logoutUser**](docs/Api/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
|
||||||
*UserApi* | [**updateUser**](docs/Api/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Models
|
|
||||||
|
|
||||||
- [AdditionalPropertiesClass](docs/Model/AdditionalPropertiesClass.md)
|
|
||||||
- [Animal](docs/Model/Animal.md)
|
|
||||||
- [ApiResponse](docs/Model/ApiResponse.md)
|
|
||||||
- [ArrayOfArrayOfNumberOnly](docs/Model/ArrayOfArrayOfNumberOnly.md)
|
|
||||||
- [ArrayOfNumberOnly](docs/Model/ArrayOfNumberOnly.md)
|
|
||||||
- [ArrayTest](docs/Model/ArrayTest.md)
|
|
||||||
- [Capitalization](docs/Model/Capitalization.md)
|
|
||||||
- [Cat](docs/Model/Cat.md)
|
|
||||||
- [CatAllOf](docs/Model/CatAllOf.md)
|
|
||||||
- [Category](docs/Model/Category.md)
|
|
||||||
- [ClassModel](docs/Model/ClassModel.md)
|
|
||||||
- [Client](docs/Model/Client.md)
|
|
||||||
- [Dog](docs/Model/Dog.md)
|
|
||||||
- [DogAllOf](docs/Model/DogAllOf.md)
|
|
||||||
- [EnumArrays](docs/Model/EnumArrays.md)
|
|
||||||
- [EnumClass](docs/Model/EnumClass.md)
|
|
||||||
- [EnumTest](docs/Model/EnumTest.md)
|
|
||||||
- [File](docs/Model/File.md)
|
|
||||||
- [FileSchemaTestClass](docs/Model/FileSchemaTestClass.md)
|
|
||||||
- [Foo](docs/Model/Foo.md)
|
|
||||||
- [FormatTest](docs/Model/FormatTest.md)
|
|
||||||
- [HasOnlyReadOnly](docs/Model/HasOnlyReadOnly.md)
|
|
||||||
- [HealthCheckResult](docs/Model/HealthCheckResult.md)
|
|
||||||
- [InlineObject](docs/Model/InlineObject.md)
|
|
||||||
- [InlineObject1](docs/Model/InlineObject1.md)
|
|
||||||
- [InlineObject2](docs/Model/InlineObject2.md)
|
|
||||||
- [InlineObject3](docs/Model/InlineObject3.md)
|
|
||||||
- [InlineObject4](docs/Model/InlineObject4.md)
|
|
||||||
- [InlineObject5](docs/Model/InlineObject5.md)
|
|
||||||
- [InlineResponseDefault](docs/Model/InlineResponseDefault.md)
|
|
||||||
- [MapTest](docs/Model/MapTest.md)
|
|
||||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/Model/MixedPropertiesAndAdditionalPropertiesClass.md)
|
|
||||||
- [Model200Response](docs/Model/Model200Response.md)
|
|
||||||
- [ModelList](docs/Model/ModelList.md)
|
|
||||||
- [ModelReturn](docs/Model/ModelReturn.md)
|
|
||||||
- [Name](docs/Model/Name.md)
|
|
||||||
- [NullableClass](docs/Model/NullableClass.md)
|
|
||||||
- [NumberOnly](docs/Model/NumberOnly.md)
|
|
||||||
- [Order](docs/Model/Order.md)
|
|
||||||
- [OuterComposite](docs/Model/OuterComposite.md)
|
|
||||||
- [OuterEnum](docs/Model/OuterEnum.md)
|
|
||||||
- [OuterEnumDefaultValue](docs/Model/OuterEnumDefaultValue.md)
|
|
||||||
- [OuterEnumInteger](docs/Model/OuterEnumInteger.md)
|
|
||||||
- [OuterEnumIntegerDefaultValue](docs/Model/OuterEnumIntegerDefaultValue.md)
|
|
||||||
- [Pet](docs/Model/Pet.md)
|
|
||||||
- [ReadOnlyFirst](docs/Model/ReadOnlyFirst.md)
|
|
||||||
- [SpecialModelName](docs/Model/SpecialModelName.md)
|
|
||||||
- [Tag](docs/Model/Tag.md)
|
|
||||||
- [User](docs/Model/User.md)
|
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## api_key
|
|
||||||
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key
|
|
||||||
- **Location**: HTTP header
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## api_key_query
|
|
||||||
|
|
||||||
|
|
||||||
- **Type**: API key
|
|
||||||
- **API key parameter name**: api_key_query
|
|
||||||
- **Location**: URL query string
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## bearer_test
|
|
||||||
|
|
||||||
|
|
||||||
- **Type**: Bearer authentication (JWT)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## http_basic_test
|
|
||||||
|
|
||||||
|
|
||||||
- **Type**: HTTP basic authentication
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## http_signature_test
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## petstore_auth
|
|
||||||
|
|
||||||
|
|
||||||
- **Type**: OAuth
|
|
||||||
- **Flow**: implicit
|
|
||||||
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
|
|
||||||
- **Scopes**:
|
|
||||||
- **write:pets**: modify pets in your account
|
|
||||||
- **read:pets**: read your pets
|
|
||||||
|
|
||||||
|
|
||||||
## Author
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "GIT_USER_ID/GIT_REPO_ID",
|
|
||||||
"description": "This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\",
|
|
||||||
"keywords": [
|
|
||||||
"openapitools",
|
|
||||||
"openapi-generator",
|
|
||||||
"openapi",
|
|
||||||
"php",
|
|
||||||
"sdk",
|
|
||||||
"rest",
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"homepage": "https://openapi-generator.tech",
|
|
||||||
"license": "unlicense",
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "OpenAPI-Generator contributors",
|
|
||||||
"homepage": "https://openapi-generator.tech"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"require": {
|
|
||||||
"php": ">=7.2",
|
|
||||||
"ext-curl": "*",
|
|
||||||
"ext-json": "*",
|
|
||||||
"ext-mbstring": "*",
|
|
||||||
"guzzlehttp/guzzle": "^6.2"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"phpunit/phpunit": "^8.0 || ^9.0",
|
|
||||||
"friendsofphp/php-cs-fixer": "^2.12"
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": { "OpenAPI\\Client\\" : "lib/" }
|
|
||||||
},
|
|
||||||
"autoload-dev": {
|
|
||||||
"psr-4": { "OpenAPI\\Client\\" : "test/" }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
# OpenAPI\Client\AnotherFakeApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**call123TestSpecialTags**](AnotherFakeApi.md#call123TestSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## call123TestSpecialTags
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client call123TestSpecialTags($client)
|
|
||||||
|
|
||||||
To test special tags
|
|
||||||
|
|
||||||
To test special tags and operation ID starting with number
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->call123TestSpecialTags($client);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Client**](../Model/Client.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
# OpenAPI\Client\DefaultApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## fooGet
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\InlineResponseDefault fooGet()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\DefaultApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fooGet();
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling DefaultApi->fooGet: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\InlineResponseDefault**](../Model/InlineResponseDefault.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,923 +0,0 @@
|
|||||||
# OpenAPI\Client\FakeApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**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 |
|
|
||||||
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
|
|
||||||
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
|
|
||||||
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
|
|
||||||
[**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
|
|
||||||
[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
|
|
||||||
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
|
|
||||||
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
||||||
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
|
|
||||||
[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
|
||||||
[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
|
||||||
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
|
|
||||||
[**testQueryParameterCollectionFormat**](FakeApi.md#testQueryParameterCollectionFormat) | **PUT** /fake/test-query-paramters |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## fakeHealthGet
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\HealthCheckResult fakeHealthGet()
|
|
||||||
|
|
||||||
Health check endpoint
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fakeHealthGet();
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeHealthGet: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\HealthCheckResult**](../Model/HealthCheckResult.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## fakeHttpSignatureTest
|
|
||||||
|
|
||||||
> fakeHttpSignatureTest($pet, $query_1, $header_1)
|
|
||||||
|
|
||||||
test http signature authentication
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
|
||||||
$query_1 = 'query_1_example'; // string | query parameter
|
|
||||||
$header_1 = 'header_1_example'; // string | header parameter
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->fakeHttpSignatureTest($pet, $query_1, $header_1);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeHttpSignatureTest: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
|
||||||
**query_1** | **string**| query parameter | [optional]
|
|
||||||
**header_1** | **string**| header parameter | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[http_signature_test](../../README.md#http_signature_test)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json, application/xml
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## fakeOuterBooleanSerialize
|
|
||||||
|
|
||||||
> bool fakeOuterBooleanSerialize($body)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer boolean types
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$body = True; // bool | Input boolean as post body
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fakeOuterBooleanSerialize($body);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeOuterBooleanSerialize: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**body** | **bool**| Input boolean as post body | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
**bool**
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: */*
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## fakeOuterCompositeSerialize
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\OuterComposite fakeOuterCompositeSerialize($outer_composite)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of object with outer number type
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$outer_composite = new \OpenAPI\Client\Model\OuterComposite(); // \OpenAPI\Client\Model\OuterComposite | Input composite as post body
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fakeOuterCompositeSerialize($outer_composite);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**outer_composite** | [**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)| Input composite as post body | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\OuterComposite**](../Model/OuterComposite.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: */*
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## fakeOuterNumberSerialize
|
|
||||||
|
|
||||||
> float fakeOuterNumberSerialize($body)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer number types
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$body = 3.4; // float | Input number as post body
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fakeOuterNumberSerialize($body);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeOuterNumberSerialize: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**body** | **float**| Input number as post body | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
**float**
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: */*
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## fakeOuterStringSerialize
|
|
||||||
|
|
||||||
> string fakeOuterStringSerialize($body)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer string types
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$body = 'body_example'; // string | Input string as post body
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->fakeOuterStringSerialize($body);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->fakeOuterStringSerialize: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**body** | **string**| Input string as post body | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
**string**
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: */*
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testBodyWithFileSchema
|
|
||||||
|
|
||||||
> testBodyWithFileSchema($file_schema_test_class)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For this test, the body for this request much reference a schema named `File`.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$file_schema_test_class = new \OpenAPI\Client\Model\FileSchemaTestClass(); // \OpenAPI\Client\Model\FileSchemaTestClass |
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testBodyWithFileSchema($file_schema_test_class);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**file_schema_test_class** | [**\OpenAPI\Client\Model\FileSchemaTestClass**](../Model/FileSchemaTestClass.md)| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testBodyWithQueryParams
|
|
||||||
|
|
||||||
> testBodyWithQueryParams($query, $user)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$query = 'query_example'; // string |
|
|
||||||
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User |
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testBodyWithQueryParams($query, $user);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**query** | **string**| |
|
|
||||||
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testClientModel
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client testClientModel($client)
|
|
||||||
|
|
||||||
To test \"client\" model
|
|
||||||
|
|
||||||
To test \"client\" model
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->testClientModel($client);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Client**](../Model/Client.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testEndpointParameters
|
|
||||||
|
|
||||||
> testEndpointParameters($number, $double, $pattern_without_delimiter, $byte, $integer, $int32, $int64, $float, $string, $binary, $date, $date_time, $password, $callback)
|
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure HTTP basic authorization: http_basic_test
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
|
|
||||||
->setUsername('YOUR_USERNAME')
|
|
||||||
->setPassword('YOUR_PASSWORD');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$number = 3.4; // float | None
|
|
||||||
$double = 3.4; // double | None
|
|
||||||
$pattern_without_delimiter = 'pattern_without_delimiter_example'; // string | None
|
|
||||||
$byte = 'byte_example'; // string | None
|
|
||||||
$integer = 56; // int | None
|
|
||||||
$int32 = 56; // int | None
|
|
||||||
$int64 = 56; // int | None
|
|
||||||
$float = 3.4; // float | None
|
|
||||||
$string = 'string_example'; // string | None
|
|
||||||
$binary = "/path/to/file.txt"; // \SplFileObject | None
|
|
||||||
$date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | None
|
|
||||||
$date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | None
|
|
||||||
$password = 'password_example'; // string | None
|
|
||||||
$callback = 'callback_example'; // string | None
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testEndpointParameters($number, $double, $pattern_without_delimiter, $byte, $integer, $int32, $int64, $float, $string, $binary, $date, $date_time, $password, $callback);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testEndpointParameters: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**number** | **float**| None |
|
|
||||||
**double** | **double**| None |
|
|
||||||
**pattern_without_delimiter** | **string**| None |
|
|
||||||
**byte** | **string**| None |
|
|
||||||
**integer** | **int**| None | [optional]
|
|
||||||
**int32** | **int**| None | [optional]
|
|
||||||
**int64** | **int**| None | [optional]
|
|
||||||
**float** | **float**| None | [optional]
|
|
||||||
**string** | **string**| None | [optional]
|
|
||||||
**binary** | **\SplFileObject****\SplFileObject**| None | [optional]
|
|
||||||
**date** | **\DateTime**| None | [optional]
|
|
||||||
**date_time** | **\DateTime**| None | [optional]
|
|
||||||
**password** | **string**| None | [optional]
|
|
||||||
**callback** | **string**| None | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[http_basic_test](../../README.md#http_basic_test)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/x-www-form-urlencoded
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testEnumParameters
|
|
||||||
|
|
||||||
> testEnumParameters($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string)
|
|
||||||
|
|
||||||
To test enum parameters
|
|
||||||
|
|
||||||
To test enum parameters
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$enum_header_string_array = array('enum_header_string_array_example'); // string[] | Header parameter enum test (string array)
|
|
||||||
$enum_header_string = '-efg'; // string | Header parameter enum test (string)
|
|
||||||
$enum_query_string_array = array('enum_query_string_array_example'); // string[] | Query parameter enum test (string array)
|
|
||||||
$enum_query_string = '-efg'; // string | Query parameter enum test (string)
|
|
||||||
$enum_query_integer = 56; // int | Query parameter enum test (double)
|
|
||||||
$enum_query_double = 3.4; // double | Query parameter enum test (double)
|
|
||||||
$enum_form_string_array = '$'; // string[] | Form parameter enum test (string array)
|
|
||||||
$enum_form_string = '-efg'; // string | Form parameter enum test (string)
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testEnumParameters($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testEnumParameters: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**enum_header_string_array** | [**string[]**](../Model/string.md)| Header parameter enum test (string array) | [optional]
|
|
||||||
**enum_header_string** | **string**| Header parameter enum test (string) | [optional] [default to '-efg']
|
|
||||||
**enum_query_string_array** | [**string[]**](../Model/string.md)| Query parameter enum test (string array) | [optional]
|
|
||||||
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to '-efg']
|
|
||||||
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
|
||||||
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
|
|
||||||
**enum_form_string_array** | [**string[]**](../Model/string.md)| Form parameter enum test (string array) | [optional] [default to '$']
|
|
||||||
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to '-efg']
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/x-www-form-urlencoded
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testGroupParameters
|
|
||||||
|
|
||||||
> testGroupParameters($required_string_group, $required_boolean_group, $required_int64_group, $string_group, $boolean_group, $int64_group)
|
|
||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
|
||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure Bearer (JWT) authorization: bearer_test
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$associate_array['required_string_group'] = 56; // int | Required String in group parameters
|
|
||||||
$associate_array['required_boolean_group'] = True; // bool | Required Boolean in group parameters
|
|
||||||
$associate_array['required_int64_group'] = 56; // int | Required Integer in group parameters
|
|
||||||
$associate_array['string_group'] = 56; // int | String in group parameters
|
|
||||||
$associate_array['boolean_group'] = True; // bool | Boolean in group parameters
|
|
||||||
$associate_array['int64_group'] = 56; // int | Integer in group parameters
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testGroupParameters($associate_array);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testGroupParameters: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Note: the input parameter is an associative array with the keys listed as the parameter name below.
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**required_string_group** | **int**| Required String in group parameters |
|
|
||||||
**required_boolean_group** | **bool**| Required Boolean in group parameters |
|
|
||||||
**required_int64_group** | **int**| Required Integer in group parameters |
|
|
||||||
**string_group** | **int**| String in group parameters | [optional]
|
|
||||||
**boolean_group** | **bool**| Boolean in group parameters | [optional]
|
|
||||||
**int64_group** | **int**| Integer in group parameters | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[bearer_test](../../README.md#bearer_test)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testInlineAdditionalProperties
|
|
||||||
|
|
||||||
> testInlineAdditionalProperties($request_body)
|
|
||||||
|
|
||||||
test inline additionalProperties
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$request_body = array('key' => 'request_body_example'); // map[string,string] | request body
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testInlineAdditionalProperties($request_body);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**request_body** | [**map[string,string]**](../Model/string.md)| request body |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testJsonFormData
|
|
||||||
|
|
||||||
> testJsonFormData($param, $param2)
|
|
||||||
|
|
||||||
test json serialization of form data
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$param = 'param_example'; // string | field1
|
|
||||||
$param2 = 'param2_example'; // string | field2
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testJsonFormData($param, $param2);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testJsonFormData: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**param** | **string**| field1 |
|
|
||||||
**param2** | **string**| field2 |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/x-www-form-urlencoded
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## testQueryParameterCollectionFormat
|
|
||||||
|
|
||||||
> testQueryParameterCollectionFormat($pipe, $ioutil, $http, $url, $context)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
To test the collection format in query parameters
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$pipe = array('pipe_example'); // string[] |
|
|
||||||
$ioutil = array('ioutil_example'); // string[] |
|
|
||||||
$http = array('http_example'); // string[] |
|
|
||||||
$url = array('url_example'); // string[] |
|
|
||||||
$context = array('context_example'); // string[] |
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->testQueryParameterCollectionFormat($pipe, $ioutil, $http, $url, $context);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeApi->testQueryParameterCollectionFormat: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pipe** | [**string[]**](../Model/string.md)| |
|
|
||||||
**ioutil** | [**string[]**](../Model/string.md)| |
|
|
||||||
**http** | [**string[]**](../Model/string.md)| |
|
|
||||||
**url** | [**string[]**](../Model/string.md)| |
|
|
||||||
**context** | [**string[]**](../Model/string.md)| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
|||||||
# OpenAPI\Client\FakeClassnameTags123Api
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## testClassname
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Client testClassname($client)
|
|
||||||
|
|
||||||
To test class name in snake case
|
|
||||||
|
|
||||||
To test class name in snake case
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure API key authorization: api_key_query
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key_query', 'YOUR_API_KEY');
|
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key_query', 'Bearer');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->testClassname($client);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**client** | [**\OpenAPI\Client\Model\Client**](../Model/Client.md)| client model |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Client**](../Model/Client.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[api_key_query](../../README.md#api_key_query)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,566 +0,0 @@
|
|||||||
# OpenAPI\Client\PetApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
|
|
||||||
[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
|
|
||||||
[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
|
|
||||||
[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
|
|
||||||
[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
|
|
||||||
[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
|
|
||||||
[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
|
||||||
[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
|
||||||
[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## addPet
|
|
||||||
|
|
||||||
> addPet($pet)
|
|
||||||
|
|
||||||
Add a new pet to the store
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->addPet($pet);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json, application/xml
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## deletePet
|
|
||||||
|
|
||||||
> deletePet($pet_id, $api_key)
|
|
||||||
|
|
||||||
Deletes a pet
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet_id = 56; // int | Pet id to delete
|
|
||||||
$api_key = 'api_key_example'; // string |
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->deletePet($pet_id, $api_key);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->deletePet: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet_id** | **int**| Pet id to delete |
|
|
||||||
**api_key** | **string**| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## findPetsByStatus
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Pet[] findPetsByStatus($status)
|
|
||||||
|
|
||||||
Finds Pets by status
|
|
||||||
|
|
||||||
Multiple status values can be provided with comma separated strings
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$status = array('status_example'); // string[] | Status values that need to be considered for filter
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->findPetsByStatus($status);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->findPetsByStatus: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**status** | [**string[]**](../Model/string.md)| Status values that need to be considered for filter |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Pet[]**](../Model/Pet.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## findPetsByTags
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Pet[] findPetsByTags($tags)
|
|
||||||
|
|
||||||
Finds Pets by tags
|
|
||||||
|
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$tags = array('tags_example'); // string[] | Tags to filter by
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->findPetsByTags($tags);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->findPetsByTags: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**tags** | [**string[]**](../Model/string.md)| Tags to filter by |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Pet[]**](../Model/Pet.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## getPetById
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Pet getPetById($pet_id)
|
|
||||||
|
|
||||||
Find pet by ID
|
|
||||||
|
|
||||||
Returns a single pet
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet_id = 56; // int | ID of pet to return
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->getPetById($pet_id);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->getPetById: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet_id** | **int**| ID of pet to return |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[api_key](../../README.md#api_key)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## updatePet
|
|
||||||
|
|
||||||
> updatePet($pet)
|
|
||||||
|
|
||||||
Update an existing pet
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet = new \OpenAPI\Client\Model\Pet(); // \OpenAPI\Client\Model\Pet | Pet object that needs to be added to the store
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->updatePet($pet);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet** | [**\OpenAPI\Client\Model\Pet**](../Model/Pet.md)| Pet object that needs to be added to the store |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json, application/xml
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## updatePetWithForm
|
|
||||||
|
|
||||||
> updatePetWithForm($pet_id, $name, $status)
|
|
||||||
|
|
||||||
Updates a pet in the store with form data
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet_id = 56; // int | ID of pet that needs to be updated
|
|
||||||
$name = 'name_example'; // string | Updated name of the pet
|
|
||||||
$status = 'status_example'; // string | Updated status of the pet
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->updatePetWithForm($pet_id, $name, $status);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->updatePetWithForm: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet_id** | **int**| ID of pet that needs to be updated |
|
|
||||||
**name** | **string**| Updated name of the pet | [optional]
|
|
||||||
**status** | **string**| Updated status of the pet | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/x-www-form-urlencoded
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## uploadFile
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\ApiResponse uploadFile($pet_id, $additional_metadata, $file)
|
|
||||||
|
|
||||||
uploads an image
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet_id = 56; // int | ID of pet to update
|
|
||||||
$additional_metadata = 'additional_metadata_example'; // string | Additional data to pass to server
|
|
||||||
$file = "/path/to/file.txt"; // \SplFileObject | file to upload
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->uploadFile($pet_id, $additional_metadata, $file);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->uploadFile: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet_id** | **int**| ID of pet to update |
|
|
||||||
**additional_metadata** | **string**| Additional data to pass to server | [optional]
|
|
||||||
**file** | **\SplFileObject****\SplFileObject**| file to upload | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\ApiResponse**](../Model/ApiResponse.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: multipart/form-data
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## uploadFileWithRequiredFile
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\ApiResponse uploadFileWithRequiredFile($pet_id, $required_file, $additional_metadata)
|
|
||||||
|
|
||||||
uploads an image (required)
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure OAuth2 access token for authorization: petstore_auth
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\PetApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
$pet_id = 56; // int | ID of pet to update
|
|
||||||
$required_file = "/path/to/file.txt"; // \SplFileObject | file to upload
|
|
||||||
$additional_metadata = 'additional_metadata_example'; // string | Additional data to pass to server
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->uploadFileWithRequiredFile($pet_id, $required_file, $additional_metadata);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling PetApi->uploadFileWithRequiredFile: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**pet_id** | **int**| ID of pet to update |
|
|
||||||
**required_file** | **\SplFileObject****\SplFileObject**| file to upload |
|
|
||||||
**additional_metadata** | **string**| Additional data to pass to server | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\ApiResponse**](../Model/ApiResponse.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[petstore_auth](../../README.md#petstore_auth)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: multipart/form-data
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,236 +0,0 @@
|
|||||||
# OpenAPI\Client\StoreApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
|
||||||
[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
|
|
||||||
[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
|
|
||||||
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## deleteOrder
|
|
||||||
|
|
||||||
> deleteOrder($order_id)
|
|
||||||
|
|
||||||
Delete purchase order by ID
|
|
||||||
|
|
||||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\StoreApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$order_id = 'order_id_example'; // string | ID of the order that needs to be deleted
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->deleteOrder($order_id);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling StoreApi->deleteOrder: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**order_id** | **string**| ID of the order that needs to be deleted |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## getInventory
|
|
||||||
|
|
||||||
> map[string,int] getInventory()
|
|
||||||
|
|
||||||
Returns pet inventories by status
|
|
||||||
|
|
||||||
Returns a map of status codes to quantities
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
// Configure API key authorization: api_key
|
|
||||||
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
|
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\StoreApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client(),
|
|
||||||
$config
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->getInventory();
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling StoreApi->getInventory: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
**map[string,int]**
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[api_key](../../README.md#api_key)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## getOrderById
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Order getOrderById($order_id)
|
|
||||||
|
|
||||||
Find purchase order by ID
|
|
||||||
|
|
||||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\StoreApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$order_id = 56; // int | ID of pet that needs to be fetched
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->getOrderById($order_id);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling StoreApi->getOrderById: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**order_id** | **int**| ID of pet that needs to be fetched |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Order**](../Model/Order.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## placeOrder
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\Order placeOrder($order)
|
|
||||||
|
|
||||||
Place an order for a pet
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\StoreApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$order = new \OpenAPI\Client\Model\Order(); // \OpenAPI\Client\Model\Order | order placed for purchasing the pet
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->placeOrder($order);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**order** | [**\OpenAPI\Client\Model\Order**](../Model/Order.md)| order placed for purchasing the pet |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\Order**](../Model/Order.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,448 +0,0 @@
|
|||||||
# OpenAPI\Client\UserApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
|
|
||||||
[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
|
|
||||||
[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
|
|
||||||
[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
|
|
||||||
[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
|
|
||||||
[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
|
|
||||||
[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
|
|
||||||
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## createUser
|
|
||||||
|
|
||||||
> createUser($user)
|
|
||||||
|
|
||||||
Create user
|
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Created user object
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->createUser($user);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Created user object |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## createUsersWithArrayInput
|
|
||||||
|
|
||||||
> createUsersWithArrayInput($user)
|
|
||||||
|
|
||||||
Creates list of users with given input array
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$user = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->createUsersWithArrayInput($user);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## createUsersWithListInput
|
|
||||||
|
|
||||||
> createUsersWithListInput($user)
|
|
||||||
|
|
||||||
Creates list of users with given input array
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$user = array(new \OpenAPI\Client\Model\User()); // \OpenAPI\Client\Model\User[] | List of user object
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->createUsersWithListInput($user);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**user** | [**\OpenAPI\Client\Model\User[]**](../Model/User.md)| List of user object |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## deleteUser
|
|
||||||
|
|
||||||
> deleteUser($username)
|
|
||||||
|
|
||||||
Delete user
|
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$username = 'username_example'; // string | The name that needs to be deleted
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->deleteUser($username);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->deleteUser: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**username** | **string**| The name that needs to be deleted |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## getUserByName
|
|
||||||
|
|
||||||
> \OpenAPI\Client\Model\User getUserByName($username)
|
|
||||||
|
|
||||||
Get user by user name
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$username = 'username_example'; // string | The name that needs to be fetched. Use user1 for testing.
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->getUserByName($username);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->getUserByName: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**username** | **string**| The name that needs to be fetched. Use user1 for testing. |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**\OpenAPI\Client\Model\User**](../Model/User.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## loginUser
|
|
||||||
|
|
||||||
> string loginUser($username, $password)
|
|
||||||
|
|
||||||
Logs user into the system
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$username = 'username_example'; // string | The user name for login
|
|
||||||
$password = 'password_example'; // string | The password for login in clear text
|
|
||||||
|
|
||||||
try {
|
|
||||||
$result = $apiInstance->loginUser($username, $password);
|
|
||||||
print_r($result);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->loginUser: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**username** | **string**| The user name for login |
|
|
||||||
**password** | **string**| The password for login in clear text |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
**string**
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/xml, application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## logoutUser
|
|
||||||
|
|
||||||
> logoutUser()
|
|
||||||
|
|
||||||
Logs out current logged in user session
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->logoutUser();
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->logoutUser: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
||||||
## updateUser
|
|
||||||
|
|
||||||
> updateUser($username, $user)
|
|
||||||
|
|
||||||
Updated user
|
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```php
|
|
||||||
<?php
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
|
|
||||||
$apiInstance = new OpenAPI\Client\Api\UserApi(
|
|
||||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
|
||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
|
||||||
new GuzzleHttp\Client()
|
|
||||||
);
|
|
||||||
$username = 'username_example'; // string | name that need to be deleted
|
|
||||||
$user = new \OpenAPI\Client\Model\User(); // \OpenAPI\Client\Model\User | Updated user object
|
|
||||||
|
|
||||||
try {
|
|
||||||
$apiInstance->updateUser($username, $user);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**username** | **string**| name that need to be deleted |
|
|
||||||
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| Updated user object |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models)
|
|
||||||
[[Back to README]](../../README.md)
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
# # AdditionalPropertiesClass
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**map_property** | **map[string,string]** | | [optional]
|
|
||||||
**map_of_map_property** | [**map[string,map[string,string]]**](map.md) | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
# # Animal
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**class_name** | **string** | |
|
|
||||||
**color** | **string** | | [optional] [default to 'red']
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
# # ApiResponse
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**code** | **int** | | [optional]
|
|
||||||
**type** | **string** | | [optional]
|
|
||||||
**message** | **string** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# # ArrayOfArrayOfNumberOnly
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**array_array_number** | [**float[][]**](array.md) | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# # ArrayOfNumberOnly
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**array_number** | **float[]** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
# # ArrayTest
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**array_of_string** | **string[]** | | [optional]
|
|
||||||
**array_array_of_integer** | [**int[][]**](array.md) | | [optional]
|
|
||||||
**array_array_of_model** | [**\OpenAPI\Client\Model\ReadOnlyFirst[][]**](array.md) | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# # Capitalization
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**small_camel** | **string** | | [optional]
|
|
||||||
**capital_camel** | **string** | | [optional]
|
|
||||||
**small_snake** | **string** | | [optional]
|
|
||||||
**capital_snake** | **string** | | [optional]
|
|
||||||
**sca_eth_flow_points** | **string** | | [optional]
|
|
||||||
**att_name** | **string** | Name of the pet | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
# # Cat
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**declawed** | **bool** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
|
||||||
|
|
||||||
|
|
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