Migrate PHP client samples to use OAS v3 spec (#6722)

* consolidate php samples

* restore EnumTestTest.php
This commit is contained in:
William Cheng
2020-06-22 16:56:03 +08:00
committed by GitHub
parent 8400d4c6f9
commit bcefbe99c1
249 changed files with 1279 additions and 35337 deletions

View File

@@ -10,7 +10,7 @@ Method | HTTP request | Description
## call123TestSpecialTags
> \OpenAPI\Client\Model\Client call123TestSpecialTags($body)
> \OpenAPI\Client\Model\Client call123TestSpecialTags($client)
To test special tags
@@ -28,10 +28,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
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 {
$result = $apiInstance->call123TestSpecialTags($body);
$result = $apiInstance->call123TestSpecialTags($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->call123TestSpecialTags: ', $e->getMessage(), PHP_EOL;
@@ -44,7 +44,7 @@ try {
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

View File

@@ -7,16 +7,20 @@ Method | HTTP request | Description
[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |
# **fooGet**
## 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.
@@ -33,6 +37,7 @@ try {
```
### Parameters
This endpoint does not need any parameter.
### Return type
@@ -45,8 +50,10 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
- **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)
[[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)

View File

@@ -4,7 +4,8 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
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 |
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
[**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 |
[**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \&quot;client\&quot; 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
[**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
[**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
this route creates an XmlItem
Health check endpoint
### Example
@@ -41,12 +40,67 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$xml_item = new \OpenAPI\Client\Model\XmlItem(); // \OpenAPI\Client\Model\XmlItem | XmlItem Body
try {
$apiInstance->createXmlItem($xml_item);
$result = $apiInstance->fakeHealthGet();
print_r($result);
} 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
------------- | ------------- | ------------- | -------------
**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
@@ -64,11 +120,11 @@ void (empty response body)
### Authorization
No authorization required
[http_signature_test](../../README.md#http_signature_test)
### 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
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -124,7 +180,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -134,7 +190,7 @@ No authorization required
## 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.
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 {
$result = $apiInstance->fakeOuterCompositeSerialize($body);
$result = $apiInstance->fakeOuterCompositeSerialize($outer_composite);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->fakeOuterCompositeSerialize: ', $e->getMessage(), PHP_EOL;
@@ -168,7 +224,7 @@ try {
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
@@ -180,7 +236,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -236,7 +292,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -292,7 +348,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -302,7 +358,7 @@ No authorization required
## 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.
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 {
$apiInstance->testBodyWithFileSchema($body);
$apiInstance->testBodyWithFileSchema($file_schema_test_class);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testBodyWithFileSchema: ', $e->getMessage(), PHP_EOL;
}
@@ -335,7 +391,7 @@ try {
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
@@ -357,7 +413,7 @@ No authorization required
## testBodyWithQueryParams
> testBodyWithQueryParams($query, $body)
> testBodyWithQueryParams($query, $user)
@@ -374,10 +430,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
new GuzzleHttp\Client()
);
$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 {
$apiInstance->testBodyWithQueryParams($query, $body);
$apiInstance->testBodyWithQueryParams($query, $user);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testBodyWithQueryParams: ', $e->getMessage(), PHP_EOL;
}
@@ -390,7 +446,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **string**| |
**body** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
**user** | [**\OpenAPI\Client\Model\User**](../Model/User.md)| |
### Return type
@@ -412,7 +468,7 @@ No authorization required
## testClientModel
> \OpenAPI\Client\Model\Client testClientModel($body)
> \OpenAPI\Client\Model\Client testClientModel($client)
To test \"client\" model
@@ -430,10 +486,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
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 {
$result = $apiInstance->testClientModel($body);
$result = $apiInstance->testClientModel($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testClientModel: ', $e->getMessage(), PHP_EOL;
@@ -446,7 +502,7 @@ try {
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
@@ -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)
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
@@ -638,10 +694,15 @@ Fake endpoint to test group parameters (optional)
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()
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
@@ -678,7 +739,7 @@ void (empty response body)
### Authorization
No authorization required
[bearer_test](../../README.md#bearer_test)
### HTTP request headers
@@ -692,7 +753,7 @@ No authorization required
## testInlineAdditionalProperties
> testInlineAdditionalProperties($param)
> testInlineAdditionalProperties($request_body)
test inline additionalProperties
@@ -708,10 +769,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
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 {
$apiInstance->testInlineAdditionalProperties($param);
$apiInstance->testInlineAdditionalProperties($request_body);
} catch (Exception $e) {
echo 'Exception when calling FakeApi->testInlineAdditionalProperties: ', $e->getMessage(), PHP_EOL;
}
@@ -723,7 +784,7 @@ try {
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

View File

@@ -10,7 +10,7 @@ Method | HTTP request | Description
## testClassname
> \OpenAPI\Client\Model\Client testClassname($body)
> \OpenAPI\Client\Model\Client testClassname($client)
To test class name in snake case
@@ -35,10 +35,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeClassnameTags123Api(
new GuzzleHttp\Client(),
$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 {
$result = $apiInstance->testClassname($body);
$result = $apiInstance->testClassname($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FakeClassnameTags123Api->testClassname: ', $e->getMessage(), PHP_EOL;
@@ -51,7 +51,7 @@ try {
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

View File

@@ -18,7 +18,7 @@ Method | HTTP request | Description
## addPet
> addPet($body)
> addPet($pet)
Add a new pet to the store
@@ -39,10 +39,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
new GuzzleHttp\Client(),
$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 {
$apiInstance->addPet($body);
$apiInstance->addPet($pet);
} catch (Exception $e) {
echo 'Exception when calling PetApi->addPet: ', $e->getMessage(), PHP_EOL;
}
@@ -54,7 +54,7 @@ try {
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
@@ -321,7 +321,7 @@ Name | Type | Description | Notes
## updatePet
> updatePet($body)
> updatePet($pet)
Update an existing pet
@@ -342,10 +342,10 @@ $apiInstance = new OpenAPI\Client\Api\PetApi(
new GuzzleHttp\Client(),
$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 {
$apiInstance->updatePet($body);
$apiInstance->updatePet($pet);
} catch (Exception $e) {
echo 'Exception when calling PetApi->updatePet: ', $e->getMessage(), PHP_EOL;
}
@@ -357,7 +357,7 @@ try {
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

View File

@@ -183,7 +183,7 @@ No authorization required
## placeOrder
> \OpenAPI\Client\Model\Order placeOrder($body)
> \OpenAPI\Client\Model\Order placeOrder($order)
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.
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 {
$result = $apiInstance->placeOrder($body);
$result = $apiInstance->placeOrder($order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StoreApi->placeOrder: ', $e->getMessage(), PHP_EOL;
@@ -215,7 +215,7 @@ try {
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
@@ -227,7 +227,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/xml, application/json
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)

View File

@@ -17,7 +17,7 @@ Method | HTTP request | Description
## createUser
> createUser($body)
> createUser($user)
Create user
@@ -35,10 +35,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
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 {
$apiInstance->createUser($body);
$apiInstance->createUser($user);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
}
@@ -50,7 +50,7 @@ try {
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
@@ -62,7 +62,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -72,7 +72,7 @@ No authorization required
## createUsersWithArrayInput
> createUsersWithArrayInput($body)
> createUsersWithArrayInput($user)
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.
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 {
$apiInstance->createUsersWithArrayInput($body);
$apiInstance->createUsersWithArrayInput($user);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
}
@@ -103,7 +103,7 @@ try {
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
@@ -115,7 +115,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -125,7 +125,7 @@ No authorization required
## createUsersWithListInput
> createUsersWithListInput($body)
> createUsersWithListInput($user)
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.
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 {
$apiInstance->createUsersWithListInput($body);
$apiInstance->createUsersWithListInput($user);
} catch (Exception $e) {
echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
}
@@ -156,7 +156,7 @@ try {
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
@@ -168,7 +168,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)
@@ -392,7 +392,7 @@ No authorization required
## updateUser
> updateUser($username, $body)
> updateUser($username, $user)
Updated user
@@ -411,10 +411,10 @@ $apiInstance = new OpenAPI\Client\Api\UserApi(
new GuzzleHttp\Client()
);
$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 {
$apiInstance->updateUser($username, $body);
$apiInstance->updateUser($username, $user);
} catch (Exception $e) {
echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
}
@@ -427,7 +427,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**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
@@ -439,7 +439,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints)

View File

@@ -4,17 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**map_string** | **map[string,string]** | | [optional]
**map_number** | **map[string,float]** | | [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]
**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)

View File

@@ -9,6 +9,9 @@ Name | Type | Description | Notes
**enum_integer** | **int** | | [optional]
**enum_number** | **double** | | [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)

View File

@@ -1,10 +1,11 @@
# Foo
# # Foo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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)

View File

@@ -17,7 +17,8 @@ Name | Type | Description | Notes
**date_time** | [**\DateTime**](\DateTime.md) | | [optional]
**uuid** | **string** | | [optional]
**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 &#39;image_&#39; (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)

View File

@@ -0,0 +1,11 @@
# # HealthCheckResult
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nullable_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)

View File

@@ -1,11 +1,12 @@
# InlineObject
# # InlineObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | Updated name 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)

View File

@@ -1,11 +1,12 @@
# InlineObject1
# # InlineObject1
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additional_metadata** | **string** | Additional data to pass to server | [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)

View File

@@ -1,11 +1,12 @@
# InlineObject2
# # InlineObject2
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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']
[[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)

View File

@@ -1,6 +1,7 @@
# InlineObject3
# # InlineObject3
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **int** | None | [optional]
@@ -18,6 +19,6 @@ Name | Type | Description | Notes
**password** | **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)

View File

@@ -1,11 +1,12 @@
# InlineObject4
# # InlineObject4
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**param** | **string** | field1 |
**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)

View File

@@ -1,11 +1,12 @@
# InlineObject5
# # InlineObject5
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additional_metadata** | **string** | Additional data to pass to server | [optional]
**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)

View File

@@ -1,10 +1,11 @@
# InlineResponseDefault
# # InlineResponseDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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)

View File

@@ -0,0 +1,22 @@
# # NullableClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer_prop** | **int** | | [optional]
**number_prop** | **float** | | [optional]
**boolean_prop** | **bool** | | [optional]
**string_prop** | **string** | | [optional]
**date_prop** | [**\DateTime**](\DateTime.md) | | [optional]
**datetime_prop** | [**\DateTime**](\DateTime.md) | | [optional]
**array_nullable_prop** | **object[]** | | [optional]
**array_and_items_nullable_prop** | **object[]** | | [optional]
**array_items_nullable** | **object[]** | | [optional]
**object_nullable_prop** | **map[string,object]** | | [optional]
**object_and_items_nullable_prop** | **map[string,object]** | | [optional]
**object_items_nullable** | **map[string,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)

View File

@@ -0,0 +1,10 @@
# # OuterEnumDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@@ -0,0 +1,10 @@
# # OuterEnumInteger
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@@ -0,0 +1,10 @@
# # OuterEnumIntegerDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)