Remove default format (JSON) from API operations (#4987)

* remove default format (json) and update ruby petstore

* update python petstore sample

* update php petstore sample

* update android petstore sample

* update java petstore sample

* update objc sample

* remove default format (json) from perl
This commit is contained in:
wing328
2017-03-09 11:12:01 +08:00
committed by GitHub
parent b6d6356c46
commit 4fe79f0078
66 changed files with 205 additions and 384 deletions

View File

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