Add multiple servers support to Python client (#1969)

* add multiple server support to python client

* various fixes

* minor fixes, add tests

* test oas2 python first

* fix tests

* fix issues reported by flake8

* update code format

* add python petstore to ensure up-to-date

* rearrange test

* fix E501

* fix tests

* add new files

* fix script permission

* fix index check

* update samples
This commit is contained in:
William Cheng
2019-01-28 11:24:48 +08:00
committed by GitHub
parent 887b688014
commit 7811390b7b
188 changed files with 17669 additions and 73 deletions

View File

@@ -73,9 +73,8 @@ import time
import petstore_api
from petstore_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = petstore_api.Configuration()
# Configure API key authorization: api_key
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'