[Python] Fix bug of test files about packageName

This commit is contained in:
Takuro Wada
2016-06-07 00:37:49 +09:00
parent 6a73f29cef
commit 7916f5243d
77 changed files with 258 additions and 278 deletions

View File

@@ -1,4 +1,4 @@
# swagger_client.FakeApi
# petstore_api.FakeApi
All URIs are relative to *http://petstore.swagger.io/v2*
@@ -17,12 +17,12 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.FakeApi()
api_instance = petstore_api.FakeApi()
number = 3.4 # float | None
double = 1.2 # float | None
string = 'string_example' # str | None

View File

@@ -1,4 +1,4 @@
# swagger_client.PetApi
# petstore_api.PetApi
All URIs are relative to *http://petstore.swagger.io/v2*
@@ -24,16 +24,16 @@ Add a new pet to the store
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
body = swagger_client.Pet() # Pet | Pet object that needs to be added to the store
api_instance = petstore_api.PetApi()
body = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
try:
# Add a new pet to the store
@@ -73,15 +73,15 @@ Deletes a pet
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
pet_id = 789 # int | Pet id to delete
api_key = 'api_key_example' # str | (optional)
@@ -124,15 +124,15 @@ Multiple status values can be provided with comma separated strings
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
status = ['status_example'] # list[str] | Status values that need to be considered for filter
try:
@@ -174,15 +174,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
tags = ['tags_example'] # list[str] | Tags to filter by
try:
@@ -224,17 +224,17 @@ Returns a single pet
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
petstore_api.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# petstore_api.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
pet_id = 789 # int | ID of pet to return
try:
@@ -276,16 +276,16 @@ Update an existing pet
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
body = swagger_client.Pet() # Pet | Pet object that needs to be added to the store
api_instance = petstore_api.PetApi()
body = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
try:
# Update an existing pet
@@ -325,15 +325,15 @@ Updates a pet in the store with form data
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
pet_id = 789 # int | ID of pet that needs to be updated
name = 'name_example' # str | Updated name of the pet (optional)
status = 'status_example' # str | Updated status of the pet (optional)
@@ -378,15 +378,15 @@ uploads an image
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
petstore_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.PetApi()
api_instance = petstore_api.PetApi()
pet_id = 789 # int | ID of pet to update
additional_metadata = 'additional_metadata_example' # str | Additional data to pass to server (optional)
file = '/path/to/file.txt' # file | file to upload (optional)

View File

@@ -1,4 +1,4 @@
# swagger_client.StoreApi
# petstore_api.StoreApi
All URIs are relative to *http://petstore.swagger.io/v2*
@@ -20,12 +20,12 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoreApi()
api_instance = petstore_api.StoreApi()
order_id = 'order_id_example' # str | ID of the order that needs to be deleted
try:
@@ -66,17 +66,17 @@ Returns a map of status codes to quantities
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
petstore_api.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# petstore_api.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.StoreApi()
api_instance = petstore_api.StoreApi()
try:
# Returns pet inventories by status
@@ -114,12 +114,12 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoreApi()
api_instance = petstore_api.StoreApi()
order_id = 789 # int | ID of pet that needs to be fetched
try:
@@ -161,13 +161,13 @@ Place an order for a pet
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StoreApi()
body = swagger_client.Order() # Order | order placed for purchasing the pet
api_instance = petstore_api.StoreApi()
body = petstore_api.Order() # Order | order placed for purchasing the pet
try:
# Place an order for a pet

View File

@@ -1,4 +1,4 @@
# swagger_client.UserApi
# petstore_api.UserApi
All URIs are relative to *http://petstore.swagger.io/v2*
@@ -24,13 +24,13 @@ This can only be done by the logged in user.
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
body = swagger_client.User() # User | Created user object
api_instance = petstore_api.UserApi()
body = petstore_api.User() # User | Created user object
try:
# Create user
@@ -70,13 +70,13 @@ Creates list of users with given input array
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
body = [swagger_client.User()] # list[User] | List of user object
api_instance = petstore_api.UserApi()
body = [petstore_api.User()] # list[User] | List of user object
try:
# Creates list of users with given input array
@@ -116,13 +116,13 @@ Creates list of users with given input array
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
body = [swagger_client.User()] # list[User] | List of user object
api_instance = petstore_api.UserApi()
body = [petstore_api.User()] # list[User] | List of user object
try:
# Creates list of users with given input array
@@ -162,12 +162,12 @@ This can only be done by the logged in user.
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
api_instance = petstore_api.UserApi()
username = 'username_example' # str | The name that needs to be deleted
try:
@@ -208,12 +208,12 @@ Get user by user name
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
api_instance = petstore_api.UserApi()
username = 'username_example' # str | The name that needs to be fetched. Use user1 for testing.
try:
@@ -255,12 +255,12 @@ Logs user into the system
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
api_instance = petstore_api.UserApi()
username = 'username_example' # str | The user name for login
password = 'password_example' # str | The password for login in clear text
@@ -304,12 +304,12 @@ Logs out current logged in user session
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
api_instance = petstore_api.UserApi()
try:
# Logs out current logged in user session
@@ -346,14 +346,14 @@ This can only be done by the logged in user.
### Example
```python
import time
import swagger_client
from swagger_client.rest import ApiException
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.UserApi()
api_instance = petstore_api.UserApi()
username = 'username_example' # str | name that need to be deleted
body = swagger_client.User() # User | Updated user object
body = petstore_api.User() # User | Updated user object
try:
# Updated user