remove 'method' from python api

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

View File

@@ -81,8 +81,6 @@ class PetApi(object):
resource_path = '/pet'.replace('{format}', 'json')
method = 'PUT'
path_params = {}
query_params = {}
@@ -109,7 +107,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
@@ -157,8 +155,6 @@ class PetApi(object):
resource_path = '/pet'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -185,7 +181,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -233,8 +229,6 @@ class PetApi(object):
resource_path = '/pet/findByStatus'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -261,7 +255,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -309,8 +303,6 @@ class PetApi(object):
resource_path = '/pet/findByTags'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -337,7 +329,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -388,8 +380,6 @@ class PetApi(object):
raise ValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`")
resource_path = '/pet/{petId}'.replace('{format}', 'json')
method = 'GET'
path_params = {}
if 'pet_id' in params:
path_params['petId'] = params['pet_id']
@@ -416,7 +406,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['api_key', 'petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -469,8 +459,6 @@ class PetApi(object):
raise ValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`")
resource_path = '/pet/{petId}'.replace('{format}', 'json')
method = 'POST'
path_params = {}
if 'pet_id' in params:
path_params['petId'] = params['pet_id']
@@ -501,7 +489,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -553,8 +541,6 @@ class PetApi(object):
raise ValueError("Missing the required parameter `pet_id` when calling `delete_pet`")
resource_path = '/pet/{petId}'.replace('{format}', 'json')
method = 'DELETE'
path_params = {}
if 'pet_id' in params:
path_params['petId'] = params['pet_id']
@@ -583,7 +569,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
@@ -636,8 +622,6 @@ class PetApi(object):
raise ValueError("Missing the required parameter `pet_id` when calling `upload_file`")
resource_path = '/pet/{petId}/uploadImage'.replace('{format}', 'json')
method = 'POST'
path_params = {}
if 'pet_id' in params:
path_params['petId'] = params['pet_id']
@@ -668,7 +652,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -719,8 +703,6 @@ class PetApi(object):
raise ValueError("Missing the required parameter `pet_id` when calling `pet_pet_idtesting_byte_arraytrue_get`")
resource_path = '/pet/{petId}?testing_byte_array=true'.replace('{format}', 'json')
method = 'GET'
path_params = {}
if 'pet_id' in params:
path_params['petId'] = params['pet_id']
@@ -747,7 +729,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['api_key', 'petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -795,8 +777,6 @@ class PetApi(object):
resource_path = '/pet?testing_byte_array=true'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -823,7 +803,7 @@ class PetApi(object):
# Authentication setting
auth_settings = ['petstore_auth']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,

View File

@@ -81,8 +81,6 @@ class StoreApi(object):
resource_path = '/store/findByStatus'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -109,7 +107,7 @@ class StoreApi(object):
# Authentication setting
auth_settings = ['test_api_client_id', 'test_api_client_secret']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -156,8 +154,6 @@ class StoreApi(object):
resource_path = '/store/inventory'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -182,7 +178,7 @@ class StoreApi(object):
# Authentication setting
auth_settings = ['api_key']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -230,8 +226,6 @@ class StoreApi(object):
resource_path = '/store/order'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -258,7 +252,7 @@ class StoreApi(object):
# Authentication setting
auth_settings = ['test_api_client_id', 'test_api_client_secret']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -309,8 +303,6 @@ class StoreApi(object):
raise ValueError("Missing the required parameter `order_id` when calling `get_order_by_id`")
resource_path = '/store/order/{orderId}'.replace('{format}', 'json')
method = 'GET'
path_params = {}
if 'order_id' in params:
path_params['orderId'] = params['order_id']
@@ -337,7 +329,7 @@ class StoreApi(object):
# Authentication setting
auth_settings = ['test_api_key_header', 'test_api_key_query']
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -388,8 +380,6 @@ class StoreApi(object):
raise ValueError("Missing the required parameter `order_id` when calling `delete_order`")
resource_path = '/store/order/{orderId}'.replace('{format}', 'json')
method = 'DELETE'
path_params = {}
if 'order_id' in params:
path_params['orderId'] = params['order_id']
@@ -416,7 +406,7 @@ class StoreApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,

View File

@@ -81,8 +81,6 @@ class UserApi(object):
resource_path = '/user'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -109,7 +107,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -157,8 +155,6 @@ class UserApi(object):
resource_path = '/user/createWithArray'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -185,7 +181,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -233,8 +229,6 @@ class UserApi(object):
resource_path = '/user/createWithList'.replace('{format}', 'json')
method = 'POST'
path_params = {}
query_params = {}
@@ -261,7 +255,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
@@ -310,8 +304,6 @@ class UserApi(object):
resource_path = '/user/login'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -340,7 +332,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -387,8 +379,6 @@ class UserApi(object):
resource_path = '/user/logout'.replace('{format}', 'json')
method = 'GET'
path_params = {}
query_params = {}
@@ -413,7 +403,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -464,8 +454,6 @@ class UserApi(object):
raise ValueError("Missing the required parameter `username` when calling `get_user_by_name`")
resource_path = '/user/{username}'.replace('{format}', 'json')
method = 'GET'
path_params = {}
if 'username' in params:
path_params['username'] = params['username']
@@ -492,7 +480,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
@@ -544,8 +532,6 @@ class UserApi(object):
raise ValueError("Missing the required parameter `username` when calling `update_user`")
resource_path = '/user/{username}'.replace('{format}', 'json')
method = 'PUT'
path_params = {}
if 'username' in params:
path_params['username'] = params['username']
@@ -574,7 +560,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
@@ -625,8 +611,6 @@ class UserApi(object):
raise ValueError("Missing the required parameter `username` when calling `delete_user`")
resource_path = '/user/{username}'.replace('{format}', 'json')
method = 'DELETE'
path_params = {}
if 'username' in params:
path_params['username'] = params['username']
@@ -653,7 +637,7 @@ class UserApi(object):
# Authentication setting
auth_settings = []
response = self.api_client.call_api(resource_path, method,
response = self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,