1
+ apiVersion : 1.0.0
2
+ swaggerVersion : " 1.2"
3
+ basePath : " http://localhost:8002/api"
4
+ resourcePath : /pet
5
+ produces :
6
+ - application/json
7
+ - application/xml
8
+ - text/plain
9
+ - text/html
10
+ apis :
11
+ - path : " /pet/{petId}"
12
+ operations :
13
+ - method : GET
14
+ summary : Find pet by ID
15
+ notes : Returns a pet based on ID
16
+ type : Pet
17
+ nickname : getPetById
18
+ produces :
19
+ - application/json
20
+ - application/xml
21
+ authorizations :
22
+ - oauth2
23
+ parameters :
24
+ - name : petId
25
+ description : ID of pet that needs to be fetched
26
+ required : true
27
+ allowMultiple : false
28
+ type : string
29
+ paramType : path
30
+ responseMessages :
31
+ - code : 400
32
+ message : Invalid ID supplied
33
+ - code : 404
34
+ message : Pet not found
35
+ - method : DELETE
36
+ summary : Deletes a pet
37
+ notes : " "
38
+ type : void
39
+ nickname : deletePet
40
+ parameters :
41
+ - name : petId
42
+ description : Pet id to delete
43
+ required : true
44
+ allowMultiple : false
45
+ type : string
46
+ paramType : path
47
+ responseMessages :
48
+ - code : 400
49
+ message : Invalid pet value
50
+ - path : /pet
51
+ operations :
52
+ - method : POST
53
+ summary : Add a new pet to the store
54
+ notes : " "
55
+ type : void
56
+ nickname : addPet
57
+ parameters :
58
+ - name : body
59
+ description : Pet object that needs to be added to the store
60
+ required : true
61
+ allowMultiple : false
62
+ type : Pet
63
+ paramType : body
64
+ responseMessages :
65
+ - code : 405
66
+ message : Invalid input
67
+ - method : PUT
68
+ summary : Update an existing pet
69
+ notes : " "
70
+ type : void
71
+ nickname : updatePet
72
+ parameters :
73
+ - name : body
74
+ description : Pet object that needs to be updated in the store
75
+ required : true
76
+ allowMultiple : false
77
+ type : Pet
78
+ paramType : body
79
+ responseMessages :
80
+ - code : 400
81
+ message : Invalid ID supplied
82
+ - code : 404
83
+ message : Pet not found
84
+ - code : 405
85
+ message : Validation exception
86
+ - path : /pet/findByStatus
87
+ operations :
88
+ - method : GET
89
+ summary : Finds Pets by status
90
+ notes : Multiple status values can be provided with comma seperated strings
91
+ type : array
92
+ items :
93
+ $ref : Pet
94
+ nickname : findPetsByStatus
95
+ produces :
96
+ - application/json
97
+ - application/xml
98
+ parameters :
99
+ - name : status
100
+ description : Status values that need to be considered for filter
101
+ defaultValue : available
102
+ required : true
103
+ allowMultiple : true
104
+ type : string
105
+ paramType : query
106
+ enum :
107
+ - available
108
+ - pending
109
+ - sold
110
+ responseMessages :
111
+ - code : 400
112
+ message : Invalid status value
113
+ - path : /pet/findByTags
114
+ operations :
115
+ - method : GET
116
+ summary : Finds Pets by tags
117
+ notes : " Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing."
118
+ type : array
119
+ items :
120
+ $ref : Pet
121
+ nickname : findPetsByTags
122
+ produces :
123
+ - application/json
124
+ - application/xml
125
+ parameters :
126
+ - name : tags
127
+ description : Tags to filter by
128
+ required : true
129
+ allowMultiple : true
130
+ type : string
131
+ paramType : query
132
+ responseMessages :
133
+ - code : 400
134
+ message : Invalid tag value
135
+ deprecated : " true"
136
+ models :
137
+ Tag :
138
+ id : Tag
139
+ properties :
140
+ name :
141
+ type : string
142
+ id :
143
+ type : integer
144
+ format : int64
145
+ Pet :
146
+ id : Pet
147
+ description : " A pet is a person's best friend"
148
+ required :
149
+ - id
150
+ - name
151
+ properties :
152
+ id :
153
+ type : integer
154
+ format : int64
155
+ tags :
156
+ type : array
157
+ items :
158
+ $ref : Tag
159
+ name :
160
+ type : string
161
+ status :
162
+ type : string
163
+ description : pet status in the store
164
+ enum :
165
+ - available
166
+ - pending
167
+ - sold
168
+ category :
169
+ $ref : Category
170
+ photoUrls :
171
+ type : array
172
+ items :
173
+ type : string
174
+ Category :
175
+ id : Category
176
+ properties :
177
+ name :
178
+ type : string
179
+ id :
180
+ type : integer
181
+ format : int64
0 commit comments