forked from loafle/openapi-generator-original
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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user