forked from loafle/openapi-generator-original
fixed wrong intendation error (#11834)
This commit is contained in:
parent
a4e1717fd2
commit
7ed7930bab
@ -19,7 +19,8 @@ from {{apiPackage}} import {{classFilename}}
|
||||
with {{{packageName}}}.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = {{classFilename}}.{{{classname}}}(api_client)
|
||||
{{#allParams}}{{paramName}} = {{{example}}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
|
||||
{{#allParams}}
|
||||
{{paramName}} = {{{example}}} # {{{dataType}}} | {{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
|
||||
{{/allParams}}
|
||||
|
||||
try:
|
||||
|
@ -78,7 +78,7 @@ configuration.api_key['api_key_query'] = 'YOUR_API_KEY'
|
||||
with x_auth_id_alias.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = usage_api.UsageApi(api_client)
|
||||
|
||||
|
||||
try:
|
||||
# Use any API key
|
||||
api_response = api_instance.any_key()
|
||||
|
@ -62,7 +62,7 @@ configuration = dynamic_servers.Configuration(
|
||||
with dynamic_servers.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = usage_api.UsageApi(api_client)
|
||||
|
||||
|
||||
try:
|
||||
# Use custom server
|
||||
api_response = api_instance.custom_server()
|
||||
|
Loading…
x
Reference in New Issue
Block a user