remove 'method' from python api

This commit is contained in:
wing328
2016-02-28 16:51:50 +08:00
parent f68e93c662
commit 742e3f5070
5 changed files with 25 additions and 73 deletions

View File

@@ -97,8 +97,6 @@ class {{classname}}(object):
{{/allParams}}
resource_path = '{{path}}'.replace('{format}', 'json')
method = '{{httpMethod}}'
path_params = {}
{{#pathParams}}
if '{{paramName}}' in params:
@@ -143,7 +141,7 @@ class {{classname}}(object):
# Authentication setting
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}]
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, '{{httpMethod}}',
path_params,
query_params,
header_params,