File tree 1 file changed +20
-6
lines changed
1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,23 @@ paths:
33
33
description : Returns a list of pets.
34
34
schema :
35
35
$ref : ' #/definitions/Pets'
36
- /pets/{pet-id} :
36
+ examples :
37
+ application/json :
38
+ [
39
+ {
40
+ id : 12345,
41
+ name : " pythagoras" ,
42
+ status : " Adopted"
43
+ },
44
+ {
45
+ id : 98765,
46
+ name : " Lassie" ,
47
+ status : " Adopted"
48
+ }
49
+ ]
50
+ /pets/{pet_id} :
37
51
parameters :
38
- - $ref : ' #/parameters/pet-id '
52
+ - $ref : ' #/parameters/pet_id '
39
53
get :
40
54
summary : Retrieve pet details
41
55
description : Get details of a pet previously registered
@@ -53,11 +67,11 @@ paths:
53
67
}
54
68
55
69
parameters :
56
- pet-id :
57
- name : pet-id
70
+ pet_id :
71
+ name : pet_id
58
72
in : path
59
73
description : Pet identifier
60
- type : number
74
+ type : integer
61
75
required : true
62
76
x-example : 42
63
77
@@ -67,7 +81,7 @@ definitions:
67
81
required : [name, status]
68
82
properties :
69
83
id :
70
- type : string
84
+ type : integer
71
85
description : Pet unique id
72
86
name :
73
87
type : string
You can’t perform that action at this time.
0 commit comments