@@ -24,13 +24,13 @@ Update an existing pet
24
24
25
25
26
26
27
- ### Sample
27
+ ### Example
28
28
``` perl
29
29
my $api = WWW::SwaggerClient::PetApi-> new();
30
30
my $body = WWW::SwaggerClient::Object::Pet-> new(); # [Pet] Pet object that needs to be added to the store
31
31
32
32
eval {
33
- my $result = $api -> update_pet(body => $body );
33
+ $api -> update_pet(body => $body );
34
34
};
35
35
if ($@ ) {
36
36
warn " Exception when calling update_pet: $@ \n " ;
@@ -66,13 +66,13 @@ Add a new pet to the store
66
66
67
67
68
68
69
- ### Sample
69
+ ### Example
70
70
``` perl
71
71
my $api = WWW::SwaggerClient::PetApi-> new();
72
72
my $body = WWW::SwaggerClient::Object::Pet-> new(); # [Pet] Pet object that needs to be added to the store
73
73
74
74
eval {
75
- my $result = $api -> add_pet(body => $body );
75
+ $api -> add_pet(body => $body );
76
76
};
77
77
if ($@ ) {
78
78
warn " Exception when calling add_pet: $@ \n " ;
@@ -102,13 +102,13 @@ petstore_auth
102
102
103
103
104
104
# ** find_pets_by_status**
105
- > find_pets_by_status(status => $status)
105
+ > ARRAY [ Pet ] find_pets_by_status(status => $status)
106
106
107
107
Finds Pets by status
108
108
109
109
Multiple status values can be provided with comma separated strings
110
110
111
- ### Sample
111
+ ### Example
112
112
``` perl
113
113
my $api = WWW::SwaggerClient::PetApi-> new();
114
114
my $status = (); # [ARRAY[string]] Status values that need to be considered for query
@@ -144,13 +144,13 @@ petstore_auth
144
144
145
145
146
146
# ** find_pets_by_tags**
147
- > find_pets_by_tags(tags => $tags)
147
+ > ARRAY [ Pet ] find_pets_by_tags(tags => $tags)
148
148
149
149
Finds Pets by tags
150
150
151
151
Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
152
152
153
- ### Sample
153
+ ### Example
154
154
``` perl
155
155
my $api = WWW::SwaggerClient::PetApi-> new();
156
156
my $tags = (); # [ARRAY[string]] Tags to filter by
@@ -186,13 +186,13 @@ petstore_auth
186
186
187
187
188
188
# ** get_pet_by_id**
189
- > get_pet_by_id(pet_id => $pet_id)
189
+ > Pet get_pet_by_id(pet_id => $pet_id)
190
190
191
191
Find pet by ID
192
192
193
193
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
194
194
195
- ### Sample
195
+ ### Example
196
196
``` perl
197
197
my $api = WWW::SwaggerClient::PetApi-> new();
198
198
my $pet_id = 789; # [int] ID of pet that needs to be fetched
@@ -234,15 +234,15 @@ Updates a pet in the store with form data
234
234
235
235
236
236
237
- ### Sample
237
+ ### Example
238
238
``` perl
239
239
my $api = WWW::SwaggerClient::PetApi-> new();
240
240
my $pet_id = ' pet_id_example' ; # [string] ID of pet that needs to be updated
241
241
my $name = ' name_example' ; # [string] Updated name of the pet
242
242
my $status = ' status_example' ; # [string] Updated status of the pet
243
243
244
244
eval {
245
- my $result = $api -> update_pet_with_form(pet_id => $pet_id , name => $name , status => $status );
245
+ $api -> update_pet_with_form(pet_id => $pet_id , name => $name , status => $status );
246
246
};
247
247
if ($@ ) {
248
248
warn " Exception when calling update_pet_with_form: $@ \n " ;
@@ -280,14 +280,14 @@ Deletes a pet
280
280
281
281
282
282
283
- ### Sample
283
+ ### Example
284
284
``` perl
285
285
my $api = WWW::SwaggerClient::PetApi-> new();
286
286
my $pet_id = 789; # [int] Pet id to delete
287
287
my $api_key = ' api_key_example' ; # [string]
288
288
289
289
eval {
290
- my $result = $api -> delete_pet(pet_id => $pet_id , api_key => $api_key );
290
+ $api -> delete_pet(pet_id => $pet_id , api_key => $api_key );
291
291
};
292
292
if ($@ ) {
293
293
warn " Exception when calling delete_pet: $@ \n " ;
@@ -324,15 +324,15 @@ uploads an image
324
324
325
325
326
326
327
- ### Sample
327
+ ### Example
328
328
``` perl
329
329
my $api = WWW::SwaggerClient::PetApi-> new();
330
330
my $pet_id = 789; # [int] ID of pet to update
331
331
my $additional_metadata = ' additional_metadata_example' ; # [string] Additional data to pass to server
332
332
my $file = ' /path/to/file.txt' ; # [File] file to upload
333
333
334
334
eval {
335
- my $result = $api -> upload_file(pet_id => $pet_id , additional_metadata => $additional_metadata , file => $file );
335
+ $api -> upload_file(pet_id => $pet_id , additional_metadata => $additional_metadata , file => $file );
336
336
};
337
337
if ($@ ) {
338
338
warn " Exception when calling upload_file: $@ \n " ;
@@ -364,13 +364,13 @@ petstore_auth
364
364
365
365
366
366
# ** get_pet_by_id_in_object**
367
- > get_pet_by_id_in_object(pet_id => $pet_id)
367
+ > InlineResponse200 get_pet_by_id_in_object(pet_id => $pet_id)
368
368
369
369
Fake endpoint to test inline arbitrary object return by 'Find pet by ID'
370
370
371
371
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
372
372
373
- ### Sample
373
+ ### Example
374
374
``` perl
375
375
my $api = WWW::SwaggerClient::PetApi-> new();
376
376
my $pet_id = 789; # [int] ID of pet that needs to be fetched
@@ -406,13 +406,13 @@ api_keypetstore_auth
406
406
407
407
408
408
# ** pet_pet_idtesting_byte_arraytrue_get**
409
- > pet_pet_idtesting_byte_arraytrue_get(pet_id => $pet_id)
409
+ > string pet_pet_idtesting_byte_arraytrue_get(pet_id => $pet_id)
410
410
411
411
Fake endpoint to test byte array return by 'Find pet by ID'
412
412
413
413
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions
414
414
415
- ### Sample
415
+ ### Example
416
416
``` perl
417
417
my $api = WWW::SwaggerClient::PetApi-> new();
418
418
my $pet_id = 789; # [int] ID of pet that needs to be fetched
@@ -432,7 +432,7 @@ Name | Type | Description | Notes
432
432
433
433
### Return type
434
434
435
- [ ** string** ] ( string.md )
435
+ ** string**
436
436
437
437
### HTTP headers
438
438
@@ -454,13 +454,13 @@ Fake endpoint to test byte array in body parameter for adding a new pet to the s
454
454
455
455
456
456
457
- ### Sample
457
+ ### Example
458
458
``` perl
459
459
my $api = WWW::SwaggerClient::PetApi-> new();
460
460
my $body = WWW::SwaggerClient::Object::string-> new(); # [string] Pet object in the form of byte array
461
461
462
462
eval {
463
- my $result = $api -> add_pet_using_byte_array(body => $body );
463
+ $api -> add_pet_using_byte_array(body => $body );
464
464
};
465
465
if ($@ ) {
466
466
warn " Exception when calling add_pet_using_byte_array: $@ \n " ;
0 commit comments