forked from loafle/openapi-generator-original
Use unescaped path in API client templates (#5154)
* use unescaped path in api client templates * use unescape basePath in API client templates
This commit is contained in:
@@ -210,7 +210,7 @@ class {{classname}}(object):
|
||||
# Authentication setting
|
||||
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}]
|
||||
|
||||
return self.api_client.call_api('{{path}}', '{{httpMethod}}',
|
||||
return self.api_client.call_api('{{{path}}}', '{{httpMethod}}',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
|
||||
@@ -36,7 +36,7 @@ class Configuration(object):
|
||||
Constructor
|
||||
"""
|
||||
# Default Base url
|
||||
self.host = "{{basePath}}"
|
||||
self.host = "{{{basePath}}}"
|
||||
# Default api client
|
||||
self.api_client = None
|
||||
# Temp file folder for downloading files
|
||||
|
||||
Reference in New Issue
Block a user