swagger2md 0.1.0 → 0.1.1

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.
@@ -0,0 +1,583 @@
1
+ Swagger Petstore
2
+ ======
3
+ **Version:** 1.0.0
4
+
5
+ **Description:** This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
6
+
7
+ ### /pet
8
+
9
+ ---
10
+ ##### ***POST***
11
+ **Parameters**
12
+
13
+ ```
14
+ {
15
+ "id": {
16
+ "type": "integer",
17
+ "format": "int64"
18
+ },
19
+ "category": {
20
+ "$ref": "#/definitions/Category"
21
+ },
22
+ "name": {
23
+ "type": "string",
24
+ "example": "doggie"
25
+ },
26
+ "photoUrls": {
27
+ "type": "array",
28
+ "xml": {
29
+ "name": "photoUrl",
30
+ "wrapped": true
31
+ },
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "tags": {
37
+ "type": "array",
38
+ "xml": {
39
+ "name": "tag",
40
+ "wrapped": true
41
+ },
42
+ "items": {
43
+ "$ref": "#/definitions/Tag"
44
+ }
45
+ },
46
+ "status": {
47
+ "type": "string",
48
+ "description": "pet status in the store",
49
+ "enum": [
50
+ "available",
51
+ "pending",
52
+ "sold"
53
+ ]
54
+ }
55
+ }
56
+ ```
57
+ **Responses**
58
+
59
+ ```
60
+ {
61
+ "405": {
62
+ "description": "Invalid input"
63
+ }
64
+ }
65
+ ```
66
+ ##### ***PUT***
67
+ **Parameters**
68
+
69
+ ```
70
+ {
71
+ "id": {
72
+ "type": "integer",
73
+ "format": "int64"
74
+ },
75
+ "category": {
76
+ "$ref": "#/definitions/Category"
77
+ },
78
+ "name": {
79
+ "type": "string",
80
+ "example": "doggie"
81
+ },
82
+ "photoUrls": {
83
+ "type": "array",
84
+ "xml": {
85
+ "name": "photoUrl",
86
+ "wrapped": true
87
+ },
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "tags": {
93
+ "type": "array",
94
+ "xml": {
95
+ "name": "tag",
96
+ "wrapped": true
97
+ },
98
+ "items": {
99
+ "$ref": "#/definitions/Tag"
100
+ }
101
+ },
102
+ "status": {
103
+ "type": "string",
104
+ "description": "pet status in the store",
105
+ "enum": [
106
+ "available",
107
+ "pending",
108
+ "sold"
109
+ ]
110
+ }
111
+ }
112
+ ```
113
+ **Responses**
114
+
115
+ ```
116
+ {
117
+ "400": {
118
+ "description": "Invalid ID supplied"
119
+ },
120
+ "404": {
121
+ "description": "Pet not found"
122
+ },
123
+ "405": {
124
+ "description": "Validation exception"
125
+ }
126
+ }
127
+ ```
128
+ ### /pet/findByStatus
129
+
130
+ ---
131
+ ##### ***GET***
132
+ **Parameters**
133
+ **Responses**
134
+
135
+ ```
136
+ {
137
+ "200": {
138
+ "description": "successful operation",
139
+ "schema": {
140
+ "type": "array",
141
+ "items": {
142
+ "$ref": "#/definitions/Pet"
143
+ }
144
+ }
145
+ },
146
+ "400": {
147
+ "description": "Invalid status value"
148
+ }
149
+ }
150
+ ```
151
+ ### /pet/findByTags
152
+
153
+ ---
154
+ ##### ***GET***
155
+ **Parameters**
156
+ **Responses**
157
+
158
+ ```
159
+ {
160
+ "200": {
161
+ "description": "successful operation",
162
+ "schema": {
163
+ "type": "array",
164
+ "items": {
165
+ "$ref": "#/definitions/Pet"
166
+ }
167
+ }
168
+ },
169
+ "400": {
170
+ "description": "Invalid tag value"
171
+ }
172
+ }
173
+ ```
174
+ ### /pet/{petId}
175
+
176
+ ---
177
+ ##### ***GET***
178
+ **Parameters**
179
+ **Responses**
180
+
181
+ ```
182
+ {
183
+ "200": {
184
+ "description": "successful operation",
185
+ "schema": {
186
+ "$ref": "#/definitions/Pet"
187
+ }
188
+ },
189
+ "400": {
190
+ "description": "Invalid ID supplied"
191
+ },
192
+ "404": {
193
+ "description": "Pet not found"
194
+ }
195
+ }
196
+ ```
197
+ ##### ***POST***
198
+ **Parameters**
199
+ **Responses**
200
+
201
+ ```
202
+ {
203
+ "405": {
204
+ "description": "Invalid input"
205
+ }
206
+ }
207
+ ```
208
+ ##### ***DELETE***
209
+ **Parameters**
210
+ **Responses**
211
+
212
+ ```
213
+ {
214
+ "400": {
215
+ "description": "Invalid ID supplied"
216
+ },
217
+ "404": {
218
+ "description": "Pet not found"
219
+ }
220
+ }
221
+ ```
222
+ ### /pet/{petId}/uploadImage
223
+
224
+ ---
225
+ ##### ***POST***
226
+ **Parameters**
227
+ **Responses**
228
+
229
+ ```
230
+ {
231
+ "200": {
232
+ "description": "successful operation",
233
+ "schema": {
234
+ "$ref": "#/definitions/ApiResponse"
235
+ }
236
+ }
237
+ }
238
+ ```
239
+ ### /store/inventory
240
+
241
+ ---
242
+ ##### ***GET***
243
+ **Responses**
244
+
245
+ ```
246
+ {
247
+ "200": {
248
+ "description": "successful operation",
249
+ "schema": {
250
+ "type": "object",
251
+ "additionalProperties": {
252
+ "type": "integer",
253
+ "format": "int32"
254
+ }
255
+ }
256
+ }
257
+ }
258
+ ```
259
+ ### /store/order
260
+
261
+ ---
262
+ ##### ***POST***
263
+ **Parameters**
264
+
265
+ ```
266
+ {
267
+ "id": {
268
+ "type": "integer",
269
+ "format": "int64"
270
+ },
271
+ "petId": {
272
+ "type": "integer",
273
+ "format": "int64"
274
+ },
275
+ "quantity": {
276
+ "type": "integer",
277
+ "format": "int32"
278
+ },
279
+ "shipDate": {
280
+ "type": "string",
281
+ "format": "date-time"
282
+ },
283
+ "status": {
284
+ "type": "string",
285
+ "description": "Order Status",
286
+ "enum": [
287
+ "placed",
288
+ "approved",
289
+ "delivered"
290
+ ]
291
+ },
292
+ "complete": {
293
+ "type": "boolean",
294
+ "default": false
295
+ }
296
+ }
297
+ ```
298
+ **Responses**
299
+
300
+ ```
301
+ {
302
+ "200": {
303
+ "description": "successful operation",
304
+ "schema": {
305
+ "$ref": "#/definitions/Order"
306
+ }
307
+ },
308
+ "400": {
309
+ "description": "Invalid Order"
310
+ }
311
+ }
312
+ ```
313
+ ### /store/order/{orderId}
314
+
315
+ ---
316
+ ##### ***GET***
317
+ **Parameters**
318
+ **Responses**
319
+
320
+ ```
321
+ {
322
+ "200": {
323
+ "description": "successful operation",
324
+ "schema": {
325
+ "$ref": "#/definitions/Order"
326
+ }
327
+ },
328
+ "400": {
329
+ "description": "Invalid ID supplied"
330
+ },
331
+ "404": {
332
+ "description": "Order not found"
333
+ }
334
+ }
335
+ ```
336
+ ##### ***DELETE***
337
+ **Parameters**
338
+ **Responses**
339
+
340
+ ```
341
+ {
342
+ "400": {
343
+ "description": "Invalid ID supplied"
344
+ },
345
+ "404": {
346
+ "description": "Order not found"
347
+ }
348
+ }
349
+ ```
350
+ ### /user
351
+
352
+ ---
353
+ ##### ***POST***
354
+ **Parameters**
355
+
356
+ ```
357
+ {
358
+ "id": {
359
+ "type": "integer",
360
+ "format": "int64"
361
+ },
362
+ "username": {
363
+ "type": "string"
364
+ },
365
+ "firstName": {
366
+ "type": "string"
367
+ },
368
+ "lastName": {
369
+ "type": "string"
370
+ },
371
+ "email": {
372
+ "type": "string"
373
+ },
374
+ "password": {
375
+ "type": "string"
376
+ },
377
+ "phone": {
378
+ "type": "string"
379
+ },
380
+ "userStatus": {
381
+ "type": "integer",
382
+ "format": "int32",
383
+ "description": "User Status"
384
+ }
385
+ }
386
+ ```
387
+ **Responses**
388
+
389
+ ```
390
+ {
391
+ "default": {
392
+ "description": "successful operation"
393
+ }
394
+ }
395
+ ```
396
+ ### /user/createWithArray
397
+
398
+ ---
399
+ ##### ***POST***
400
+ **Parameters**
401
+
402
+ ```
403
+ {
404
+ "id": {
405
+ "type": "integer",
406
+ "format": "int64"
407
+ },
408
+ "username": {
409
+ "type": "string"
410
+ },
411
+ "firstName": {
412
+ "type": "string"
413
+ },
414
+ "lastName": {
415
+ "type": "string"
416
+ },
417
+ "email": {
418
+ "type": "string"
419
+ },
420
+ "password": {
421
+ "type": "string"
422
+ },
423
+ "phone": {
424
+ "type": "string"
425
+ },
426
+ "userStatus": {
427
+ "type": "integer",
428
+ "format": "int32",
429
+ "description": "User Status"
430
+ }
431
+ }
432
+ ```
433
+ **Responses**
434
+
435
+ ```
436
+ {
437
+ "default": {
438
+ "description": "successful operation"
439
+ }
440
+ }
441
+ ```
442
+ ### /user/createWithList
443
+
444
+ ---
445
+ ##### ***POST***
446
+ **Parameters**
447
+
448
+ ```
449
+ {
450
+ "id": {
451
+ "type": "integer",
452
+ "format": "int64"
453
+ },
454
+ "username": {
455
+ "type": "string"
456
+ },
457
+ "firstName": {
458
+ "type": "string"
459
+ },
460
+ "lastName": {
461
+ "type": "string"
462
+ },
463
+ "email": {
464
+ "type": "string"
465
+ },
466
+ "password": {
467
+ "type": "string"
468
+ },
469
+ "phone": {
470
+ "type": "string"
471
+ },
472
+ "userStatus": {
473
+ "type": "integer",
474
+ "format": "int32",
475
+ "description": "User Status"
476
+ }
477
+ }
478
+ ```
479
+ **Responses**
480
+
481
+ ```
482
+ {
483
+ "default": {
484
+ "description": "successful operation"
485
+ }
486
+ }
487
+ ```
488
+ ### /user/login
489
+
490
+ ---
491
+ ##### ***GET***
492
+ **Parameters**
493
+ **Responses**
494
+
495
+ ```
496
+ {
497
+ "200": {
498
+ "description": "successful operation",
499
+ "schema": {
500
+ "type": "string"
501
+ },
502
+ "headers": {
503
+ "X-Rate-Limit": {
504
+ "type": "integer",
505
+ "format": "int32",
506
+ "description": "calls per hour allowed by the user"
507
+ },
508
+ "X-Expires-After": {
509
+ "type": "string",
510
+ "format": "date-time",
511
+ "description": "date in UTC when token expires"
512
+ }
513
+ }
514
+ },
515
+ "400": {
516
+ "description": "Invalid username/password supplied"
517
+ }
518
+ }
519
+ ```
520
+ ### /user/logout
521
+
522
+ ---
523
+ ##### ***GET***
524
+ **Responses**
525
+
526
+ ```
527
+ {
528
+ "default": {
529
+ "description": "successful operation"
530
+ }
531
+ }
532
+ ```
533
+ ### /user/{username}
534
+
535
+ ---
536
+ ##### ***GET***
537
+ **Parameters**
538
+ **Responses**
539
+
540
+ ```
541
+ {
542
+ "200": {
543
+ "description": "successful operation",
544
+ "schema": {
545
+ "$ref": "#/definitions/User"
546
+ }
547
+ },
548
+ "400": {
549
+ "description": "Invalid username supplied"
550
+ },
551
+ "404": {
552
+ "description": "User not found"
553
+ }
554
+ }
555
+ ```
556
+ ##### ***PUT***
557
+ **Parameters**
558
+ **Responses**
559
+
560
+ ```
561
+ {
562
+ "400": {
563
+ "description": "Invalid user supplied"
564
+ },
565
+ "404": {
566
+ "description": "User not found"
567
+ }
568
+ }
569
+ ```
570
+ ##### ***DELETE***
571
+ **Parameters**
572
+ **Responses**
573
+
574
+ ```
575
+ {
576
+ "400": {
577
+ "description": "Invalid username supplied"
578
+ },
579
+ "404": {
580
+ "description": "User not found"
581
+ }
582
+ }
583
+ ```