Skip to content

Commit fdc4984

Browse files
committed
updated php and python samples
1 parent ad478f6 commit fdc4984

File tree

115 files changed

+1782
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1782
-233
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.5-SNAPSHOT
1+
3.0.19-SNAPSHOT

samples/client/petstore/php/SwaggerClient-php/docs/Api/AnotherFakeApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
7+
[**testSpecialTags**](AnotherFakeApi.md#testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
88

99
# **testSpecialTags**
1010
> \Swagger\Client\Model\Client testSpecialTags($body)

samples/client/petstore/php/SwaggerClient-php/docs/Api/FakeApi.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
8-
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
9-
[**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
10-
[**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
11-
[**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
12-
[**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
13-
[**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
14-
[**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
15-
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
7+
[**fakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
8+
[**fakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
9+
[**fakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
10+
[**fakeOuterStringSerialize**](FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
11+
[**testClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
12+
[**testEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
13+
[**testEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
14+
[**testInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
15+
[**testJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
1616

1717
# **fakeOuterBooleanSerialize**
1818
> \Swagger\Client\Model\OuterBoolean fakeOuterBooleanSerialize($body)
@@ -129,7 +129,7 @@ $apiInstance = new Swagger\Client\Api\FakeApi(
129129
// This is optional, `GuzzleHttp\Client` will be used as default.
130130
new GuzzleHttp\Client()
131131
);
132-
$body = new \Swagger\Client\Model\BigDecimal(); // BigDecimal | Input number as post body
132+
$body = 3.4; // float | Input number as post body
133133

134134
try {
135135
$result = $apiInstance->fakeOuterNumberSerialize($body);
@@ -144,7 +144,7 @@ try {
144144

145145
Name | Type | Description | Notes
146146
------------- | ------------- | ------------- | -------------
147-
**body** | [**BigDecimal**](../Model/BigDecimal.md)| Input number as post body | [optional]
147+
**body** | [**float**](../Model/float.md)| Input number as post body | [optional]
148148

149149
### Return type
150150

@@ -282,7 +282,7 @@ $apiInstance = new Swagger\Client\Api\FakeApi(
282282
new GuzzleHttp\Client(),
283283
$config
284284
);
285-
$body = new \Swagger\Client\Model\null(); // |
285+
$body = new \stdClass; // object |
286286

287287
try {
288288
$apiInstance->testEndpointParameters($body);
@@ -296,7 +296,7 @@ try {
296296

297297
Name | Type | Description | Notes
298298
------------- | ------------- | ------------- | -------------
299-
**body** | [****](../Model/.md)| |
299+
**body** | [**object**](../Model/object.md)| |
300300

301301
### Return type
302302

@@ -330,7 +330,7 @@ $apiInstance = new Swagger\Client\Api\FakeApi(
330330
// This is optional, `GuzzleHttp\Client` will be used as default.
331331
new GuzzleHttp\Client()
332332
);
333-
$body = new \Swagger\Client\Model\null(); // |
333+
$body = new \stdClass; // object |
334334
$enum_header_string_array = array("enum_header_string_array_example"); // string[] | Header parameter enum test (string array)
335335
$enum_header_string = "enum_header_string_example"; // string | Header parameter enum test (string)
336336
$enum_query_string_array = array("enum_query_string_array_example"); // string[] | Query parameter enum test (string array)
@@ -349,12 +349,12 @@ try {
349349

350350
Name | Type | Description | Notes
351351
------------- | ------------- | ------------- | -------------
352-
**body** | [****](../Model/.md)| | [optional]
352+
**body** | [**object**](../Model/object.md)| | [optional]
353353
**enum_header_string_array** | [**string[]**](../Model/string.md)| Header parameter enum test (string array) | [optional]
354-
**enum_header_string** | [**string**](../Model/.md)| Header parameter enum test (string) | [optional]
354+
**enum_header_string** | **string**| Header parameter enum test (string) | [optional]
355355
**enum_query_string_array** | [**string[]**](../Model/string.md)| Query parameter enum test (string array) | [optional]
356-
**enum_query_string** | [**string**](../Model/.md)| Query parameter enum test (string) | [optional]
357-
**enum_query_integer** | [**int**](../Model/.md)| Query parameter enum test (double) | [optional]
356+
**enum_query_string** | **string**| Query parameter enum test (string) | [optional]
357+
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
358358

359359
### Return type
360360

@@ -432,7 +432,7 @@ $apiInstance = new Swagger\Client\Api\FakeApi(
432432
// This is optional, `GuzzleHttp\Client` will be used as default.
433433
new GuzzleHttp\Client()
434434
);
435-
$body = new \Swagger\Client\Model\null(); // |
435+
$body = new \stdClass; // object |
436436

437437
try {
438438
$apiInstance->testJsonFormData($body);
@@ -446,7 +446,7 @@ try {
446446

447447
Name | Type | Description | Notes
448448
------------- | ------------- | ------------- | -------------
449-
**body** | [****](../Model/.md)| |
449+
**body** | [**object**](../Model/object.md)| |
450450

451451
### Return type
452452

samples/client/petstore/php/SwaggerClient-php/docs/Api/FakeClassnameTags123Api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
7+
[**testClassname**](FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
88

99
# **testClassname**
1010
> \Swagger\Client\Model\Client testClassname($body)

samples/client/petstore/php/SwaggerClient-php/docs/Api/PetApi.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**addPet**](PetApi.md#addPet) | **POST** /pet | Add a new pet to the store
8-
[**deletePet**](PetApi.md#deletePet) | **DELETE** /pet/{petId} | Deletes a pet
9-
[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
10-
[**findPetsByTags**](PetApi.md#findPetsByTags) | **GET** /pet/findByTags | Finds Pets by tags
11-
[**getPetById**](PetApi.md#getPetById) | **GET** /pet/{petId} | Find pet by ID
12-
[**updatePet**](PetApi.md#updatePet) | **PUT** /pet | Update an existing pet
13-
[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
14-
[**uploadFile**](PetApi.md#uploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
7+
[**addPet**](PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
8+
[**deletePet**](PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
9+
[**findPetsByStatus**](PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
10+
[**findPetsByTags**](PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
11+
[**getPetById**](PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
12+
[**updatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
13+
[**updatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
14+
[**uploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
1515

1616
# **addPet**
1717
> addPet($body)
@@ -82,7 +82,7 @@ $apiInstance = new Swagger\Client\Api\PetApi(
8282
new GuzzleHttp\Client(),
8383
$config
8484
);
85-
$pet_id = 56; // int | Pet id to delete
85+
$pet_id = 789; // int | Pet id to delete
8686
$api_key = "api_key_example"; // string |
8787

8888
try {
@@ -97,8 +97,8 @@ try {
9797

9898
Name | Type | Description | Notes
9999
------------- | ------------- | ------------- | -------------
100-
**pet_id** | [**int**](../Model/.md)| Pet id to delete |
101-
**api_key** | [**string**](../Model/.md)| | [optional]
100+
**pet_id** | **int**| Pet id to delete |
101+
**api_key** | **string**| | [optional]
102102

103103
### Return type
104104

@@ -243,7 +243,7 @@ $apiInstance = new Swagger\Client\Api\PetApi(
243243
new GuzzleHttp\Client(),
244244
$config
245245
);
246-
$pet_id = 56; // int | ID of pet to return
246+
$pet_id = 789; // int | ID of pet to return
247247

248248
try {
249249
$result = $apiInstance->getPetById($pet_id);
@@ -258,7 +258,7 @@ try {
258258

259259
Name | Type | Description | Notes
260260
------------- | ------------- | ------------- | -------------
261-
**pet_id** | [**int**](../Model/.md)| ID of pet to return |
261+
**pet_id** | **int**| ID of pet to return |
262262

263263
### Return type
264264

@@ -344,7 +344,7 @@ $apiInstance = new Swagger\Client\Api\PetApi(
344344
new GuzzleHttp\Client(),
345345
$config
346346
);
347-
$pet_id = 56; // int | ID of pet that needs to be updated
347+
$pet_id = 789; // int | ID of pet that needs to be updated
348348
$name = "name_example"; // string |
349349
$status = "status_example"; // string |
350350

@@ -360,9 +360,9 @@ try {
360360

361361
Name | Type | Description | Notes
362362
------------- | ------------- | ------------- | -------------
363-
**pet_id** | [**int**](../Model/.md)| ID of pet that needs to be updated |
364-
**name** | [**string**](../Model/.md)| | [optional]
365-
**status** | [**string**](../Model/.md)| | [optional]
363+
**pet_id** | **int**| ID of pet that needs to be updated |
364+
**name** | **string**| | [optional]
365+
**status** | **string**| | [optional]
366366

367367
### Return type
368368

@@ -398,9 +398,9 @@ $apiInstance = new Swagger\Client\Api\PetApi(
398398
new GuzzleHttp\Client(),
399399
$config
400400
);
401-
$pet_id = 56; // int | ID of pet to update
401+
$pet_id = 789; // int | ID of pet to update
402402
$additional_metadata = "additional_metadata_example"; // string |
403-
$file = "file_example"; // \SplFileObject |
403+
$file = "file_example"; // string |
404404

405405
try {
406406
$result = $apiInstance->uploadFile($pet_id, $additional_metadata, $file);
@@ -415,9 +415,9 @@ try {
415415

416416
Name | Type | Description | Notes
417417
------------- | ------------- | ------------- | -------------
418-
**pet_id** | [**int**](../Model/.md)| ID of pet to update |
419-
**additional_metadata** | [**string**](../Model/.md)| | [optional]
420-
**file** | **\SplFileObject****\SplFileObject**| | [optional]
418+
**pet_id** | **int**| ID of pet to update |
419+
**additional_metadata** | **string**| | [optional]
420+
**file** | **string****string**| | [optional]
421421

422422
### Return type
423423

samples/client/petstore/php/SwaggerClient-php/docs/Api/StoreApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**deleteOrder**](StoreApi.md#deleteOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
8-
[**getInventory**](StoreApi.md#getInventory) | **GET** /store/inventory | Returns pet inventories by status
9-
[**getOrderById**](StoreApi.md#getOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
10-
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
7+
[**deleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
8+
[**getInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
9+
[**getOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
10+
[**placeOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
1111

1212
# **deleteOrder**
1313
> deleteOrder($order_id)
@@ -40,7 +40,7 @@ try {
4040

4141
Name | Type | Description | Notes
4242
------------- | ------------- | ------------- | -------------
43-
**order_id** | [**string**](../Model/.md)| ID of the order that needs to be deleted |
43+
**order_id** | **string**| ID of the order that needs to be deleted |
4444

4545
### Return type
4646

@@ -124,7 +124,7 @@ $apiInstance = new Swagger\Client\Api\StoreApi(
124124
// This is optional, `GuzzleHttp\Client` will be used as default.
125125
new GuzzleHttp\Client()
126126
);
127-
$order_id = 56; // int | ID of pet that needs to be fetched
127+
$order_id = 789; // int | ID of pet that needs to be fetched
128128

129129
try {
130130
$result = $apiInstance->getOrderById($order_id);
@@ -139,7 +139,7 @@ try {
139139

140140
Name | Type | Description | Notes
141141
------------- | ------------- | ------------- | -------------
142-
**order_id** | [**int**](../Model/.md)| ID of pet that needs to be fetched |
142+
**order_id** | **int**| ID of pet that needs to be fetched |
143143

144144
### Return type
145145

samples/client/petstore/php/SwaggerClient-php/docs/Api/UserApi.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**createUser**](UserApi.md#createUser) | **POST** /user | Create user
8-
[**createUsersWithArrayInput**](UserApi.md#createUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
9-
[**createUsersWithListInput**](UserApi.md#createUsersWithListInput) | **POST** /user/createWithList | Creates list of users with given input array
10-
[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /user/{username} | Delete user
11-
[**getUserByName**](UserApi.md#getUserByName) | **GET** /user/{username} | Get user by user name
12-
[**loginUser**](UserApi.md#loginUser) | **GET** /user/login | Logs user into the system
13-
[**logoutUser**](UserApi.md#logoutUser) | **GET** /user/logout | Logs out current logged in user session
14-
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
7+
[**createUser**](UserApi.md#createuser) | **POST** /user | Create user
8+
[**createUsersWithArrayInput**](UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
9+
[**createUsersWithListInput**](UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
10+
[**deleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
11+
[**getUserByName**](UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
12+
[**loginUser**](UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
13+
[**logoutUser**](UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
14+
[**updateUser**](UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
1515

1616
# **createUser**
1717
> createUser($body)
@@ -184,7 +184,7 @@ try {
184184

185185
Name | Type | Description | Notes
186186
------------- | ------------- | ------------- | -------------
187-
**username** | [**string**](../Model/.md)| The name that needs to be deleted |
187+
**username** | **string**| The name that needs to be deleted |
188188

189189
### Return type
190190

@@ -231,7 +231,7 @@ try {
231231

232232
Name | Type | Description | Notes
233233
------------- | ------------- | ------------- | -------------
234-
**username** | [**string**](../Model/.md)| The name that needs to be fetched. Use user1 for testing. |
234+
**username** | **string**| The name that needs to be fetched. Use user1 for testing. |
235235

236236
### Return type
237237

@@ -279,8 +279,8 @@ try {
279279

280280
Name | Type | Description | Notes
281281
------------- | ------------- | ------------- | -------------
282-
**username** | [**string**](../Model/.md)| The user name for login |
283-
**password** | [**string**](../Model/.md)| The password for login in clear text |
282+
**username** | **string**| The user name for login |
283+
**password** | **string**| The password for login in clear text |
284284

285285
### Return type
286286

@@ -372,7 +372,7 @@ try {
372372
Name | Type | Description | Notes
373373
------------- | ------------- | ------------- | -------------
374374
**body** | [**\Swagger\Client\Model\User**](../Model/User.md)| Updated user object |
375-
**username** | [**string**](../Model/.md)| name that need to be deleted |
375+
**username** | **string**| name that need to be deleted |
376376

377377
### Return type
378378

samples/client/petstore/php/SwaggerClient-php/docs/Model/AdditionalPropertiesClass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Name | Type | Description | Notes
66
**map_property** | **map[string,string]** | | [optional]
77
**map_of_map_property** | [**map[string,map[string,string]]**](map.md) | | [optional]
88

9-
[[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+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1010

samples/client/petstore/php/SwaggerClient-php/docs/Model/Animal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Name | Type | Description | Notes
66
**class_name** | **string** | |
77
**color** | **string** | | [optional] [default to 'red']
88

9-
[[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+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1010

samples/client/petstore/php/SwaggerClient-php/docs/Model/AnimalFarm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66

7-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
7+
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
88

0 commit comments

Comments
 (0)