github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/python/python_doc_auth_partial.mustache (about) 1 {{#hasAuthMethods}} 2 {{#authMethods}} 3 {{#isApiKey}} 4 configuration = {{{packageName}}}.Configuration() 5 configuration.api_key['{{{keyParamName}}}'] = 'YOUR_API_KEY' 6 configuration.api_key_prefix['{{{keyParamName}}}'] = 'token' 7 {{/isApiKey}} 8 {{/authMethods}} 9 {{/hasAuthMethods}}