api-render-ui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/Readme.md +79 -0
- package/api-render-ui.css +20 -4
- package/api-render-ui.js +622 -158
- package/package.json +16 -5
- package/test.html +1124 -123
package/test.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<!-- 引入库代码(假设库文件为api-render-ui.js) -->
|
|
14
14
|
<script src="./api-render-ui.js"></script>
|
|
15
15
|
|
|
16
|
-
<script
|
|
16
|
+
<script>
|
|
17
17
|
// 初始化渲染器(ES6模块方式)
|
|
18
18
|
// import ApiRenderer from './api-render-ui.js';
|
|
19
19
|
|
|
@@ -24,231 +24,1232 @@
|
|
|
24
24
|
|
|
25
25
|
// 示例数据
|
|
26
26
|
const openapiSpec = {
|
|
27
|
-
"openapi": "3.
|
|
27
|
+
"openapi": "3.0.3",
|
|
28
28
|
"info": {
|
|
29
|
-
"title": "
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"termsOfService": "http://example.com/terms/",
|
|
29
|
+
"title": "Swagger Petstore - OpenAPI 3.0",
|
|
30
|
+
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\n_If you're looking for the Swagger 2.0/OAS 2.0 version of Petstore, then click [here](https://editor.swagger.io/?url=https://petstore.swagger.io/v2/swagger.yaml). Alternatively, you can load via the `Edit > Load Petstore OAS 2.0` menu option!_\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)",
|
|
31
|
+
"termsOfService": "http://swagger.io/terms/",
|
|
33
32
|
"contact": {
|
|
34
|
-
"
|
|
35
|
-
"url": "http://x-force.example.com/contact/",
|
|
36
|
-
"email": "dp@x-force.example.com"
|
|
33
|
+
"email": "apiteam@swagger.io"
|
|
37
34
|
},
|
|
38
35
|
"license": {
|
|
39
36
|
"name": "Apache 2.0",
|
|
40
|
-
"url": "
|
|
37
|
+
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
41
38
|
},
|
|
42
|
-
"version": "
|
|
39
|
+
"version": "1.0.11"
|
|
43
40
|
},
|
|
41
|
+
"externalDocs": {
|
|
42
|
+
"description": "Find out more about Swagger",
|
|
43
|
+
"url": "http://swagger.io"
|
|
44
|
+
},
|
|
45
|
+
"servers": [
|
|
46
|
+
{
|
|
47
|
+
"url": "https://petstore3.swagger.io/api/v3"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"tags": [
|
|
51
|
+
{
|
|
52
|
+
"name": "pet",
|
|
53
|
+
"description": "Everything about your Pets",
|
|
54
|
+
"externalDocs": {
|
|
55
|
+
"description": "Find out more",
|
|
56
|
+
"url": "http://swagger.io"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "store",
|
|
61
|
+
"description": "Access to Petstore orders",
|
|
62
|
+
"externalDocs": {
|
|
63
|
+
"description": "Find out more about our store",
|
|
64
|
+
"url": "http://swagger.io"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "user",
|
|
69
|
+
"description": "Operations about user"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
44
72
|
"paths": {
|
|
45
|
-
"/
|
|
73
|
+
"/pet": {
|
|
74
|
+
"put": {
|
|
75
|
+
"tags": [
|
|
76
|
+
"pet"
|
|
77
|
+
],
|
|
78
|
+
"summary": "Update an existing pet",
|
|
79
|
+
"description": "Update an existing pet by Id",
|
|
80
|
+
"operationId": "updatePet",
|
|
81
|
+
"requestBody": {
|
|
82
|
+
"description": "Update an existent pet in the store",
|
|
83
|
+
"content": {
|
|
84
|
+
"application/json": {
|
|
85
|
+
"schema": {
|
|
86
|
+
"$ref": "#/components/schemas/Pet"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"application/xml": {
|
|
90
|
+
"schema": {
|
|
91
|
+
"$ref": "#/components/schemas/Pet"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"application/x-www-form-urlencoded": {
|
|
95
|
+
"schema": {
|
|
96
|
+
"$ref": "#/components/schemas/Pet"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": true
|
|
101
|
+
},
|
|
102
|
+
"responses": {
|
|
103
|
+
"200": {
|
|
104
|
+
"description": "Successful operation",
|
|
105
|
+
"content": {
|
|
106
|
+
"application/json": {
|
|
107
|
+
"schema": {
|
|
108
|
+
"$ref": "#/components/schemas/Pet"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"application/xml": {
|
|
112
|
+
"schema": {
|
|
113
|
+
"$ref": "#/components/schemas/Pet"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"400": {
|
|
119
|
+
"description": "Invalid ID supplied"
|
|
120
|
+
},
|
|
121
|
+
"404": {
|
|
122
|
+
"description": "Pet not found"
|
|
123
|
+
},
|
|
124
|
+
"422": {
|
|
125
|
+
"description": "Validation exception"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"security": [
|
|
129
|
+
{
|
|
130
|
+
"petstore_auth": [
|
|
131
|
+
"write:pets",
|
|
132
|
+
"read:pets"
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"post": {
|
|
138
|
+
"tags": [
|
|
139
|
+
"pet"
|
|
140
|
+
],
|
|
141
|
+
"summary": "Add a new pet to the store",
|
|
142
|
+
"description": "Add a new pet to the store",
|
|
143
|
+
"operationId": "addPet",
|
|
144
|
+
"requestBody": {
|
|
145
|
+
"description": "Create a new pet in the store",
|
|
146
|
+
"content": {
|
|
147
|
+
"application/json": {
|
|
148
|
+
"schema": {
|
|
149
|
+
"$ref": "#/components/schemas/Pet"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"application/xml": {
|
|
153
|
+
"schema": {
|
|
154
|
+
"$ref": "#/components/schemas/Pet"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"application/x-www-form-urlencoded": {
|
|
158
|
+
"schema": {
|
|
159
|
+
"$ref": "#/components/schemas/Pet"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": true
|
|
164
|
+
},
|
|
165
|
+
"responses": {
|
|
166
|
+
"200": {
|
|
167
|
+
"description": "Successful operation",
|
|
168
|
+
"content": {
|
|
169
|
+
"application/json": {
|
|
170
|
+
"schema": {
|
|
171
|
+
"$ref": "#/components/schemas/Pet"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"application/xml": {
|
|
175
|
+
"schema": {
|
|
176
|
+
"$ref": "#/components/schemas/Pet"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"400": {
|
|
182
|
+
"description": "Invalid input"
|
|
183
|
+
},
|
|
184
|
+
"422": {
|
|
185
|
+
"description": "Validation exception"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"security": [
|
|
189
|
+
{
|
|
190
|
+
"petstore_auth": [
|
|
191
|
+
"write:pets",
|
|
192
|
+
"read:pets"
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"/pet/findByStatus": {
|
|
199
|
+
"get": {
|
|
200
|
+
"tags": [
|
|
201
|
+
"pet"
|
|
202
|
+
],
|
|
203
|
+
"summary": "Finds Pets by status",
|
|
204
|
+
"description": "Multiple status values can be provided with comma separated strings",
|
|
205
|
+
"operationId": "findPetsByStatus",
|
|
206
|
+
"parameters": [
|
|
207
|
+
{
|
|
208
|
+
"name": "status",
|
|
209
|
+
"in": "query",
|
|
210
|
+
"description": "Status values that need to be considered for filter",
|
|
211
|
+
"required": false,
|
|
212
|
+
"explode": true,
|
|
213
|
+
"schema": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"default": "available",
|
|
216
|
+
"enum": [
|
|
217
|
+
"available",
|
|
218
|
+
"pending",
|
|
219
|
+
"sold"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"responses": {
|
|
225
|
+
"200": {
|
|
226
|
+
"description": "successful operation",
|
|
227
|
+
"content": {
|
|
228
|
+
"application/json": {
|
|
229
|
+
"schema": {
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "#/components/schemas/Pet"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"application/xml": {
|
|
237
|
+
"schema": {
|
|
238
|
+
"type": "array",
|
|
239
|
+
"items": {
|
|
240
|
+
"$ref": "#/components/schemas/Pet"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"400": {
|
|
247
|
+
"description": "Invalid status value"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"security": [
|
|
251
|
+
{
|
|
252
|
+
"petstore_auth": [
|
|
253
|
+
"write:pets",
|
|
254
|
+
"read:pets"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"/pet/findByTags": {
|
|
261
|
+
"get": {
|
|
262
|
+
"tags": [
|
|
263
|
+
"pet"
|
|
264
|
+
],
|
|
265
|
+
"summary": "Finds Pets by tags",
|
|
266
|
+
"description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
|
|
267
|
+
"operationId": "findPetsByTags",
|
|
268
|
+
"parameters": [
|
|
269
|
+
{
|
|
270
|
+
"name": "tags",
|
|
271
|
+
"in": "query",
|
|
272
|
+
"description": "Tags to filter by",
|
|
273
|
+
"required": false,
|
|
274
|
+
"explode": true,
|
|
275
|
+
"schema": {
|
|
276
|
+
"type": "array",
|
|
277
|
+
"items": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"responses": {
|
|
284
|
+
"200": {
|
|
285
|
+
"description": "successful operation",
|
|
286
|
+
"content": {
|
|
287
|
+
"application/json": {
|
|
288
|
+
"schema": {
|
|
289
|
+
"type": "array",
|
|
290
|
+
"items": {
|
|
291
|
+
"$ref": "#/components/schemas/Pet"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"application/xml": {
|
|
296
|
+
"schema": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"$ref": "#/components/schemas/Pet"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"400": {
|
|
306
|
+
"description": "Invalid tag value"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"security": [
|
|
310
|
+
{
|
|
311
|
+
"petstore_auth": [
|
|
312
|
+
"write:pets",
|
|
313
|
+
"read:pets"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"/pet/{petId}": {
|
|
320
|
+
"get": {
|
|
321
|
+
"tags": [
|
|
322
|
+
"pet"
|
|
323
|
+
],
|
|
324
|
+
"summary": "Find pet by ID",
|
|
325
|
+
"description": "Returns a single pet",
|
|
326
|
+
"operationId": "getPetById",
|
|
327
|
+
"parameters": [
|
|
328
|
+
{
|
|
329
|
+
"name": "petId",
|
|
330
|
+
"in": "path",
|
|
331
|
+
"description": "ID of pet to return",
|
|
332
|
+
"required": true,
|
|
333
|
+
"schema": {
|
|
334
|
+
"type": "integer",
|
|
335
|
+
"format": "int64"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"responses": {
|
|
340
|
+
"200": {
|
|
341
|
+
"description": "successful operation",
|
|
342
|
+
"content": {
|
|
343
|
+
"application/json": {
|
|
344
|
+
"schema": {
|
|
345
|
+
"$ref": "#/components/schemas/Pet"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"application/xml": {
|
|
349
|
+
"schema": {
|
|
350
|
+
"$ref": "#/components/schemas/Pet"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"400": {
|
|
356
|
+
"description": "Invalid ID supplied"
|
|
357
|
+
},
|
|
358
|
+
"404": {
|
|
359
|
+
"description": "Pet not found"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"security": [
|
|
363
|
+
{
|
|
364
|
+
"api_key": []
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"petstore_auth": [
|
|
368
|
+
"write:pets",
|
|
369
|
+
"read:pets"
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
"post": {
|
|
375
|
+
"tags": [
|
|
376
|
+
"pet"
|
|
377
|
+
],
|
|
378
|
+
"summary": "Updates a pet in the store with form data",
|
|
379
|
+
"description": "",
|
|
380
|
+
"operationId": "updatePetWithForm",
|
|
381
|
+
"parameters": [
|
|
382
|
+
{
|
|
383
|
+
"name": "petId",
|
|
384
|
+
"in": "path",
|
|
385
|
+
"description": "ID of pet that needs to be updated",
|
|
386
|
+
"required": true,
|
|
387
|
+
"schema": {
|
|
388
|
+
"type": "integer",
|
|
389
|
+
"format": "int64"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "name",
|
|
394
|
+
"in": "query",
|
|
395
|
+
"description": "Name of pet that needs to be updated",
|
|
396
|
+
"schema": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "status",
|
|
402
|
+
"in": "query",
|
|
403
|
+
"description": "Status of pet that needs to be updated",
|
|
404
|
+
"schema": {
|
|
405
|
+
"type": "string"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"responses": {
|
|
410
|
+
"400": {
|
|
411
|
+
"description": "Invalid input"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"security": [
|
|
415
|
+
{
|
|
416
|
+
"petstore_auth": [
|
|
417
|
+
"write:pets",
|
|
418
|
+
"read:pets"
|
|
419
|
+
]
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"delete": {
|
|
424
|
+
"tags": [
|
|
425
|
+
"pet"
|
|
426
|
+
],
|
|
427
|
+
"summary": "Deletes a pet",
|
|
428
|
+
"description": "delete a pet",
|
|
429
|
+
"operationId": "deletePet",
|
|
430
|
+
"parameters": [
|
|
431
|
+
{
|
|
432
|
+
"name": "api_key",
|
|
433
|
+
"in": "header",
|
|
434
|
+
"description": "",
|
|
435
|
+
"required": false,
|
|
436
|
+
"schema": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "petId",
|
|
442
|
+
"in": "path",
|
|
443
|
+
"description": "Pet id to delete",
|
|
444
|
+
"required": true,
|
|
445
|
+
"schema": {
|
|
446
|
+
"type": "integer",
|
|
447
|
+
"format": "int64"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"responses": {
|
|
452
|
+
"400": {
|
|
453
|
+
"description": "Invalid pet value"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"security": [
|
|
457
|
+
{
|
|
458
|
+
"petstore_auth": [
|
|
459
|
+
"write:pets",
|
|
460
|
+
"read:pets"
|
|
461
|
+
]
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"/pet/{petId}/uploadImage": {
|
|
467
|
+
"post": {
|
|
468
|
+
"tags": [
|
|
469
|
+
"pet"
|
|
470
|
+
],
|
|
471
|
+
"summary": "uploads an image",
|
|
472
|
+
"description": "",
|
|
473
|
+
"operationId": "uploadFile",
|
|
474
|
+
"parameters": [
|
|
475
|
+
{
|
|
476
|
+
"name": "petId",
|
|
477
|
+
"in": "path",
|
|
478
|
+
"description": "ID of pet to update",
|
|
479
|
+
"required": true,
|
|
480
|
+
"schema": {
|
|
481
|
+
"type": "integer",
|
|
482
|
+
"format": "int64"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "additionalMetadata",
|
|
487
|
+
"in": "query",
|
|
488
|
+
"description": "Additional Metadata",
|
|
489
|
+
"required": false,
|
|
490
|
+
"schema": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"requestBody": {
|
|
496
|
+
"content": {
|
|
497
|
+
"application/octet-stream": {
|
|
498
|
+
"schema": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"format": "binary"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"responses": {
|
|
506
|
+
"200": {
|
|
507
|
+
"description": "successful operation",
|
|
508
|
+
"content": {
|
|
509
|
+
"application/json": {
|
|
510
|
+
"schema": {
|
|
511
|
+
"$ref": "#/components/schemas/ApiResponse"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"security": [
|
|
518
|
+
{
|
|
519
|
+
"petstore_auth": [
|
|
520
|
+
"write:pets",
|
|
521
|
+
"read:pets"
|
|
522
|
+
]
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"/store/inventory": {
|
|
46
528
|
"get": {
|
|
47
|
-
"
|
|
48
|
-
|
|
529
|
+
"tags": [
|
|
530
|
+
"store"
|
|
531
|
+
],
|
|
532
|
+
"summary": "Returns pet inventories by status",
|
|
533
|
+
"description": "Returns a map of status codes to quantities",
|
|
534
|
+
"operationId": "getInventory",
|
|
535
|
+
"responses": {
|
|
536
|
+
"200": {
|
|
537
|
+
"description": "successful operation",
|
|
538
|
+
"content": {
|
|
539
|
+
"application/json": {
|
|
540
|
+
"schema": {
|
|
541
|
+
"type": "object",
|
|
542
|
+
"additionalProperties": {
|
|
543
|
+
"type": "integer",
|
|
544
|
+
"format": "int32"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"security": [
|
|
552
|
+
{
|
|
553
|
+
"api_key": []
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"/store/order": {
|
|
559
|
+
"post": {
|
|
560
|
+
"tags": [
|
|
561
|
+
"store"
|
|
562
|
+
],
|
|
563
|
+
"summary": "Place an order for a pet",
|
|
564
|
+
"description": "Place a new order in the store",
|
|
565
|
+
"operationId": "placeOrder",
|
|
566
|
+
"requestBody": {
|
|
567
|
+
"content": {
|
|
568
|
+
"application/json": {
|
|
569
|
+
"schema": {
|
|
570
|
+
"$ref": "#/components/schemas/Order"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"application/xml": {
|
|
574
|
+
"schema": {
|
|
575
|
+
"$ref": "#/components/schemas/Order"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"application/x-www-form-urlencoded": {
|
|
579
|
+
"schema": {
|
|
580
|
+
"$ref": "#/components/schemas/Order"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"responses": {
|
|
586
|
+
"200": {
|
|
587
|
+
"description": "successful operation",
|
|
588
|
+
"content": {
|
|
589
|
+
"application/json": {
|
|
590
|
+
"schema": {
|
|
591
|
+
"$ref": "#/components/schemas/Order"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"400": {
|
|
597
|
+
"description": "Invalid input"
|
|
598
|
+
},
|
|
599
|
+
"422": {
|
|
600
|
+
"description": "Validation exception"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"/store/order/{orderId}": {
|
|
606
|
+
"get": {
|
|
607
|
+
"tags": [
|
|
608
|
+
"store"
|
|
609
|
+
],
|
|
610
|
+
"summary": "Find purchase order by ID",
|
|
611
|
+
"description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.",
|
|
612
|
+
"operationId": "getOrderById",
|
|
613
|
+
"parameters": [
|
|
614
|
+
{
|
|
615
|
+
"name": "orderId",
|
|
616
|
+
"in": "path",
|
|
617
|
+
"description": "ID of order that needs to be fetched",
|
|
618
|
+
"required": true,
|
|
619
|
+
"schema": {
|
|
620
|
+
"type": "integer",
|
|
621
|
+
"format": "int64"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"responses": {
|
|
626
|
+
"200": {
|
|
627
|
+
"description": "successful operation",
|
|
628
|
+
"content": {
|
|
629
|
+
"application/json": {
|
|
630
|
+
"schema": {
|
|
631
|
+
"$ref": "#/components/schemas/Order"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"application/xml": {
|
|
635
|
+
"schema": {
|
|
636
|
+
"$ref": "#/components/schemas/Order"
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"400": {
|
|
642
|
+
"description": "Invalid ID supplied"
|
|
643
|
+
},
|
|
644
|
+
"404": {
|
|
645
|
+
"description": "Order not found"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"delete": {
|
|
650
|
+
"tags": [
|
|
651
|
+
"store"
|
|
652
|
+
],
|
|
653
|
+
"summary": "Delete purchase order by ID",
|
|
654
|
+
"description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
|
|
655
|
+
"operationId": "deleteOrder",
|
|
656
|
+
"parameters": [
|
|
657
|
+
{
|
|
658
|
+
"name": "orderId",
|
|
659
|
+
"in": "path",
|
|
660
|
+
"description": "ID of the order that needs to be deleted",
|
|
661
|
+
"required": true,
|
|
662
|
+
"schema": {
|
|
663
|
+
"type": "integer",
|
|
664
|
+
"format": "int64"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
],
|
|
49
668
|
"responses": {
|
|
50
|
-
"
|
|
51
|
-
"description": "
|
|
669
|
+
"400": {
|
|
670
|
+
"description": "Invalid ID supplied"
|
|
671
|
+
},
|
|
672
|
+
"404": {
|
|
673
|
+
"description": "Order not found"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
"/user": {
|
|
679
|
+
"post": {
|
|
680
|
+
"tags": [
|
|
681
|
+
"user"
|
|
682
|
+
],
|
|
683
|
+
"summary": "Create user",
|
|
684
|
+
"description": "This can only be done by the logged in user.",
|
|
685
|
+
"operationId": "createUser",
|
|
686
|
+
"requestBody": {
|
|
687
|
+
"description": "Created user object",
|
|
688
|
+
"content": {
|
|
689
|
+
"application/json": {
|
|
690
|
+
"schema": {
|
|
691
|
+
"$ref": "#/components/schemas/User"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"application/xml": {
|
|
695
|
+
"schema": {
|
|
696
|
+
"$ref": "#/components/schemas/User"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"application/x-www-form-urlencoded": {
|
|
700
|
+
"schema": {
|
|
701
|
+
"$ref": "#/components/schemas/User"
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"responses": {
|
|
707
|
+
"default": {
|
|
708
|
+
"description": "successful operation",
|
|
52
709
|
"content": {
|
|
53
710
|
"application/json": {
|
|
54
|
-
"schema": {
|
|
711
|
+
"schema": {
|
|
712
|
+
"$ref": "#/components/schemas/User"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"application/xml": {
|
|
716
|
+
"schema": {
|
|
717
|
+
"$ref": "#/components/schemas/User"
|
|
718
|
+
}
|
|
55
719
|
}
|
|
56
720
|
}
|
|
57
721
|
}
|
|
58
722
|
}
|
|
59
|
-
}
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"/user/createWithList": {
|
|
60
726
|
"post": {
|
|
61
|
-
"
|
|
62
|
-
|
|
727
|
+
"tags": [
|
|
728
|
+
"user"
|
|
729
|
+
],
|
|
730
|
+
"summary": "Creates list of users with given input array",
|
|
731
|
+
"description": "Creates list of users with given input array",
|
|
732
|
+
"operationId": "createUsersWithListInput",
|
|
63
733
|
"requestBody": {
|
|
64
734
|
"content": {
|
|
65
735
|
"application/json": {
|
|
66
736
|
"schema": {
|
|
67
|
-
"
|
|
737
|
+
"type": "array",
|
|
738
|
+
"items": {
|
|
739
|
+
"$ref": "#/components/schemas/User"
|
|
740
|
+
}
|
|
68
741
|
}
|
|
69
742
|
}
|
|
70
|
-
}
|
|
71
|
-
"required": true
|
|
743
|
+
}
|
|
72
744
|
},
|
|
73
745
|
"responses": {
|
|
74
746
|
"200": {
|
|
75
|
-
"description": "Successful
|
|
76
|
-
"content": {
|
|
77
|
-
"application/json": {
|
|
78
|
-
"schema": {}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"422": {
|
|
83
|
-
"description": "Validation Error",
|
|
747
|
+
"description": "Successful operation",
|
|
84
748
|
"content": {
|
|
85
749
|
"application/json": {
|
|
86
750
|
"schema": {
|
|
87
|
-
"$ref": "#/components/schemas/
|
|
751
|
+
"$ref": "#/components/schemas/User"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"application/xml": {
|
|
755
|
+
"schema": {
|
|
756
|
+
"$ref": "#/components/schemas/User"
|
|
88
757
|
}
|
|
89
758
|
}
|
|
90
759
|
}
|
|
760
|
+
},
|
|
761
|
+
"default": {
|
|
762
|
+
"description": "successful operation"
|
|
91
763
|
}
|
|
92
764
|
}
|
|
93
765
|
}
|
|
94
766
|
},
|
|
95
|
-
"/
|
|
767
|
+
"/user/login": {
|
|
96
768
|
"get": {
|
|
97
|
-
"
|
|
98
|
-
|
|
769
|
+
"tags": [
|
|
770
|
+
"user"
|
|
771
|
+
],
|
|
772
|
+
"summary": "Logs user into the system",
|
|
773
|
+
"description": "",
|
|
774
|
+
"operationId": "loginUser",
|
|
99
775
|
"parameters": [
|
|
100
776
|
{
|
|
101
|
-
"name": "
|
|
102
|
-
"in": "
|
|
103
|
-
"
|
|
777
|
+
"name": "username",
|
|
778
|
+
"in": "query",
|
|
779
|
+
"description": "The user name for login",
|
|
780
|
+
"required": false,
|
|
104
781
|
"schema": {
|
|
105
|
-
"type": "string"
|
|
106
|
-
|
|
782
|
+
"type": "string"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "password",
|
|
787
|
+
"in": "query",
|
|
788
|
+
"description": "The password for login in clear text",
|
|
789
|
+
"required": false,
|
|
790
|
+
"schema": {
|
|
791
|
+
"type": "string"
|
|
107
792
|
}
|
|
108
793
|
}
|
|
109
794
|
],
|
|
110
795
|
"responses": {
|
|
111
796
|
"200": {
|
|
112
|
-
"description": "
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
797
|
+
"description": "successful operation",
|
|
798
|
+
"headers": {
|
|
799
|
+
"X-Rate-Limit": {
|
|
800
|
+
"description": "calls per hour allowed by the user",
|
|
801
|
+
"schema": {
|
|
802
|
+
"type": "integer",
|
|
803
|
+
"format": "int32"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"X-Expires-After": {
|
|
807
|
+
"description": "date in UTC when token expires",
|
|
808
|
+
"schema": {
|
|
809
|
+
"type": "string",
|
|
810
|
+
"format": "date-time"
|
|
811
|
+
}
|
|
116
812
|
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"422": {
|
|
120
|
-
"description": "Validation Error",
|
|
813
|
+
},
|
|
121
814
|
"content": {
|
|
815
|
+
"application/xml": {
|
|
816
|
+
"schema": {
|
|
817
|
+
"type": "string"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
122
820
|
"application/json": {
|
|
123
821
|
"schema": {
|
|
124
|
-
"
|
|
822
|
+
"type": "string"
|
|
125
823
|
}
|
|
126
824
|
}
|
|
127
825
|
}
|
|
826
|
+
},
|
|
827
|
+
"400": {
|
|
828
|
+
"description": "Invalid username/password supplied"
|
|
128
829
|
}
|
|
129
830
|
}
|
|
130
831
|
}
|
|
131
832
|
},
|
|
132
|
-
"/": {
|
|
833
|
+
"/user/logout": {
|
|
133
834
|
"get": {
|
|
134
|
-
"
|
|
135
|
-
|
|
835
|
+
"tags": [
|
|
836
|
+
"user"
|
|
837
|
+
],
|
|
838
|
+
"summary": "Logs out current logged in user session",
|
|
839
|
+
"description": "",
|
|
840
|
+
"operationId": "logoutUser",
|
|
841
|
+
"parameters": [],
|
|
136
842
|
"responses": {
|
|
137
|
-
"
|
|
138
|
-
"description": "
|
|
139
|
-
"content": {
|
|
140
|
-
"application/json": {
|
|
141
|
-
"schema": {}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
843
|
+
"default": {
|
|
844
|
+
"description": "successful operation"
|
|
144
845
|
}
|
|
145
846
|
}
|
|
146
847
|
}
|
|
147
848
|
},
|
|
148
|
-
"/
|
|
849
|
+
"/user/{username}": {
|
|
149
850
|
"get": {
|
|
150
|
-
"
|
|
151
|
-
|
|
851
|
+
"tags": [
|
|
852
|
+
"user"
|
|
853
|
+
],
|
|
854
|
+
"summary": "Get user by user name",
|
|
855
|
+
"description": "",
|
|
856
|
+
"operationId": "getUserByName",
|
|
857
|
+
"parameters": [
|
|
858
|
+
{
|
|
859
|
+
"name": "username",
|
|
860
|
+
"in": "path",
|
|
861
|
+
"description": "The name that needs to be fetched. Use user1 for testing. ",
|
|
862
|
+
"required": true,
|
|
863
|
+
"schema": {
|
|
864
|
+
"type": "string"
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
],
|
|
152
868
|
"responses": {
|
|
153
869
|
"200": {
|
|
154
|
-
"description": "
|
|
870
|
+
"description": "successful operation",
|
|
155
871
|
"content": {
|
|
156
872
|
"application/json": {
|
|
157
|
-
"schema": {
|
|
873
|
+
"schema": {
|
|
874
|
+
"$ref": "#/components/schemas/User"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"application/xml": {
|
|
878
|
+
"schema": {
|
|
879
|
+
"$ref": "#/components/schemas/User"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"400": {
|
|
885
|
+
"description": "Invalid username supplied"
|
|
886
|
+
},
|
|
887
|
+
"404": {
|
|
888
|
+
"description": "User not found"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"put": {
|
|
893
|
+
"tags": [
|
|
894
|
+
"user"
|
|
895
|
+
],
|
|
896
|
+
"summary": "Update user",
|
|
897
|
+
"description": "This can only be done by the logged in user.",
|
|
898
|
+
"operationId": "updateUser",
|
|
899
|
+
"parameters": [
|
|
900
|
+
{
|
|
901
|
+
"name": "username",
|
|
902
|
+
"in": "path",
|
|
903
|
+
"description": "name that need to be deleted",
|
|
904
|
+
"required": true,
|
|
905
|
+
"schema": {
|
|
906
|
+
"type": "string"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"requestBody": {
|
|
911
|
+
"description": "Update an existent user in the store",
|
|
912
|
+
"content": {
|
|
913
|
+
"application/json": {
|
|
914
|
+
"schema": {
|
|
915
|
+
"$ref": "#/components/schemas/User"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"application/xml": {
|
|
919
|
+
"schema": {
|
|
920
|
+
"$ref": "#/components/schemas/User"
|
|
158
921
|
}
|
|
922
|
+
},
|
|
923
|
+
"application/x-www-form-urlencoded": {
|
|
924
|
+
"schema": {
|
|
925
|
+
"$ref": "#/components/schemas/User"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"responses": {
|
|
931
|
+
"default": {
|
|
932
|
+
"description": "successful operation"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"delete": {
|
|
937
|
+
"tags": [
|
|
938
|
+
"user"
|
|
939
|
+
],
|
|
940
|
+
"summary": "Delete user",
|
|
941
|
+
"description": "This can only be done by the logged in user.",
|
|
942
|
+
"operationId": "deleteUser",
|
|
943
|
+
"parameters": [
|
|
944
|
+
{
|
|
945
|
+
"name": "username",
|
|
946
|
+
"in": "path",
|
|
947
|
+
"description": "The name that needs to be deleted",
|
|
948
|
+
"required": true,
|
|
949
|
+
"schema": {
|
|
950
|
+
"type": "string"
|
|
159
951
|
}
|
|
160
952
|
}
|
|
953
|
+
],
|
|
954
|
+
"responses": {
|
|
955
|
+
"400": {
|
|
956
|
+
"description": "Invalid username supplied"
|
|
957
|
+
},
|
|
958
|
+
"404": {
|
|
959
|
+
"description": "User not found"
|
|
960
|
+
}
|
|
161
961
|
}
|
|
162
962
|
}
|
|
163
963
|
}
|
|
164
964
|
},
|
|
165
965
|
"components": {
|
|
166
966
|
"schemas": {
|
|
167
|
-
"
|
|
967
|
+
"Order": {
|
|
968
|
+
"type": "object",
|
|
168
969
|
"properties": {
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
970
|
+
"id": {
|
|
971
|
+
"type": "integer",
|
|
972
|
+
"format": "int64",
|
|
973
|
+
"example": 10
|
|
974
|
+
},
|
|
975
|
+
"petId": {
|
|
976
|
+
"type": "integer",
|
|
977
|
+
"format": "int64",
|
|
978
|
+
"example": 198772
|
|
979
|
+
},
|
|
980
|
+
"quantity": {
|
|
981
|
+
"type": "integer",
|
|
982
|
+
"format": "int32",
|
|
983
|
+
"example": 7
|
|
984
|
+
},
|
|
985
|
+
"shipDate": {
|
|
986
|
+
"type": "string",
|
|
987
|
+
"format": "date-time"
|
|
988
|
+
},
|
|
989
|
+
"status": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"description": "Order Status",
|
|
992
|
+
"example": "approved",
|
|
993
|
+
"enum": [
|
|
994
|
+
"placed",
|
|
995
|
+
"approved",
|
|
996
|
+
"delivered"
|
|
997
|
+
]
|
|
998
|
+
},
|
|
999
|
+
"complete": {
|
|
1000
|
+
"type": "boolean"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"xml": {
|
|
1004
|
+
"name": "order"
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
"Customer": {
|
|
1008
|
+
"type": "object",
|
|
1009
|
+
"properties": {
|
|
1010
|
+
"id": {
|
|
1011
|
+
"type": "integer",
|
|
1012
|
+
"format": "int64",
|
|
1013
|
+
"example": 100000
|
|
1014
|
+
},
|
|
1015
|
+
"username": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"example": "fehguy"
|
|
1018
|
+
},
|
|
1019
|
+
"address": {
|
|
173
1020
|
"type": "array",
|
|
174
|
-
"
|
|
1021
|
+
"xml": {
|
|
1022
|
+
"name": "addresses",
|
|
1023
|
+
"wrapped": true
|
|
1024
|
+
},
|
|
1025
|
+
"items": {
|
|
1026
|
+
"$ref": "#/components/schemas/Address"
|
|
1027
|
+
}
|
|
175
1028
|
}
|
|
176
1029
|
},
|
|
1030
|
+
"xml": {
|
|
1031
|
+
"name": "customer"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"Address": {
|
|
177
1035
|
"type": "object",
|
|
178
|
-
"
|
|
1036
|
+
"properties": {
|
|
1037
|
+
"street": {
|
|
1038
|
+
"type": "string",
|
|
1039
|
+
"example": "437 Lytton"
|
|
1040
|
+
},
|
|
1041
|
+
"city": {
|
|
1042
|
+
"type": "string",
|
|
1043
|
+
"example": "Palo Alto"
|
|
1044
|
+
},
|
|
1045
|
+
"state": {
|
|
1046
|
+
"type": "string",
|
|
1047
|
+
"example": "CA"
|
|
1048
|
+
},
|
|
1049
|
+
"zip": {
|
|
1050
|
+
"type": "string",
|
|
1051
|
+
"example": "94301"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"xml": {
|
|
1055
|
+
"name": "address"
|
|
1056
|
+
}
|
|
179
1057
|
},
|
|
180
|
-
"
|
|
1058
|
+
"Category": {
|
|
1059
|
+
"type": "object",
|
|
181
1060
|
"properties": {
|
|
1061
|
+
"id": {
|
|
1062
|
+
"type": "integer",
|
|
1063
|
+
"format": "int64",
|
|
1064
|
+
"example": 1
|
|
1065
|
+
},
|
|
182
1066
|
"name": {
|
|
183
1067
|
"type": "string",
|
|
184
|
-
"
|
|
1068
|
+
"example": "Dogs"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"xml": {
|
|
1072
|
+
"name": "category"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
"User": {
|
|
1076
|
+
"type": "object",
|
|
1077
|
+
"properties": {
|
|
1078
|
+
"id": {
|
|
1079
|
+
"type": "integer",
|
|
1080
|
+
"format": "int64",
|
|
1081
|
+
"example": 10
|
|
1082
|
+
},
|
|
1083
|
+
"username": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"example": "theUser"
|
|
185
1086
|
},
|
|
186
|
-
"
|
|
187
|
-
"type": "
|
|
188
|
-
"
|
|
1087
|
+
"firstName": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"example": "John"
|
|
189
1090
|
},
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
"type": "string"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"type": "null"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"title": "Description"
|
|
1091
|
+
"lastName": {
|
|
1092
|
+
"type": "string",
|
|
1093
|
+
"example": "James"
|
|
200
1094
|
},
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"
|
|
1095
|
+
"email": {
|
|
1096
|
+
"type": "string",
|
|
1097
|
+
"example": "john@email.com"
|
|
1098
|
+
},
|
|
1099
|
+
"password": {
|
|
1100
|
+
"type": "string",
|
|
1101
|
+
"example": "12345"
|
|
1102
|
+
},
|
|
1103
|
+
"phone": {
|
|
1104
|
+
"type": "string",
|
|
1105
|
+
"example": "12345"
|
|
1106
|
+
},
|
|
1107
|
+
"userStatus": {
|
|
1108
|
+
"type": "integer",
|
|
1109
|
+
"description": "User Status",
|
|
1110
|
+
"format": "int32",
|
|
1111
|
+
"example": 1
|
|
211
1112
|
}
|
|
212
1113
|
},
|
|
1114
|
+
"xml": {
|
|
1115
|
+
"name": "user"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"Tag": {
|
|
213
1119
|
"type": "object",
|
|
1120
|
+
"properties": {
|
|
1121
|
+
"id": {
|
|
1122
|
+
"type": "integer",
|
|
1123
|
+
"format": "int64"
|
|
1124
|
+
},
|
|
1125
|
+
"name": {
|
|
1126
|
+
"type": "string"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"xml": {
|
|
1130
|
+
"name": "tag"
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"Pet": {
|
|
214
1134
|
"required": [
|
|
215
1135
|
"name",
|
|
216
|
-
"
|
|
1136
|
+
"photoUrls"
|
|
217
1137
|
],
|
|
218
|
-
"
|
|
219
|
-
},
|
|
220
|
-
"ValidationError": {
|
|
1138
|
+
"type": "object",
|
|
221
1139
|
"properties": {
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
1140
|
+
"id": {
|
|
1141
|
+
"type": "integer",
|
|
1142
|
+
"format": "int64",
|
|
1143
|
+
"example": 10
|
|
1144
|
+
},
|
|
1145
|
+
"name": {
|
|
1146
|
+
"type": "string",
|
|
1147
|
+
"example": "doggie"
|
|
1148
|
+
},
|
|
1149
|
+
"category": {
|
|
1150
|
+
"$ref": "#/components/schemas/Category"
|
|
1151
|
+
},
|
|
1152
|
+
"photoUrls": {
|
|
1153
|
+
"type": "array",
|
|
1154
|
+
"xml": {
|
|
1155
|
+
"wrapped": true
|
|
232
1156
|
},
|
|
1157
|
+
"items": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"xml": {
|
|
1160
|
+
"name": "photoUrl"
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
"tags": {
|
|
233
1165
|
"type": "array",
|
|
234
|
-
"
|
|
1166
|
+
"xml": {
|
|
1167
|
+
"wrapped": true
|
|
1168
|
+
},
|
|
1169
|
+
"items": {
|
|
1170
|
+
"$ref": "#/components/schemas/Tag"
|
|
1171
|
+
}
|
|
235
1172
|
},
|
|
236
|
-
"
|
|
1173
|
+
"status": {
|
|
237
1174
|
"type": "string",
|
|
238
|
-
"
|
|
1175
|
+
"description": "pet status in the store",
|
|
1176
|
+
"enum": [
|
|
1177
|
+
"available",
|
|
1178
|
+
"pending",
|
|
1179
|
+
"sold"
|
|
1180
|
+
]
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"xml": {
|
|
1184
|
+
"name": "pet"
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
"ApiResponse": {
|
|
1188
|
+
"type": "object",
|
|
1189
|
+
"properties": {
|
|
1190
|
+
"code": {
|
|
1191
|
+
"type": "integer",
|
|
1192
|
+
"format": "int32"
|
|
239
1193
|
},
|
|
240
1194
|
"type": {
|
|
241
|
-
"type": "string"
|
|
242
|
-
|
|
1195
|
+
"type": "string"
|
|
1196
|
+
},
|
|
1197
|
+
"message": {
|
|
1198
|
+
"type": "string"
|
|
243
1199
|
}
|
|
244
1200
|
},
|
|
245
|
-
"
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
1201
|
+
"xml": {
|
|
1202
|
+
"name": "##default"
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"requestBodies": {
|
|
1207
|
+
"Pet": {
|
|
1208
|
+
"description": "Pet object that needs to be added to the store",
|
|
1209
|
+
"content": {
|
|
1210
|
+
"application/json": {
|
|
1211
|
+
"schema": {
|
|
1212
|
+
"$ref": "#/components/schemas/Pet"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"application/xml": {
|
|
1216
|
+
"schema": {
|
|
1217
|
+
"$ref": "#/components/schemas/Pet"
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"UserArray": {
|
|
1223
|
+
"description": "List of user object",
|
|
1224
|
+
"content": {
|
|
1225
|
+
"application/json": {
|
|
1226
|
+
"schema": {
|
|
1227
|
+
"type": "array",
|
|
1228
|
+
"items": {
|
|
1229
|
+
"$ref": "#/components/schemas/User"
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"securitySchemes": {
|
|
1237
|
+
"petstore_auth": {
|
|
1238
|
+
"type": "oauth2",
|
|
1239
|
+
"flows": {
|
|
1240
|
+
"implicit": {
|
|
1241
|
+
"authorizationUrl": "https://petstore3.swagger.io/oauth/authorize",
|
|
1242
|
+
"scopes": {
|
|
1243
|
+
"write:pets": "modify pets in your account",
|
|
1244
|
+
"read:pets": "read your pets"
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"api_key": {
|
|
1250
|
+
"type": "apiKey",
|
|
1251
|
+
"name": "api_key",
|
|
1252
|
+
"in": "header"
|
|
252
1253
|
}
|
|
253
1254
|
}
|
|
254
1255
|
}
|