forked from loafle/openapi-generator-original
updated python client samples
This commit is contained in:
parent
52807c0724
commit
8a311d693b
BIN
samples/client/petstore/python/SwaggerPetstore-python/.coverage
Normal file
BIN
samples/client/petstore/python/SwaggerPetstore-python/.coverage
Normal file
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
Metadata-Version: 1.0
|
||||
Name: SwaggerPetstore
|
||||
Version: 1.0.0
|
||||
Summary: Swagger Petstore
|
||||
Home-page: UNKNOWN
|
||||
Author: UNKNOWN
|
||||
Author-email: apiteam@wordnik.com
|
||||
License: UNKNOWN
|
||||
Description: This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||
|
||||
Keywords: Swagger,Swagger Petstore
|
||||
Platform: UNKNOWN
|
@ -0,0 +1,24 @@
|
||||
setup.cfg
|
||||
setup.py
|
||||
SwaggerPetstore/__init__.py
|
||||
SwaggerPetstore/rest.py
|
||||
SwaggerPetstore/swagger.py
|
||||
SwaggerPetstore/util.py
|
||||
SwaggerPetstore.egg-info/PKG-INFO
|
||||
SwaggerPetstore.egg-info/SOURCES.txt
|
||||
SwaggerPetstore.egg-info/dependency_links.txt
|
||||
SwaggerPetstore.egg-info/pbr.json
|
||||
SwaggerPetstore.egg-info/requires.txt
|
||||
SwaggerPetstore.egg-info/top_level.txt
|
||||
SwaggerPetstore/apis/__init__.py
|
||||
SwaggerPetstore/apis/pet_api.py
|
||||
SwaggerPetstore/apis/store_api.py
|
||||
SwaggerPetstore/apis/user_api.py
|
||||
SwaggerPetstore/models/__init__.py
|
||||
SwaggerPetstore/models/category.py
|
||||
SwaggerPetstore/models/order.py
|
||||
SwaggerPetstore/models/pet.py
|
||||
SwaggerPetstore/models/tag.py
|
||||
SwaggerPetstore/models/user.py
|
||||
tests/__init__.py
|
||||
tests/test_pet_api.py
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
{"is_release": false, "git_version": "52807c0"}
|
@ -0,0 +1,2 @@
|
||||
urllib3 >= 1.10
|
||||
six >= 1.9
|
@ -0,0 +1,2 @@
|
||||
SwaggerPetstore
|
||||
tests
|
@ -238,18 +238,13 @@ class PetApi(object):
|
||||
body_params = None
|
||||
|
||||
# HTTP header `Accept`
|
||||
accepts = []
|
||||
accepts = ['application/json', 'application/xml']
|
||||
header_params['Accept'] = ApiClient.select_header_accept(accepts)
|
||||
|
||||
# HTTP header `Content-Type`
|
||||
content_types = []
|
||||
header_params['Content-Type'] = ApiClient.select_header_content_type(content_types)
|
||||
|
||||
print('-----------------------------')
|
||||
print('header_params: ', header_params)
|
||||
print('-----------------------------')
|
||||
return
|
||||
|
||||
response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
||||
body=body_params, post_params=form_params, files=files,
|
||||
response='Pet')
|
||||
|
@ -0,0 +1,5 @@
|
||||
Requirement already satisfied (use --upgrade to upgrade): nose in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 1))
|
||||
Requirement already satisfied (use --upgrade to upgrade): tox in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 2))
|
||||
Requirement already satisfied (use --upgrade to upgrade): coverage in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 3))
|
||||
Requirement already satisfied (use --upgrade to upgrade): randomize in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 4))
|
||||
Cleaning up...
|
Loading…
x
Reference in New Issue
Block a user