|
29 | 29 |
|
30 | 30 | from ..util import remove_none
|
31 | 31 |
|
32 |
| -from ..swagger import ApiClient |
33 |
| - |
34 | 32 | from .. import config
|
35 | 33 |
|
36 | 34 | class PetApi(object):
|
@@ -71,12 +69,12 @@ def update_pet(self, **kwargs):
|
71 | 69 | body_params = params.get('body')
|
72 | 70 |
|
73 | 71 | # HTTP header `Accept`
|
74 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 72 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
75 | 73 | if not header_params['Accept']:
|
76 | 74 | del header_params['Accept']
|
77 | 75 |
|
78 | 76 | # HTTP header `Content-Type`
|
79 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type(['application/json', 'application/xml']) |
| 77 | + header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json', 'application/xml']) |
80 | 78 |
|
81 | 79 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
82 | 80 | body=body_params, post_params=form_params, files=files,
|
@@ -112,12 +110,12 @@ def add_pet(self, **kwargs):
|
112 | 110 | body_params = params.get('body')
|
113 | 111 |
|
114 | 112 | # HTTP header `Accept`
|
115 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 113 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
116 | 114 | if not header_params['Accept']:
|
117 | 115 | del header_params['Accept']
|
118 | 116 |
|
119 | 117 | # HTTP header `Content-Type`
|
120 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type(['application/json', 'application/xml']) |
| 118 | + header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json', 'application/xml']) |
121 | 119 |
|
122 | 120 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
123 | 121 | body=body_params, post_params=form_params, files=files,
|
@@ -153,12 +151,12 @@ def find_pets_by_status(self, **kwargs):
|
153 | 151 | body_params = None
|
154 | 152 |
|
155 | 153 | # HTTP header `Accept`
|
156 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 154 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
157 | 155 | if not header_params['Accept']:
|
158 | 156 | del header_params['Accept']
|
159 | 157 |
|
160 | 158 | # HTTP header `Content-Type`
|
161 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type([]) |
| 159 | + header_params['Content-Type'] = self.api_client.select_header_content_type([]) |
162 | 160 |
|
163 | 161 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
164 | 162 | body=body_params, post_params=form_params, files=files,
|
@@ -196,12 +194,12 @@ def find_pets_by_tags(self, **kwargs):
|
196 | 194 | body_params = None
|
197 | 195 |
|
198 | 196 | # HTTP header `Accept`
|
199 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 197 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
200 | 198 | if not header_params['Accept']:
|
201 | 199 | del header_params['Accept']
|
202 | 200 |
|
203 | 201 | # HTTP header `Content-Type`
|
204 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type([]) |
| 202 | + header_params['Content-Type'] = self.api_client.select_header_content_type([]) |
205 | 203 |
|
206 | 204 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
207 | 205 | body=body_params, post_params=form_params, files=files,
|
@@ -243,12 +241,12 @@ def get_pet_by_id(self, pet_id, **kwargs):
|
243 | 241 | body_params = None
|
244 | 242 |
|
245 | 243 | # HTTP header `Accept`
|
246 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 244 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
247 | 245 | if not header_params['Accept']:
|
248 | 246 | del header_params['Accept']
|
249 | 247 |
|
250 | 248 | # HTTP header `Content-Type`
|
251 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type([]) |
| 249 | + header_params['Content-Type'] = self.api_client.select_header_content_type([]) |
252 | 250 |
|
253 | 251 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
254 | 252 | body=body_params, post_params=form_params, files=files,
|
@@ -292,12 +290,12 @@ def update_pet_with_form(self, pet_id, **kwargs):
|
292 | 290 | body_params = None
|
293 | 291 |
|
294 | 292 | # HTTP header `Accept`
|
295 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 293 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
296 | 294 | if not header_params['Accept']:
|
297 | 295 | del header_params['Accept']
|
298 | 296 |
|
299 | 297 | # HTTP header `Content-Type`
|
300 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type(['application/x-www-form-urlencoded']) |
| 298 | + header_params['Content-Type'] = self.api_client.select_header_content_type(['application/x-www-form-urlencoded']) |
301 | 299 |
|
302 | 300 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
303 | 301 | body=body_params, post_params=form_params, files=files,
|
@@ -338,12 +336,12 @@ def delete_pet(self, pet_id, **kwargs):
|
338 | 336 | body_params = None
|
339 | 337 |
|
340 | 338 | # HTTP header `Accept`
|
341 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 339 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
342 | 340 | if not header_params['Accept']:
|
343 | 341 | del header_params['Accept']
|
344 | 342 |
|
345 | 343 | # HTTP header `Content-Type`
|
346 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type([]) |
| 344 | + header_params['Content-Type'] = self.api_client.select_header_content_type([]) |
347 | 345 |
|
348 | 346 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
349 | 347 | body=body_params, post_params=form_params, files=files,
|
@@ -385,12 +383,12 @@ def upload_file(self, pet_id, **kwargs):
|
385 | 383 | body_params = None
|
386 | 384 |
|
387 | 385 | # HTTP header `Accept`
|
388 |
| - header_params['Accept'] = ApiClient.select_header_accept(['application/json', 'application/xml']) |
| 386 | + header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml']) |
389 | 387 | if not header_params['Accept']:
|
390 | 388 | del header_params['Accept']
|
391 | 389 |
|
392 | 390 | # HTTP header `Content-Type`
|
393 |
| - header_params['Content-Type'] = ApiClient.select_header_content_type(['multipart/form-data']) |
| 391 | + header_params['Content-Type'] = self.api_client.select_header_content_type(['multipart/form-data']) |
394 | 392 |
|
395 | 393 | response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params,
|
396 | 394 | body=body_params, post_params=form_params, files=files,
|
|
0 commit comments