Support multiple api keys in python example documentation (#7417)

* Support multiple api keys in config option

* Regenerate samples

* Update rest of examples
This commit is contained in:
Nicholas Muesch
2020-09-15 16:40:48 -04:00
committed by GitHub
parent be40dbe540
commit 32c591d9a7
21 changed files with 54 additions and 162 deletions

View File

@@ -100,12 +100,8 @@ configuration = petstore_api.Configuration(
# satisfies your auth use case.
# Configure API key authorization: api_key
configuration = petstore_api.Configuration(
host = "http://petstore.swagger.io:80/v2",
api_key = {
'api_key': 'YOUR_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'