update python petstore samples

This commit is contained in:
wing328
2018-02-22 20:59:45 +08:00
parent edf6be8c07
commit b4827beba4
31 changed files with 574 additions and 28 deletions

View File

@@ -273,10 +273,10 @@ configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = petstore_api.FakeApi(petstore_api.ApiClient(configuration))
number = 3.4 # float | None
number = 8.14 # float | None
double = 1.2 # float | None
pattern_without_delimiter = 'pattern_without_delimiter_example' # str | None
byte = 'byte_example' # str | None
byte = 'B' # str | None
integer = 56 # int | None (optional)
int32 = 56 # int | None (optional)
int64 = 789 # int | None (optional)

View File

@@ -12,6 +12,8 @@ Method | HTTP request | Description
To test class name in snake case
To test class name in snake case
### Example
```python
from __future__ import print_function

View File

@@ -219,7 +219,7 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.UserApi()
username = 'username_example' # str | The name that needs to be fetched. Use user1 for testing.
username = 'username_example' # str | The name that needs to be fetched. Use user1 for testing.
try:
# Get user by user name
@@ -233,7 +233,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **str**| The name that needs to be fetched. Use user1 for testing. |
**username** | **str**| The name that needs to be fetched. Use user1 for testing. |
### Return type