diff --git a/modules/openapi-generator/src/main/resources/python/python_doc_auth_partial.mustache b/modules/openapi-generator/src/main/resources/python/python_doc_auth_partial.mustache index 460c2df938dd..5106632d214e 100644 --- a/modules/openapi-generator/src/main/resources/python/python_doc_auth_partial.mustache +++ b/modules/openapi-generator/src/main/resources/python/python_doc_auth_partial.mustache @@ -92,12 +92,8 @@ configuration = {{{packageName}}}.Configuration( {{#isApiKey}} # Configure API key authorization: {{{name}}} -configuration = {{{packageName}}}.Configuration( - host = "{{{basePath}}}", - api_key = { - '{{name}}': 'YOUR_API_KEY' - } -) +configuration.api_key['{{{name}}}'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['{{name}}'] = 'Bearer' {{/isApiKey}} diff --git a/samples/client/petstore/python-asyncio/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python-asyncio/docs/FakeClassnameTags123Api.md index 5e1739a561e5..66b43fb1ea11 100644 --- a/samples/client/petstore/python-asyncio/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/python-asyncio/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/client/petstore/python-asyncio/docs/PetApi.md b/samples/client/petstore/python-asyncio/docs/PetApi.md index a07c55e726d5..e8176632d088 100644 --- a/samples/client/petstore/python-asyncio/docs/PetApi.md +++ b/samples/client/petstore/python-asyncio/docs/PetApi.md @@ -335,12 +335,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' diff --git a/samples/client/petstore/python-asyncio/docs/StoreApi.md b/samples/client/petstore/python-asyncio/docs/StoreApi.md index 8d5e2178eaf5..b9dc71c38f55 100644 --- a/samples/client/petstore/python-asyncio/docs/StoreApi.md +++ b/samples/client/petstore/python-asyncio/docs/StoreApi.md @@ -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' diff --git a/samples/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md index 2aa0a68d0c91..9bf5b1babf20 100644 --- a/samples/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/client/petstore/python-experimental/docs/PetApi.md b/samples/client/petstore/python-experimental/docs/PetApi.md index f00dd3a66486..6364be448370 100644 --- a/samples/client/petstore/python-experimental/docs/PetApi.md +++ b/samples/client/petstore/python-experimental/docs/PetApi.md @@ -368,12 +368,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' diff --git a/samples/client/petstore/python-experimental/docs/StoreApi.md b/samples/client/petstore/python-experimental/docs/StoreApi.md index b8065abf64ff..30ea16d661f5 100644 --- a/samples/client/petstore/python-experimental/docs/StoreApi.md +++ b/samples/client/petstore/python-experimental/docs/StoreApi.md @@ -99,12 +99,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' diff --git a/samples/client/petstore/python-tornado/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python-tornado/docs/FakeClassnameTags123Api.md index 5e1739a561e5..66b43fb1ea11 100644 --- a/samples/client/petstore/python-tornado/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/python-tornado/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/client/petstore/python-tornado/docs/PetApi.md b/samples/client/petstore/python-tornado/docs/PetApi.md index a07c55e726d5..e8176632d088 100644 --- a/samples/client/petstore/python-tornado/docs/PetApi.md +++ b/samples/client/petstore/python-tornado/docs/PetApi.md @@ -335,12 +335,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' diff --git a/samples/client/petstore/python-tornado/docs/StoreApi.md b/samples/client/petstore/python-tornado/docs/StoreApi.md index 8d5e2178eaf5..b9dc71c38f55 100644 --- a/samples/client/petstore/python-tornado/docs/StoreApi.md +++ b/samples/client/petstore/python-tornado/docs/StoreApi.md @@ -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' diff --git a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md index 5e1739a561e5..66b43fb1ea11 100644 --- a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/client/petstore/python/docs/PetApi.md b/samples/client/petstore/python/docs/PetApi.md index a07c55e726d5..e8176632d088 100644 --- a/samples/client/petstore/python/docs/PetApi.md +++ b/samples/client/petstore/python/docs/PetApi.md @@ -335,12 +335,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' diff --git a/samples/client/petstore/python/docs/StoreApi.md b/samples/client/petstore/python/docs/StoreApi.md index 8d5e2178eaf5..b9dc71c38f55 100644 --- a/samples/client/petstore/python/docs/StoreApi.md +++ b/samples/client/petstore/python/docs/StoreApi.md @@ -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' diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/README.md b/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/README.md index 26830bc74677..9fa46ab7a8a7 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/README.md +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/README.md @@ -62,22 +62,14 @@ configuration = x_auth_id_alias.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key -configuration = x_auth_id_alias.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' # Configure API key authorization: api_key_query -configuration = x_auth_id_alias.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/docs/UsageApi.md b/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/docs/UsageApi.md index 1d6ecb07326b..cf3a8e1910fd 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/docs/UsageApi.md +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python-experimental/docs/UsageApi.md @@ -38,22 +38,14 @@ configuration = x_auth_id_alias.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key -configuration = x_auth_id_alias.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' # Configure API key authorization: api_key_query -configuration = x_auth_id_alias.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' @@ -122,22 +114,14 @@ configuration = x_auth_id_alias.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key -configuration = x_auth_id_alias.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' # Configure API key authorization: api_key_query -configuration = x_auth_id_alias.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' @@ -205,12 +189,8 @@ configuration = x_auth_id_alias.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key -configuration = x_auth_id_alias.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' @@ -278,12 +258,8 @@ configuration = x_auth_id_alias.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = x_auth_id_alias.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/openapi3/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md index 2f6730320c7d..e7a43d577d88 100644 --- a/samples/openapi3/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python-experimental/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/openapi3/client/petstore/python-experimental/docs/PetApi.md b/samples/openapi3/client/petstore/python-experimental/docs/PetApi.md index 5ba8114a4a39..21323c72c953 100644 --- a/samples/openapi3/client/petstore/python-experimental/docs/PetApi.md +++ b/samples/openapi3/client/petstore/python-experimental/docs/PetApi.md @@ -545,12 +545,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' diff --git a/samples/openapi3/client/petstore/python-experimental/docs/StoreApi.md b/samples/openapi3/client/petstore/python-experimental/docs/StoreApi.md index 5b5c30f2761f..c052c02c9b45 100644 --- a/samples/openapi3/client/petstore/python-experimental/docs/StoreApi.md +++ b/samples/openapi3/client/petstore/python-experimental/docs/StoreApi.md @@ -99,12 +99,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' diff --git a/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md index 822fd39acec9..1b02ad93eff6 100644 --- a/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/python/docs/FakeClassnameTags123Api.md @@ -35,12 +35,8 @@ configuration = petstore_api.Configuration( # satisfies your auth use case. # Configure API key authorization: api_key_query -configuration = petstore_api.Configuration( - host = "http://petstore.swagger.io:80/v2", - api_key = { - 'api_key_query': 'YOUR_API_KEY' - } -) +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' + # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['api_key_query'] = 'Bearer' diff --git a/samples/openapi3/client/petstore/python/docs/PetApi.md b/samples/openapi3/client/petstore/python/docs/PetApi.md index d64a86236a79..186933485eee 100644 --- a/samples/openapi3/client/petstore/python/docs/PetApi.md +++ b/samples/openapi3/client/petstore/python/docs/PetApi.md @@ -333,12 +333,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' diff --git a/samples/openapi3/client/petstore/python/docs/StoreApi.md b/samples/openapi3/client/petstore/python/docs/StoreApi.md index 3e6cc02faa6c..6704d5844be7 100644 --- a/samples/openapi3/client/petstore/python/docs/StoreApi.md +++ b/samples/openapi3/client/petstore/python/docs/StoreApi.md @@ -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'