forked from loafle/openapi-generator-original
[Python] correct return types if multiple responses are defined (#7427)
* update python mustache templates * bug fix * rm response_type * generated samples * resolve conflict * samples * set None if a type is empty * regenerated samples
This commit is contained in:
parent
48762b5d4e
commit
4e5ecf271a
@ -254,6 +254,23 @@ class {{classname}}(object):
|
||||
# Authentication setting
|
||||
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}] # noqa: E501
|
||||
|
||||
{{#returnType}}
|
||||
{{#responses}}
|
||||
{{#-first}}
|
||||
response_types_map = {
|
||||
{{/-first}}
|
||||
{{^isWildcard}}
|
||||
{{code}}: {{#dataType}}"{{dataType}}"{{/dataType}}{{^dataType}}None{{/dataType}},
|
||||
{{/isWildcard}}
|
||||
{{#-last}}
|
||||
}
|
||||
{{/-last}}
|
||||
{{/responses}}
|
||||
{{/returnType}}
|
||||
{{^returnType}}
|
||||
response_types_map = {}
|
||||
{{/returnType}}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'{{{path}}}', '{{httpMethod}}',
|
||||
path_params,
|
||||
@ -262,7 +279,7 @@ class {{classname}}(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type={{#returnType}}'{{returnType}}'{{/returnType}}{{^returnType}}None{{/returnType}}, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -130,7 +130,7 @@ class ApiClient(object):
|
||||
{{#asyncio}}async {{/asyncio}}def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
files=None, response_types_map=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
@ -214,6 +214,8 @@ class ApiClient(object):
|
||||
raise tornado.gen.Return(return_data)
|
||||
{{/tornado}}
|
||||
|
||||
response_type = response_types_map.get(response_data.status, None)
|
||||
|
||||
if six.PY3 and response_type not in ["file", "bytes"]:
|
||||
match = None
|
||||
if content_type is not None:
|
||||
@ -222,6 +224,7 @@ class ApiClient(object):
|
||||
response_data.data = response_data.data.decode(encoding)
|
||||
|
||||
# deserialize response data
|
||||
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
@ -348,10 +351,10 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
response_types_map=None, auth_settings=None,
|
||||
async_req=None, _return_http_data_only=None,
|
||||
collection_formats=None,_preload_content=True,
|
||||
_request_timeout=None, _host=None, _request_auth=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
@ -396,7 +399,7 @@ class ApiClient(object):
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
response_types_map, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host,
|
||||
_request_auth)
|
||||
@ -406,7 +409,7 @@ class ApiClient(object):
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
response_types_map,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
|
@ -154,6 +154,10 @@ class AnotherFakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/another-fake/dummy', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class AnotherFakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -150,6 +150,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/create_xml_item', 'POST',
|
||||
path_params,
|
||||
@ -158,7 +160,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -277,6 +279,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "bool",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/boolean', 'POST',
|
||||
path_params,
|
||||
@ -285,7 +291,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='bool', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -404,6 +410,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "OuterComposite",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/composite', 'POST',
|
||||
path_params,
|
||||
@ -412,7 +422,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='OuterComposite', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -531,6 +541,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "float",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/number', 'POST',
|
||||
path_params,
|
||||
@ -539,7 +553,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='float', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -658,6 +672,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/string', 'POST',
|
||||
path_params,
|
||||
@ -666,7 +684,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -789,6 +807,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-file-schema', 'PUT',
|
||||
path_params,
|
||||
@ -797,7 +817,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -929,6 +949,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-query-params', 'PUT',
|
||||
path_params,
|
||||
@ -937,7 +959,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1064,6 +1086,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'PATCH',
|
||||
path_params,
|
||||
@ -1072,7 +1098,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1326,6 +1352,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['http_basic_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'POST',
|
||||
path_params,
|
||||
@ -1334,7 +1362,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1505,6 +1533,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'GET',
|
||||
path_params,
|
||||
@ -1513,7 +1543,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1675,6 +1705,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'DELETE',
|
||||
path_params,
|
||||
@ -1683,7 +1715,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1804,6 +1836,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/inline-additionalProperties', 'POST',
|
||||
path_params,
|
||||
@ -1812,7 +1846,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1944,6 +1978,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/jsonFormData', 'GET',
|
||||
path_params,
|
||||
@ -1952,7 +1988,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -2120,6 +2156,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
path_params,
|
||||
@ -2128,7 +2166,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -154,6 +154,10 @@ class FakeClassnameTags123Api(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key_query'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake_classname_test', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class FakeClassnameTags123Api(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -148,6 +148,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'POST',
|
||||
path_params,
|
||||
@ -156,7 +158,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -280,6 +282,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'DELETE',
|
||||
path_params,
|
||||
@ -288,7 +292,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -412,6 +416,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByStatus', 'GET',
|
||||
path_params,
|
||||
@ -420,7 +429,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -544,6 +553,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByTags', 'GET',
|
||||
path_params,
|
||||
@ -552,7 +566,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -675,6 +689,12 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Pet",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'GET',
|
||||
path_params,
|
||||
@ -683,7 +703,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Pet', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -804,6 +824,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'PUT',
|
||||
path_params,
|
||||
@ -812,7 +834,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -947,6 +969,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'POST',
|
||||
path_params,
|
||||
@ -955,7 +979,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1094,6 +1118,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}/uploadImage', 'POST',
|
||||
path_params,
|
||||
@ -1102,7 +1130,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1245,6 +1273,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/{petId}/uploadImageWithRequiredFile', 'POST',
|
||||
path_params,
|
||||
@ -1253,7 +1285,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'DELETE',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -266,6 +268,10 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "dict(str, int)",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/inventory', 'GET',
|
||||
path_params,
|
||||
@ -274,7 +280,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='dict(str, int)', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -401,6 +407,12 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'GET',
|
||||
path_params,
|
||||
@ -409,7 +421,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -530,6 +542,11 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order', 'POST',
|
||||
path_params,
|
||||
@ -538,7 +555,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user', 'POST',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -271,6 +273,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithArray', 'POST',
|
||||
path_params,
|
||||
@ -279,7 +283,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -396,6 +400,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithList', 'POST',
|
||||
path_params,
|
||||
@ -404,7 +410,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -523,6 +529,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'DELETE',
|
||||
path_params,
|
||||
@ -531,7 +539,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -652,6 +660,12 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "User",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'GET',
|
||||
path_params,
|
||||
@ -660,7 +674,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='User', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -792,6 +806,11 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/login', 'GET',
|
||||
path_params,
|
||||
@ -800,7 +819,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -906,6 +925,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/logout', 'GET',
|
||||
path_params,
|
||||
@ -914,7 +935,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1044,6 +1065,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'PUT',
|
||||
path_params,
|
||||
@ -1052,7 +1075,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -121,7 +121,7 @@ class ApiClient(object):
|
||||
async def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
files=None, response_types_map=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
@ -200,6 +200,8 @@ class ApiClient(object):
|
||||
if not _preload_content:
|
||||
return return_data
|
||||
|
||||
response_type = response_types_map.get(response_data.status, None)
|
||||
|
||||
if six.PY3 and response_type not in ["file", "bytes"]:
|
||||
match = None
|
||||
if content_type is not None:
|
||||
@ -208,6 +210,7 @@ class ApiClient(object):
|
||||
response_data.data = response_data.data.decode(encoding)
|
||||
|
||||
# deserialize response data
|
||||
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
@ -325,10 +328,10 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
response_types_map=None, auth_settings=None,
|
||||
async_req=None, _return_http_data_only=None,
|
||||
collection_formats=None,_preload_content=True,
|
||||
_request_timeout=None, _host=None, _request_auth=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
@ -373,7 +376,7 @@ class ApiClient(object):
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
response_types_map, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host,
|
||||
_request_auth)
|
||||
@ -383,7 +386,7 @@ class ApiClient(object):
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
response_types_map,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
|
@ -154,6 +154,10 @@ class AnotherFakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/another-fake/dummy', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class AnotherFakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -150,6 +150,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/create_xml_item', 'POST',
|
||||
path_params,
|
||||
@ -158,7 +160,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -277,6 +279,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "bool",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/boolean', 'POST',
|
||||
path_params,
|
||||
@ -285,7 +291,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='bool', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -404,6 +410,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "OuterComposite",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/composite', 'POST',
|
||||
path_params,
|
||||
@ -412,7 +422,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='OuterComposite', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -531,6 +541,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "float",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/number', 'POST',
|
||||
path_params,
|
||||
@ -539,7 +553,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='float', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -658,6 +672,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/string', 'POST',
|
||||
path_params,
|
||||
@ -666,7 +684,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -789,6 +807,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-file-schema', 'PUT',
|
||||
path_params,
|
||||
@ -797,7 +817,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -929,6 +949,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-query-params', 'PUT',
|
||||
path_params,
|
||||
@ -937,7 +959,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1064,6 +1086,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'PATCH',
|
||||
path_params,
|
||||
@ -1072,7 +1098,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1326,6 +1352,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['http_basic_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'POST',
|
||||
path_params,
|
||||
@ -1334,7 +1362,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1505,6 +1533,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'GET',
|
||||
path_params,
|
||||
@ -1513,7 +1543,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1675,6 +1705,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'DELETE',
|
||||
path_params,
|
||||
@ -1683,7 +1715,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1804,6 +1836,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/inline-additionalProperties', 'POST',
|
||||
path_params,
|
||||
@ -1812,7 +1846,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1944,6 +1978,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/jsonFormData', 'GET',
|
||||
path_params,
|
||||
@ -1952,7 +1988,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -2120,6 +2156,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
path_params,
|
||||
@ -2128,7 +2166,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -154,6 +154,10 @@ class FakeClassnameTags123Api(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key_query'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake_classname_test', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class FakeClassnameTags123Api(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -148,6 +148,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'POST',
|
||||
path_params,
|
||||
@ -156,7 +158,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -280,6 +282,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'DELETE',
|
||||
path_params,
|
||||
@ -288,7 +292,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -412,6 +416,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByStatus', 'GET',
|
||||
path_params,
|
||||
@ -420,7 +429,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -544,6 +553,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByTags', 'GET',
|
||||
path_params,
|
||||
@ -552,7 +566,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -675,6 +689,12 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Pet",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'GET',
|
||||
path_params,
|
||||
@ -683,7 +703,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Pet', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -804,6 +824,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'PUT',
|
||||
path_params,
|
||||
@ -812,7 +834,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -947,6 +969,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'POST',
|
||||
path_params,
|
||||
@ -955,7 +979,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1094,6 +1118,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}/uploadImage', 'POST',
|
||||
path_params,
|
||||
@ -1102,7 +1130,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1245,6 +1273,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/{petId}/uploadImageWithRequiredFile', 'POST',
|
||||
path_params,
|
||||
@ -1253,7 +1285,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'DELETE',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -266,6 +268,10 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "dict(str, int)",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/inventory', 'GET',
|
||||
path_params,
|
||||
@ -274,7 +280,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='dict(str, int)', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -401,6 +407,12 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'GET',
|
||||
path_params,
|
||||
@ -409,7 +421,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -530,6 +542,11 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order', 'POST',
|
||||
path_params,
|
||||
@ -538,7 +555,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user', 'POST',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -271,6 +273,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithArray', 'POST',
|
||||
path_params,
|
||||
@ -279,7 +283,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -396,6 +400,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithList', 'POST',
|
||||
path_params,
|
||||
@ -404,7 +410,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -523,6 +529,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'DELETE',
|
||||
path_params,
|
||||
@ -531,7 +539,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -652,6 +660,12 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "User",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'GET',
|
||||
path_params,
|
||||
@ -660,7 +674,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='User', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -792,6 +806,11 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/login', 'GET',
|
||||
path_params,
|
||||
@ -800,7 +819,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -906,6 +925,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/logout', 'GET',
|
||||
path_params,
|
||||
@ -914,7 +935,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1044,6 +1065,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'PUT',
|
||||
path_params,
|
||||
@ -1052,7 +1075,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -122,7 +122,7 @@ class ApiClient(object):
|
||||
def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
files=None, response_types_map=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
@ -201,6 +201,8 @@ class ApiClient(object):
|
||||
if not _preload_content:
|
||||
raise tornado.gen.Return(return_data)
|
||||
|
||||
response_type = response_types_map.get(response_data.status, None)
|
||||
|
||||
if six.PY3 and response_type not in ["file", "bytes"]:
|
||||
match = None
|
||||
if content_type is not None:
|
||||
@ -209,6 +211,7 @@ class ApiClient(object):
|
||||
response_data.data = response_data.data.decode(encoding)
|
||||
|
||||
# deserialize response data
|
||||
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
@ -326,10 +329,10 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
response_types_map=None, auth_settings=None,
|
||||
async_req=None, _return_http_data_only=None,
|
||||
collection_formats=None,_preload_content=True,
|
||||
_request_timeout=None, _host=None, _request_auth=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
@ -374,7 +377,7 @@ class ApiClient(object):
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
response_types_map, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host,
|
||||
_request_auth)
|
||||
@ -384,7 +387,7 @@ class ApiClient(object):
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
response_types_map,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
|
@ -154,6 +154,10 @@ class AnotherFakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/another-fake/dummy', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class AnotherFakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -150,6 +150,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/create_xml_item', 'POST',
|
||||
path_params,
|
||||
@ -158,7 +160,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -277,6 +279,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "bool",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/boolean', 'POST',
|
||||
path_params,
|
||||
@ -285,7 +291,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='bool', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -404,6 +410,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "OuterComposite",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/composite', 'POST',
|
||||
path_params,
|
||||
@ -412,7 +422,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='OuterComposite', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -531,6 +541,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "float",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/number', 'POST',
|
||||
path_params,
|
||||
@ -539,7 +553,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='float', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -658,6 +672,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/string', 'POST',
|
||||
path_params,
|
||||
@ -666,7 +684,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -789,6 +807,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-file-schema', 'PUT',
|
||||
path_params,
|
||||
@ -797,7 +817,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -929,6 +949,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-query-params', 'PUT',
|
||||
path_params,
|
||||
@ -937,7 +959,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1064,6 +1086,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'PATCH',
|
||||
path_params,
|
||||
@ -1072,7 +1098,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1326,6 +1352,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['http_basic_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'POST',
|
||||
path_params,
|
||||
@ -1334,7 +1362,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1505,6 +1533,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'GET',
|
||||
path_params,
|
||||
@ -1513,7 +1543,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1675,6 +1705,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'DELETE',
|
||||
path_params,
|
||||
@ -1683,7 +1715,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1804,6 +1836,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/inline-additionalProperties', 'POST',
|
||||
path_params,
|
||||
@ -1812,7 +1846,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1944,6 +1978,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/jsonFormData', 'GET',
|
||||
path_params,
|
||||
@ -1952,7 +1988,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -2120,6 +2156,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
path_params,
|
||||
@ -2128,7 +2166,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -154,6 +154,10 @@ class FakeClassnameTags123Api(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key_query'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake_classname_test', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class FakeClassnameTags123Api(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -148,6 +148,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'POST',
|
||||
path_params,
|
||||
@ -156,7 +158,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -280,6 +282,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'DELETE',
|
||||
path_params,
|
||||
@ -288,7 +292,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -412,6 +416,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByStatus', 'GET',
|
||||
path_params,
|
||||
@ -420,7 +429,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -544,6 +553,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByTags', 'GET',
|
||||
path_params,
|
||||
@ -552,7 +566,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -675,6 +689,12 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Pet",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'GET',
|
||||
path_params,
|
||||
@ -683,7 +703,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Pet', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -804,6 +824,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'PUT',
|
||||
path_params,
|
||||
@ -812,7 +834,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -947,6 +969,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'POST',
|
||||
path_params,
|
||||
@ -955,7 +979,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1094,6 +1118,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}/uploadImage', 'POST',
|
||||
path_params,
|
||||
@ -1102,7 +1130,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1245,6 +1273,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/{petId}/uploadImageWithRequiredFile', 'POST',
|
||||
path_params,
|
||||
@ -1253,7 +1285,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'DELETE',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -266,6 +268,10 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "dict(str, int)",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/inventory', 'GET',
|
||||
path_params,
|
||||
@ -274,7 +280,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='dict(str, int)', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -401,6 +407,12 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'GET',
|
||||
path_params,
|
||||
@ -409,7 +421,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -530,6 +542,11 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order', 'POST',
|
||||
path_params,
|
||||
@ -538,7 +555,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user', 'POST',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -271,6 +273,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithArray', 'POST',
|
||||
path_params,
|
||||
@ -279,7 +283,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -396,6 +400,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithList', 'POST',
|
||||
path_params,
|
||||
@ -404,7 +410,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -523,6 +529,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'DELETE',
|
||||
path_params,
|
||||
@ -531,7 +539,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -652,6 +660,12 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "User",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'GET',
|
||||
path_params,
|
||||
@ -660,7 +674,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='User', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -792,6 +806,11 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/login', 'GET',
|
||||
path_params,
|
||||
@ -800,7 +819,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -906,6 +925,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/logout', 'GET',
|
||||
path_params,
|
||||
@ -914,7 +935,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1044,6 +1065,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'PUT',
|
||||
path_params,
|
||||
@ -1052,7 +1075,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -120,7 +120,7 @@ class ApiClient(object):
|
||||
def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
files=None, response_types_map=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
@ -199,6 +199,8 @@ class ApiClient(object):
|
||||
if not _preload_content:
|
||||
return return_data
|
||||
|
||||
response_type = response_types_map.get(response_data.status, None)
|
||||
|
||||
if six.PY3 and response_type not in ["file", "bytes"]:
|
||||
match = None
|
||||
if content_type is not None:
|
||||
@ -207,6 +209,7 @@ class ApiClient(object):
|
||||
response_data.data = response_data.data.decode(encoding)
|
||||
|
||||
# deserialize response data
|
||||
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
@ -324,10 +327,10 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
response_types_map=None, auth_settings=None,
|
||||
async_req=None, _return_http_data_only=None,
|
||||
collection_formats=None,_preload_content=True,
|
||||
_request_timeout=None, _host=None, _request_auth=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
@ -372,7 +375,7 @@ class ApiClient(object):
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
response_types_map, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host,
|
||||
_request_auth)
|
||||
@ -382,7 +385,7 @@ class ApiClient(object):
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
response_types_map,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
|
@ -154,6 +154,10 @@ class AnotherFakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/another-fake/dummy', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class AnotherFakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -137,6 +137,9 @@ class DefaultApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/foo', 'GET',
|
||||
path_params,
|
||||
@ -145,7 +148,7 @@ class DefaultApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='InlineResponseDefault', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -137,6 +137,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "HealthCheckResult",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/health', 'GET',
|
||||
path_params,
|
||||
@ -145,7 +149,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='HealthCheckResult', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -280,6 +284,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['http_signature_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/http-signature-test', 'GET',
|
||||
path_params,
|
||||
@ -288,7 +294,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -411,6 +417,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "bool",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/boolean', 'POST',
|
||||
path_params,
|
||||
@ -419,7 +429,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='bool', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -542,6 +552,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "OuterComposite",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/composite', 'POST',
|
||||
path_params,
|
||||
@ -550,7 +564,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='OuterComposite', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -673,6 +687,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "float",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/number', 'POST',
|
||||
path_params,
|
||||
@ -681,7 +699,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='float', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -804,6 +822,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/outer/string', 'POST',
|
||||
path_params,
|
||||
@ -812,7 +834,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -935,6 +957,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-file-schema', 'PUT',
|
||||
path_params,
|
||||
@ -943,7 +967,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1075,6 +1099,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/body-with-query-params', 'PUT',
|
||||
path_params,
|
||||
@ -1083,7 +1109,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1210,6 +1236,10 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'PATCH',
|
||||
path_params,
|
||||
@ -1218,7 +1248,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1472,6 +1502,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['http_basic_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'POST',
|
||||
path_params,
|
||||
@ -1480,7 +1512,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1651,6 +1683,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'GET',
|
||||
path_params,
|
||||
@ -1659,7 +1693,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1821,6 +1855,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['bearer_test'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake', 'DELETE',
|
||||
path_params,
|
||||
@ -1829,7 +1865,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1950,6 +1986,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/inline-additionalProperties', 'POST',
|
||||
path_params,
|
||||
@ -1958,7 +1996,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -2090,6 +2128,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/jsonFormData', 'GET',
|
||||
path_params,
|
||||
@ -2098,7 +2138,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -2266,6 +2306,8 @@ class FakeApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/test-query-paramters', 'PUT',
|
||||
path_params,
|
||||
@ -2274,7 +2316,7 @@ class FakeApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -154,6 +154,10 @@ class FakeClassnameTags123Api(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key_query'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Client",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake_classname_test', 'PATCH',
|
||||
path_params,
|
||||
@ -162,7 +166,7 @@ class FakeClassnameTags123Api(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Client', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -161,6 +161,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'POST',
|
||||
path_params,
|
||||
@ -169,7 +171,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -294,6 +296,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'DELETE',
|
||||
path_params,
|
||||
@ -302,7 +306,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -426,6 +430,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByStatus', 'GET',
|
||||
path_params,
|
||||
@ -434,7 +443,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -558,6 +567,11 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "list[Pet]",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/findByTags', 'GET',
|
||||
path_params,
|
||||
@ -566,7 +580,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[Pet]', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -689,6 +703,12 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Pet",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'GET',
|
||||
path_params,
|
||||
@ -697,7 +717,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Pet', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -831,6 +851,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet', 'PUT',
|
||||
path_params,
|
||||
@ -839,7 +861,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -975,6 +997,8 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}', 'POST',
|
||||
path_params,
|
||||
@ -983,7 +1007,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1122,6 +1146,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/pet/{petId}/uploadImage', 'POST',
|
||||
path_params,
|
||||
@ -1130,7 +1158,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1273,6 +1301,10 @@ class PetApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['petstore_auth'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "ApiResponse",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/fake/{petId}/uploadImageWithRequiredFile', 'POST',
|
||||
path_params,
|
||||
@ -1281,7 +1313,7 @@ class PetApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='ApiResponse', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -146,6 +146,8 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'DELETE',
|
||||
path_params,
|
||||
@ -154,7 +156,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -266,6 +268,10 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = ['api_key'] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "dict(str, int)",
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/inventory', 'GET',
|
||||
path_params,
|
||||
@ -274,7 +280,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='dict(str, int)', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -401,6 +407,12 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order/{order_id}', 'GET',
|
||||
path_params,
|
||||
@ -409,7 +421,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -534,6 +546,11 @@ class StoreApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "Order",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/store/order', 'POST',
|
||||
path_params,
|
||||
@ -542,7 +559,7 @@ class StoreApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Order', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -150,6 +150,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user', 'POST',
|
||||
path_params,
|
||||
@ -158,7 +160,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -279,6 +281,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithArray', 'POST',
|
||||
path_params,
|
||||
@ -287,7 +291,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -408,6 +412,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/createWithList', 'POST',
|
||||
path_params,
|
||||
@ -416,7 +422,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -535,6 +541,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'DELETE',
|
||||
path_params,
|
||||
@ -543,7 +551,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -664,6 +672,12 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "User",
|
||||
400: None,
|
||||
404: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'GET',
|
||||
path_params,
|
||||
@ -672,7 +686,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='User', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -804,6 +818,11 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {
|
||||
200: "str",
|
||||
400: None,
|
||||
}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/login', 'GET',
|
||||
path_params,
|
||||
@ -812,7 +831,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='str', # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -918,6 +937,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/logout', 'GET',
|
||||
path_params,
|
||||
@ -926,7 +947,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
@ -1060,6 +1081,8 @@ class UserApi(object):
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
response_types_map = {}
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/user/{username}', 'PUT',
|
||||
path_params,
|
||||
@ -1068,7 +1091,7 @@ class UserApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type=None, # noqa: E501
|
||||
response_types_map=response_types_map,
|
||||
auth_settings=auth_settings,
|
||||
async_req=local_var_params.get('async_req'),
|
||||
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
||||
|
@ -120,7 +120,7 @@ class ApiClient(object):
|
||||
def __call_api(
|
||||
self, resource_path, method, path_params=None,
|
||||
query_params=None, header_params=None, body=None, post_params=None,
|
||||
files=None, response_type=None, auth_settings=None,
|
||||
files=None, response_types_map=None, auth_settings=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
@ -199,6 +199,8 @@ class ApiClient(object):
|
||||
if not _preload_content:
|
||||
return return_data
|
||||
|
||||
response_type = response_types_map.get(response_data.status, None)
|
||||
|
||||
if six.PY3 and response_type not in ["file", "bytes"]:
|
||||
match = None
|
||||
if content_type is not None:
|
||||
@ -207,6 +209,7 @@ class ApiClient(object):
|
||||
response_data.data = response_data.data.decode(encoding)
|
||||
|
||||
# deserialize response data
|
||||
|
||||
if response_type:
|
||||
return_data = self.deserialize(response_data, response_type)
|
||||
else:
|
||||
@ -324,10 +327,10 @@ class ApiClient(object):
|
||||
def call_api(self, resource_path, method,
|
||||
path_params=None, query_params=None, header_params=None,
|
||||
body=None, post_params=None, files=None,
|
||||
response_type=None, auth_settings=None, async_req=None,
|
||||
_return_http_data_only=None, collection_formats=None,
|
||||
_preload_content=True, _request_timeout=None, _host=None,
|
||||
_request_auth=None):
|
||||
response_types_map=None, auth_settings=None,
|
||||
async_req=None, _return_http_data_only=None,
|
||||
collection_formats=None,_preload_content=True,
|
||||
_request_timeout=None, _host=None, _request_auth=None):
|
||||
"""Makes the HTTP request (synchronous) and returns deserialized data.
|
||||
|
||||
To make an async_req request, set the async_req parameter.
|
||||
@ -372,7 +375,7 @@ class ApiClient(object):
|
||||
return self.__call_api(resource_path, method,
|
||||
path_params, query_params, header_params,
|
||||
body, post_params, files,
|
||||
response_type, auth_settings,
|
||||
response_types_map, auth_settings,
|
||||
_return_http_data_only, collection_formats,
|
||||
_preload_content, _request_timeout, _host,
|
||||
_request_auth)
|
||||
@ -382,7 +385,7 @@ class ApiClient(object):
|
||||
query_params,
|
||||
header_params, body,
|
||||
post_params, files,
|
||||
response_type,
|
||||
response_types_map,
|
||||
auth_settings,
|
||||
_return_http_data_only,
|
||||
collection_formats,
|
||||
|
Loading…
x
Reference in New Issue
Block a user