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

@@ -37,7 +37,7 @@ pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/r
{{/isContainer}}{{/isPrimitiveType}}{{/required}}{{/allParams}}
std::shared_ptr<ApiConfiguration> apiConfiguration( m_ApiClient->getConfiguration() );
utility::string_t path = U("{{path}}");
utility::string_t path = U("{{{path}}}");
{{#pathParams}}boost::replace_all(path, U("{") U("{{baseName}}") U("}"), ApiClient::parameterToString({{{paramName}}}));
{{/pathParams}}