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:
wing328
2017-03-22 20:49:06 +08:00
committed by GitHub
parent a4d4b0f0bd
commit f064d29e82
38 changed files with 54 additions and 54 deletions

View File

@@ -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,

View File

@@ -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