forked from loafle/openapi-generator-original
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user