1
- # swagger_client .PetApi
1
+ # petstore_api .PetApi
2
2
3
3
All URIs are relative to * http://petstore.swagger.io/v2 *
4
4
@@ -24,16 +24,16 @@ Add a new pet to the store
24
24
### Example
25
25
``` python
26
26
import time
27
- import swagger_client
28
- from swagger_client .rest import ApiException
27
+ import petstore_api
28
+ from petstore_api .rest import ApiException
29
29
from pprint import pprint
30
30
31
31
# Configure OAuth2 access token for authorization: petstore_auth
32
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
32
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
33
33
34
34
# create an instance of the API class
35
- api_instance = swagger_client .PetApi()
36
- body = swagger_client .Pet() # Pet | Pet object that needs to be added to the store
35
+ api_instance = petstore_api .PetApi()
36
+ body = petstore_api .Pet() # Pet | Pet object that needs to be added to the store
37
37
38
38
try :
39
39
# Add a new pet to the store
@@ -73,15 +73,15 @@ Deletes a pet
73
73
### Example
74
74
``` python
75
75
import time
76
- import swagger_client
77
- from swagger_client .rest import ApiException
76
+ import petstore_api
77
+ from petstore_api .rest import ApiException
78
78
from pprint import pprint
79
79
80
80
# Configure OAuth2 access token for authorization: petstore_auth
81
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
81
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
82
82
83
83
# create an instance of the API class
84
- api_instance = swagger_client .PetApi()
84
+ api_instance = petstore_api .PetApi()
85
85
pet_id = 789 # int | Pet id to delete
86
86
api_key = ' api_key_example' # str | (optional)
87
87
@@ -124,15 +124,15 @@ Multiple status values can be provided with comma separated strings
124
124
### Example
125
125
``` python
126
126
import time
127
- import swagger_client
128
- from swagger_client .rest import ApiException
127
+ import petstore_api
128
+ from petstore_api .rest import ApiException
129
129
from pprint import pprint
130
130
131
131
# Configure OAuth2 access token for authorization: petstore_auth
132
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
132
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
133
133
134
134
# create an instance of the API class
135
- api_instance = swagger_client .PetApi()
135
+ api_instance = petstore_api .PetApi()
136
136
status = [' status_example' ] # list[str] | Status values that need to be considered for filter
137
137
138
138
try :
@@ -174,15 +174,15 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
174
174
### Example
175
175
``` python
176
176
import time
177
- import swagger_client
178
- from swagger_client .rest import ApiException
177
+ import petstore_api
178
+ from petstore_api .rest import ApiException
179
179
from pprint import pprint
180
180
181
181
# Configure OAuth2 access token for authorization: petstore_auth
182
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
182
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
183
183
184
184
# create an instance of the API class
185
- api_instance = swagger_client .PetApi()
185
+ api_instance = petstore_api .PetApi()
186
186
tags = [' tags_example' ] # list[str] | Tags to filter by
187
187
188
188
try :
@@ -224,17 +224,17 @@ Returns a single pet
224
224
### Example
225
225
``` python
226
226
import time
227
- import swagger_client
228
- from swagger_client .rest import ApiException
227
+ import petstore_api
228
+ from petstore_api .rest import ApiException
229
229
from pprint import pprint
230
230
231
231
# Configure API key authorization: api_key
232
- swagger_client .configuration.api_key[' api_key' ] = ' YOUR_API_KEY'
232
+ petstore_api .configuration.api_key[' api_key' ] = ' YOUR_API_KEY'
233
233
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
234
- # swagger_client .configuration.api_key_prefix['api_key'] = 'Bearer'
234
+ # petstore_api .configuration.api_key_prefix['api_key'] = 'Bearer'
235
235
236
236
# create an instance of the API class
237
- api_instance = swagger_client .PetApi()
237
+ api_instance = petstore_api .PetApi()
238
238
pet_id = 789 # int | ID of pet to return
239
239
240
240
try :
@@ -276,16 +276,16 @@ Update an existing pet
276
276
### Example
277
277
``` python
278
278
import time
279
- import swagger_client
280
- from swagger_client .rest import ApiException
279
+ import petstore_api
280
+ from petstore_api .rest import ApiException
281
281
from pprint import pprint
282
282
283
283
# Configure OAuth2 access token for authorization: petstore_auth
284
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
284
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
285
285
286
286
# create an instance of the API class
287
- api_instance = swagger_client .PetApi()
288
- body = swagger_client .Pet() # Pet | Pet object that needs to be added to the store
287
+ api_instance = petstore_api .PetApi()
288
+ body = petstore_api .Pet() # Pet | Pet object that needs to be added to the store
289
289
290
290
try :
291
291
# Update an existing pet
@@ -325,15 +325,15 @@ Updates a pet in the store with form data
325
325
### Example
326
326
``` python
327
327
import time
328
- import swagger_client
329
- from swagger_client .rest import ApiException
328
+ import petstore_api
329
+ from petstore_api .rest import ApiException
330
330
from pprint import pprint
331
331
332
332
# Configure OAuth2 access token for authorization: petstore_auth
333
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
333
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
334
334
335
335
# create an instance of the API class
336
- api_instance = swagger_client .PetApi()
336
+ api_instance = petstore_api .PetApi()
337
337
pet_id = 789 # int | ID of pet that needs to be updated
338
338
name = ' name_example' # str | Updated name of the pet (optional)
339
339
status = ' status_example' # str | Updated status of the pet (optional)
@@ -378,15 +378,15 @@ uploads an image
378
378
### Example
379
379
``` python
380
380
import time
381
- import swagger_client
382
- from swagger_client .rest import ApiException
381
+ import petstore_api
382
+ from petstore_api .rest import ApiException
383
383
from pprint import pprint
384
384
385
385
# Configure OAuth2 access token for authorization: petstore_auth
386
- swagger_client .configuration.access_token = ' YOUR_ACCESS_TOKEN'
386
+ petstore_api .configuration.access_token = ' YOUR_ACCESS_TOKEN'
387
387
388
388
# create an instance of the API class
389
- api_instance = swagger_client .PetApi()
389
+ api_instance = petstore_api .PetApi()
390
390
pet_id = 789 # int | ID of pet to update
391
391
additional_metadata = ' additional_metadata_example' # str | Additional data to pass to server (optional)
392
392
file = ' /path/to/file.txt' # file | file to upload (optional)
0 commit comments