rapipdf 2.1.1 → 3.0.0

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.
Files changed (173) hide show
  1. package/README.md +66 -14
  2. package/dist/chunks/generate-BQLGaRvK.js +386 -0
  3. package/dist/chunks/generate-BQLGaRvK.js.LICENSE.txt +224 -0
  4. package/dist/chunks/localize-CRvDVkIz.js +8 -0
  5. package/dist/node.js +13096 -0
  6. package/dist/node.js.LICENSE.txt +195 -0
  7. package/dist/rapipdf-min.js +352 -90
  8. package/dist/rapipdf-min.js.LICENSE.txt +224 -0
  9. package/dist/rapipdf.js +69 -0
  10. package/package.json +58 -52
  11. package/src/node.d.ts +82 -0
  12. package/src/rapipdf.d.ts +50 -0
  13. package/.babelrc +0 -11
  14. package/.eslintrc +0 -28
  15. package/dist/index.html +0 -48
  16. package/dist/index.html.gz +0 -0
  17. package/dist/rapipdf-min.js.gz +0 -0
  18. package/dist/rapipdf-min.js.map +0 -1
  19. package/dist/rapipdf-min.js.map.gz +0 -0
  20. package/dist/report.html +0 -67
  21. package/docs/examples/example1.html +0 -68
  22. package/docs/examples/list.html +0 -27
  23. package/docs/examples/rapidoc-regular.woff2 +0 -0
  24. package/docs/examples/rapidoc-semi-bold.woff2 +0 -0
  25. package/docs/examples/roboto-mono-bold.woff2 +0 -0
  26. package/docs/examples/roboto-mono-regular.woff2 +0 -0
  27. package/docs/highlight/CHANGES.md +0 -1803
  28. package/docs/highlight/LICENSE +0 -24
  29. package/docs/highlight/README.md +0 -188
  30. package/docs/highlight/README.ru.md +0 -142
  31. package/docs/highlight/highlight.pack.js +0 -2
  32. package/docs/highlight/styles/a11y-dark.css +0 -99
  33. package/docs/highlight/styles/a11y-light.css +0 -99
  34. package/docs/highlight/styles/agate.css +0 -108
  35. package/docs/highlight/styles/an-old-hope.css +0 -89
  36. package/docs/highlight/styles/androidstudio.css +0 -66
  37. package/docs/highlight/styles/arduino-light.css +0 -88
  38. package/docs/highlight/styles/arta.css +0 -73
  39. package/docs/highlight/styles/ascetic.css +0 -45
  40. package/docs/highlight/styles/atelier-cave-dark.css +0 -83
  41. package/docs/highlight/styles/atelier-cave-light.css +0 -85
  42. package/docs/highlight/styles/atelier-dune-dark.css +0 -69
  43. package/docs/highlight/styles/atelier-dune-light.css +0 -69
  44. package/docs/highlight/styles/atelier-estuary-dark.css +0 -84
  45. package/docs/highlight/styles/atelier-estuary-light.css +0 -84
  46. package/docs/highlight/styles/atelier-forest-dark.css +0 -69
  47. package/docs/highlight/styles/atelier-forest-light.css +0 -69
  48. package/docs/highlight/styles/atelier-heath-dark.css +0 -69
  49. package/docs/highlight/styles/atelier-heath-light.css +0 -69
  50. package/docs/highlight/styles/atelier-lakeside-dark.css +0 -69
  51. package/docs/highlight/styles/atelier-lakeside-light.css +0 -69
  52. package/docs/highlight/styles/atelier-plateau-dark.css +0 -84
  53. package/docs/highlight/styles/atelier-plateau-light.css +0 -84
  54. package/docs/highlight/styles/atelier-savanna-dark.css +0 -84
  55. package/docs/highlight/styles/atelier-savanna-light.css +0 -84
  56. package/docs/highlight/styles/atelier-seaside-dark.css +0 -69
  57. package/docs/highlight/styles/atelier-seaside-light.css +0 -69
  58. package/docs/highlight/styles/atelier-sulphurpool-dark.css +0 -69
  59. package/docs/highlight/styles/atelier-sulphurpool-light.css +0 -69
  60. package/docs/highlight/styles/atom-one-dark-reasonable.css +0 -77
  61. package/docs/highlight/styles/atom-one-dark.css +0 -96
  62. package/docs/highlight/styles/atom-one-light.css +0 -96
  63. package/docs/highlight/styles/brown-paper.css +0 -64
  64. package/docs/highlight/styles/brown-papersq.png +0 -0
  65. package/docs/highlight/styles/codepen-embed.css +0 -60
  66. package/docs/highlight/styles/color-brewer.css +0 -71
  67. package/docs/highlight/styles/darcula.css +0 -77
  68. package/docs/highlight/styles/dark.css +0 -63
  69. package/docs/highlight/styles/darkula.css +0 -6
  70. package/docs/highlight/styles/default.css +0 -99
  71. package/docs/highlight/styles/docco.css +0 -97
  72. package/docs/highlight/styles/dracula.css +0 -76
  73. package/docs/highlight/styles/far.css +0 -71
  74. package/docs/highlight/styles/foundation.css +0 -88
  75. package/docs/highlight/styles/github-gist.css +0 -71
  76. package/docs/highlight/styles/github.css +0 -99
  77. package/docs/highlight/styles/gml.css +0 -78
  78. package/docs/highlight/styles/googlecode.css +0 -89
  79. package/docs/highlight/styles/grayscale.css +0 -101
  80. package/docs/highlight/styles/gruvbox-dark.css +0 -108
  81. package/docs/highlight/styles/gruvbox-light.css +0 -108
  82. package/docs/highlight/styles/hopscotch.css +0 -83
  83. package/docs/highlight/styles/hybrid.css +0 -102
  84. package/docs/highlight/styles/idea.css +0 -97
  85. package/docs/highlight/styles/ir-black.css +0 -73
  86. package/docs/highlight/styles/isbl-editor-dark.css +0 -112
  87. package/docs/highlight/styles/isbl-editor-light.css +0 -112
  88. package/docs/highlight/styles/kimbie.dark.css +0 -74
  89. package/docs/highlight/styles/kimbie.light.css +0 -74
  90. package/docs/highlight/styles/lightfair.css +0 -87
  91. package/docs/highlight/styles/magula.css +0 -70
  92. package/docs/highlight/styles/mono-blue.css +0 -59
  93. package/docs/highlight/styles/monokai-sublime.css +0 -83
  94. package/docs/highlight/styles/monokai.css +0 -70
  95. package/docs/highlight/styles/nord.css +0 -309
  96. package/docs/highlight/styles/obsidian.css +0 -88
  97. package/docs/highlight/styles/ocean.css +0 -74
  98. package/docs/highlight/styles/paraiso-dark.css +0 -72
  99. package/docs/highlight/styles/paraiso-light.css +0 -72
  100. package/docs/highlight/styles/pojoaque.css +0 -83
  101. package/docs/highlight/styles/pojoaque.jpg +0 -0
  102. package/docs/highlight/styles/purebasic.css +0 -96
  103. package/docs/highlight/styles/qtcreator_dark.css +0 -83
  104. package/docs/highlight/styles/qtcreator_light.css +0 -83
  105. package/docs/highlight/styles/railscasts.css +0 -106
  106. package/docs/highlight/styles/rainbow.css +0 -85
  107. package/docs/highlight/styles/routeros.css +0 -108
  108. package/docs/highlight/styles/school-book.css +0 -72
  109. package/docs/highlight/styles/school-book.png +0 -0
  110. package/docs/highlight/styles/shades-of-purple.css +0 -97
  111. package/docs/highlight/styles/solarized-dark.css +0 -84
  112. package/docs/highlight/styles/solarized-light.css +0 -84
  113. package/docs/highlight/styles/sunburst.css +0 -102
  114. package/docs/highlight/styles/tomorrow-night-blue.css +0 -75
  115. package/docs/highlight/styles/tomorrow-night-bright.css +0 -74
  116. package/docs/highlight/styles/tomorrow-night-eighties.css +0 -74
  117. package/docs/highlight/styles/tomorrow-night.css +0 -75
  118. package/docs/highlight/styles/tomorrow.css +0 -72
  119. package/docs/highlight/styles/vs.css +0 -68
  120. package/docs/highlight/styles/vs2015.css +0 -115
  121. package/docs/highlight/styles/xcode.css +0 -104
  122. package/docs/highlight/styles/xt256.css +0 -92
  123. package/docs/highlight/styles/zenburn.css +0 -80
  124. package/docs/images/console.svg +0 -12
  125. package/docs/images/dark_ss.png +0 -0
  126. package/docs/images/easy.svg +0 -14
  127. package/docs/images/fast.svg +0 -8
  128. package/docs/images/gears.svg +0 -11
  129. package/docs/images/light_ss.png +0 -0
  130. package/docs/images/logo.png +0 -0
  131. package/docs/images/love.svg +0 -8
  132. package/docs/images/mask.svg +0 -16
  133. package/docs/images/mouse.svg +0 -7
  134. package/docs/images/pdf_sample1.png +0 -0
  135. package/docs/images/pdf_sample2.png +0 -0
  136. package/docs/images/webcomponent.svg +0 -13
  137. package/docs/index.css +0 -254
  138. package/docs/index.html +0 -376
  139. package/docs/rapipdf-min.js +0 -95
  140. package/docs/specs/allof-primitives.json +0 -80
  141. package/docs/specs/allof.json +0 -73
  142. package/docs/specs/anyof.json +0 -84
  143. package/docs/specs/basic.json +0 -75
  144. package/docs/specs/bitbucket.json +0 -12916
  145. package/docs/specs/data-types.yaml +0 -168
  146. package/docs/specs/gcloud.json +0 -1347
  147. package/docs/specs/no-server.json +0 -1
  148. package/docs/specs/oneof.json +0 -64
  149. package/docs/specs/petstore.json +0 -1042
  150. package/docs/specs/petstore_extended.yaml +0 -889
  151. package/docs/specs/temp.json +0 -53
  152. package/docs/specs/test-specs/large-models.json +0 -5998
  153. package/docs/specs/test-specs/long-descriptions.json +0 -5443
  154. package/docs/specs/test-specs/long-paths.json +0 -9562
  155. package/docs/specs/test-specs/oneof-allof-nested.yaml +0 -105
  156. package/docs/specs/test-specs/partial-spec-main.json +0 -29
  157. package/docs/specs/test-specs/partial.json +0 -17
  158. package/docs/specs/test-specs/petstore_complex_request.yaml +0 -335
  159. package/docs/specs/test-specs/petstore_experimental.yaml +0 -167
  160. package/docs/specs/test-specs/xxx-of-with-primitives-and-recursive-model.yaml +0 -952
  161. package/docs/welcome.html +0 -369
  162. package/index.html +0 -48
  163. package/logo.png +0 -0
  164. package/src/index.js +0 -3
  165. package/src/markdown.js +0 -120
  166. package/src/object-tree-gen.js +0 -370
  167. package/src/pdf-gen.js +0 -113
  168. package/src/pdf-parts-gen.js +0 -488
  169. package/src/rapipdf.js +0 -246
  170. package/src/spec-parser.js +0 -162
  171. package/src/table-layouts.js +0 -35
  172. package/src/vfs_fonts.js +0 -7
  173. package/webpack.config.js +0 -118
@@ -1,1042 +0,0 @@
1
- {
2
- "swagger": "2.0",
3
- "info": {
4
- "description": "This is a sample local 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.",
5
- "version": "1.0.0",
6
- "title": "Swagger Petstore",
7
- "termsOfService": "http://swagger.io/terms/",
8
- "contact": {
9
- "email": "apiteam@swagger.io"
10
- },
11
- "license": {
12
- "name": "Apache 2.0",
13
- "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
14
- }
15
- },
16
- "host": "petstore.swagger.io",
17
- "basePath": "/v2",
18
- "tags": [
19
- {
20
- "name": "pet",
21
- "description": "Everything about your Pets",
22
- "externalDocs": {
23
- "description": "Find out more",
24
- "url": "http://swagger.io"
25
- }
26
- },
27
- {
28
- "name": "store",
29
- "description": "Access to Petstore orders"
30
- },
31
- {
32
- "name": "user",
33
- "description": "Operations about user",
34
- "externalDocs": {
35
- "description": "Find out more about our store",
36
- "url": "http://swagger.io"
37
- }
38
- }
39
- ],
40
- "schemes": [
41
- "https",
42
- "http"
43
- ],
44
- "paths": {
45
- "/pet": {
46
- "post": {
47
- "tags": [
48
- "pet"
49
- ],
50
- "summary": "Add a new pet to the store",
51
- "description": "",
52
- "operationId": "addPet",
53
- "consumes": [
54
- "application/json",
55
- "application/xml"
56
- ],
57
- "produces": [
58
- "application/xml",
59
- "application/json"
60
- ],
61
- "parameters": [
62
- {
63
- "in": "body",
64
- "name": "body",
65
- "description": "Pet object that needs to be added to the store",
66
- "required": true,
67
- "schema": {
68
- "$ref": "#/definitions/Pet"
69
- }
70
- }
71
- ],
72
- "responses": {
73
- "405": {
74
- "description": "Invalid input"
75
- }
76
- },
77
- "security": [
78
- {
79
- "petstore_auth": [
80
- "write:pets",
81
- "read:pets"
82
- ]
83
- }
84
- ]
85
- },
86
- "put": {
87
- "tags": [
88
- "pet"
89
- ],
90
- "summary": "Update an existing pet",
91
- "description": "",
92
- "operationId": "updatePet",
93
- "consumes": [
94
- "application/json",
95
- "application/xml"
96
- ],
97
- "produces": [
98
- "application/xml",
99
- "application/json"
100
- ],
101
- "parameters": [
102
- {
103
- "in": "body",
104
- "name": "body",
105
- "description": "Pet object that needs to be added to the store",
106
- "required": true,
107
- "schema": {
108
- "$ref": "#/definitions/Pet"
109
- }
110
- }
111
- ],
112
- "responses": {
113
- "400": {
114
- "description": "Invalid ID supplied"
115
- },
116
- "404": {
117
- "description": "Pet not found"
118
- },
119
- "405": {
120
- "description": "Validation exception"
121
- }
122
- },
123
- "security": [
124
- {
125
- "petstore_auth": [
126
- "write:pets",
127
- "read:pets"
128
- ]
129
- }
130
- ]
131
- }
132
- },
133
- "/pet/findByStatus": {
134
- "get": {
135
- "tags": [
136
- "pet"
137
- ],
138
- "summary": "Finds Pets by status",
139
- "description": "Multiple status values can be provided with comma separated strings",
140
- "operationId": "findPetsByStatus",
141
- "produces": [
142
- "application/xml",
143
- "application/json"
144
- ],
145
- "parameters": [
146
- {
147
- "name": "status",
148
- "in": "query",
149
- "description": "Status values that need to be considered for filter",
150
- "required": true,
151
- "type": "array",
152
- "items": {
153
- "type": "string",
154
- "enum": [
155
- "available",
156
- "pending",
157
- "sold"
158
- ],
159
- "default": "available"
160
- },
161
- "collectionFormat": "multi"
162
- }
163
- ],
164
- "responses": {
165
- "200": {
166
- "description": "successful operation",
167
- "schema": {
168
- "type": "array",
169
- "items": {
170
- "$ref": "#/definitions/Pet"
171
- }
172
- }
173
- },
174
- "400": {
175
- "description": "Invalid status value"
176
- }
177
- },
178
- "security": [
179
- {
180
- "petstore_auth": [
181
- "write:pets",
182
- "read:pets"
183
- ]
184
- }
185
- ]
186
- }
187
- },
188
- "/pet/findByTags": {
189
- "get": {
190
- "tags": [
191
- "pet"
192
- ],
193
- "summary": "Finds Pets by tags",
194
- "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
195
- "operationId": "findPetsByTags",
196
- "produces": [
197
- "application/xml",
198
- "application/json"
199
- ],
200
- "parameters": [
201
- {
202
- "name": "tags",
203
- "in": "query",
204
- "description": "Tags to filter by",
205
- "required": true,
206
- "type": "array",
207
- "items": {
208
- "type": "string"
209
- },
210
- "collectionFormat": "multi"
211
- }
212
- ],
213
- "responses": {
214
- "200": {
215
- "description": "successful operation",
216
- "schema": {
217
- "type": "array",
218
- "items": {
219
- "$ref": "#/definitions/Pet"
220
- }
221
- }
222
- },
223
- "400": {
224
- "description": "Invalid tag value"
225
- }
226
- },
227
- "security": [
228
- {
229
- "petstore_auth": [
230
- "write:pets",
231
- "read:pets"
232
- ]
233
- }
234
- ],
235
- "deprecated": true
236
- }
237
- },
238
- "/pet/{petId}": {
239
- "get": {
240
- "tags": [
241
- "pet"
242
- ],
243
- "summary": "Find pet by ID",
244
- "description": "Returns a single pet",
245
- "operationId": "getPetById",
246
- "produces": [
247
- "application/xml",
248
- "application/json"
249
- ],
250
- "parameters": [
251
- {
252
- "name": "petId",
253
- "in": "path",
254
- "description": "ID of pet to return",
255
- "required": true,
256
- "type": "integer",
257
- "format": "int64"
258
- }
259
- ],
260
- "responses": {
261
- "200": {
262
- "description": "successful operation",
263
- "schema": {
264
- "$ref": "#/definitions/Pet"
265
- }
266
- },
267
- "400": {
268
- "description": "Invalid ID supplied"
269
- },
270
- "404": {
271
- "description": "Pet not found"
272
- }
273
- },
274
- "security": [
275
- {
276
- "api_key": []
277
- }
278
- ]
279
- },
280
- "post": {
281
- "tags": [
282
- "pet"
283
- ],
284
- "summary": "Updates a pet in the store with form data",
285
- "description": "",
286
- "operationId": "updatePetWithForm",
287
- "consumes": [
288
- "application/x-www-form-urlencoded"
289
- ],
290
- "produces": [
291
- "application/xml",
292
- "application/json"
293
- ],
294
- "parameters": [
295
- {
296
- "name": "petId",
297
- "in": "path",
298
- "description": "ID of pet that needs to be updated",
299
- "required": true,
300
- "type": "integer",
301
- "format": "int64"
302
- },
303
- {
304
- "name": "name",
305
- "in": "formData",
306
- "description": "Updated name of the pet",
307
- "required": false,
308
- "type": "string"
309
- },
310
- {
311
- "name": "status",
312
- "in": "formData",
313
- "description": "Updated status of the pet",
314
- "required": false,
315
- "type": "string"
316
- }
317
- ],
318
- "responses": {
319
- "405": {
320
- "description": "Invalid input"
321
- }
322
- },
323
- "security": [
324
- {
325
- "petstore_auth": [
326
- "write:pets",
327
- "read:pets"
328
- ]
329
- }
330
- ]
331
- },
332
- "delete": {
333
- "tags": [
334
- "pet"
335
- ],
336
- "summary": "Deletes a pet",
337
- "description": "",
338
- "operationId": "deletePet",
339
- "produces": [
340
- "application/xml",
341
- "application/json"
342
- ],
343
- "parameters": [
344
- {
345
- "name": "api_key",
346
- "in": "header",
347
- "required": false,
348
- "type": "string"
349
- },
350
- {
351
- "name": "petId",
352
- "in": "path",
353
- "description": "Pet id to delete",
354
- "required": true,
355
- "type": "integer",
356
- "format": "int64"
357
- }
358
- ],
359
- "responses": {
360
- "400": {
361
- "description": "Invalid ID supplied"
362
- },
363
- "404": {
364
- "description": "Pet not found"
365
- }
366
- },
367
- "security": [
368
- {
369
- "petstore_auth": [
370
- "write:pets",
371
- "read:pets"
372
- ]
373
- }
374
- ]
375
- }
376
- },
377
- "/pet/{petId}/uploadImage": {
378
- "post": {
379
- "tags": [
380
- "pet"
381
- ],
382
- "summary": "uploads an image",
383
- "description": "",
384
- "operationId": "uploadFile",
385
- "consumes": [
386
- "multipart/form-data"
387
- ],
388
- "produces": [
389
- "application/json"
390
- ],
391
- "parameters": [
392
- {
393
- "name": "petId",
394
- "in": "path",
395
- "description": "ID of pet to update",
396
- "required": true,
397
- "type": "integer",
398
- "format": "int64"
399
- },
400
- {
401
- "name": "additionalMetadata",
402
- "in": "formData",
403
- "description": "Additional data to pass to server",
404
- "required": false,
405
- "type": "string"
406
- },
407
- {
408
- "name": "file",
409
- "in": "formData",
410
- "description": "file to upload",
411
- "required": false,
412
- "type": "file"
413
- }
414
- ],
415
- "responses": {
416
- "200": {
417
- "description": "successful operation",
418
- "schema": {
419
- "$ref": "#/definitions/ApiResponse"
420
- }
421
- }
422
- },
423
- "security": [
424
- {
425
- "petstore_auth": [
426
- "write:pets",
427
- "read:pets"
428
- ]
429
- }
430
- ]
431
- }
432
- },
433
- "/store/inventory": {
434
- "get": {
435
- "tags": [
436
- "store"
437
- ],
438
- "summary": "Returns pet inventories by status",
439
- "description": "Returns a map of status codes to quantities",
440
- "operationId": "getInventory",
441
- "produces": [
442
- "application/json"
443
- ],
444
- "parameters": [],
445
- "responses": {
446
- "200": {
447
- "description": "successful operation",
448
- "schema": {
449
- "type": "object",
450
- "additionalProperties": {
451
- "type": "integer",
452
- "format": "int32"
453
- }
454
- }
455
- }
456
- },
457
- "security": [
458
- {
459
- "api_key": []
460
- }
461
- ]
462
- }
463
- },
464
- "/store/order": {
465
- "post": {
466
- "tags": [
467
- "store"
468
- ],
469
- "summary": "Place an order for a pet",
470
- "description": "",
471
- "operationId": "placeOrder",
472
- "produces": [
473
- "application/xml",
474
- "application/json"
475
- ],
476
- "parameters": [
477
- {
478
- "in": "body",
479
- "name": "body",
480
- "description": "order placed for purchasing the pet",
481
- "required": true,
482
- "schema": {
483
- "$ref": "#/definitions/Order"
484
- }
485
- }
486
- ],
487
- "responses": {
488
- "200": {
489
- "description": "successful operation",
490
- "schema": {
491
- "$ref": "#/definitions/Order"
492
- }
493
- },
494
- "400": {
495
- "description": "Invalid Order"
496
- }
497
- }
498
- }
499
- },
500
- "/store/order/{orderId}": {
501
- "get": {
502
- "tags": [
503
- "store"
504
- ],
505
- "summary": "Find purchase order by ID",
506
- "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions",
507
- "operationId": "getOrderById",
508
- "produces": [
509
- "application/xml",
510
- "application/json"
511
- ],
512
- "parameters": [
513
- {
514
- "name": "orderId",
515
- "in": "path",
516
- "description": "ID of pet that needs to be fetched",
517
- "required": true,
518
- "type": "integer",
519
- "maximum": 10,
520
- "minimum": 1,
521
- "format": "int64"
522
- }
523
- ],
524
- "responses": {
525
- "200": {
526
- "description": "successful operation",
527
- "schema": {
528
- "$ref": "#/definitions/Order"
529
- }
530
- },
531
- "400": {
532
- "description": "Invalid ID supplied"
533
- },
534
- "404": {
535
- "description": "Order not found"
536
- }
537
- }
538
- },
539
- "delete": {
540
- "tags": [
541
- "store"
542
- ],
543
- "summary": "Delete purchase order by ID",
544
- "description": "For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors",
545
- "operationId": "deleteOrder",
546
- "produces": [
547
- "application/xml",
548
- "application/json"
549
- ],
550
- "parameters": [
551
- {
552
- "name": "orderId",
553
- "in": "path",
554
- "description": "ID of the order that needs to be deleted",
555
- "required": true,
556
- "type": "integer",
557
- "minimum": 1,
558
- "format": "int64"
559
- }
560
- ],
561
- "responses": {
562
- "400": {
563
- "description": "Invalid ID supplied"
564
- },
565
- "404": {
566
- "description": "Order not found"
567
- }
568
- }
569
- }
570
- },
571
- "/user": {
572
- "post": {
573
- "tags": [
574
- "user"
575
- ],
576
- "summary": "Create user",
577
- "description": "This can only be done by the logged in user.",
578
- "operationId": "createUser",
579
- "produces": [
580
- "application/xml",
581
- "application/json"
582
- ],
583
- "parameters": [
584
- {
585
- "in": "body",
586
- "name": "body",
587
- "description": "Created user object",
588
- "required": true,
589
- "schema": {
590
- "$ref": "#/definitions/User"
591
- }
592
- }
593
- ],
594
- "responses": {
595
- "default": {
596
- "description": "successful operation"
597
- }
598
- }
599
- }
600
- },
601
- "/user/createWithArray": {
602
- "post": {
603
- "tags": [
604
- "user"
605
- ],
606
- "summary": "Creates list of users with given input array",
607
- "description": "",
608
- "operationId": "createUsersWithArrayInput",
609
- "produces": [
610
- "application/xml",
611
- "application/json"
612
- ],
613
- "parameters": [
614
- {
615
- "in": "body",
616
- "name": "body",
617
- "description": "List of user object",
618
- "required": true,
619
- "schema": {
620
- "type": "array",
621
- "items": {
622
- "$ref": "#/definitions/User"
623
- }
624
- }
625
- }
626
- ],
627
- "responses": {
628
- "default": {
629
- "description": "successful operation"
630
- }
631
- }
632
- }
633
- },
634
- "/user/createWithList": {
635
- "post": {
636
- "tags": [
637
- "user"
638
- ],
639
- "summary": "Creates list of users with given input array",
640
- "description": "",
641
- "operationId": "createUsersWithListInput",
642
- "produces": [
643
- "application/xml",
644
- "application/json"
645
- ],
646
- "parameters": [
647
- {
648
- "in": "body",
649
- "name": "body",
650
- "description": "List of user object",
651
- "required": true,
652
- "schema": {
653
- "type": "array",
654
- "items": {
655
- "$ref": "#/definitions/User"
656
- }
657
- }
658
- }
659
- ],
660
- "responses": {
661
- "default": {
662
- "description": "successful operation"
663
- }
664
- }
665
- }
666
- },
667
- "/user/login": {
668
- "get": {
669
- "tags": [
670
- "user"
671
- ],
672
- "summary": "Logs user into the system",
673
- "description": "",
674
- "operationId": "loginUser",
675
- "produces": [
676
- "application/xml",
677
- "application/json"
678
- ],
679
- "parameters": [
680
- {
681
- "name": "username",
682
- "in": "query",
683
- "description": "The user name for login",
684
- "required": true,
685
- "type": "string"
686
- },
687
- {
688
- "name": "password",
689
- "in": "query",
690
- "description": "The password for login in clear text",
691
- "required": true,
692
- "type": "string"
693
- }
694
- ],
695
- "responses": {
696
- "200": {
697
- "description": "successful operation",
698
- "schema": {
699
- "type": "string"
700
- },
701
- "headers": {
702
- "X-Rate-Limit": {
703
- "type": "integer",
704
- "format": "int32",
705
- "description": "calls per hour allowed by the user"
706
- },
707
- "X-Expires-After": {
708
- "type": "string",
709
- "format": "date-time",
710
- "description": "date in UTC when token expires"
711
- }
712
- }
713
- },
714
- "400": {
715
- "description": "Invalid username/password supplied"
716
- }
717
- }
718
- }
719
- },
720
- "/user/logout": {
721
- "get": {
722
- "tags": [
723
- "user"
724
- ],
725
- "summary": "Logs out current logged in user session",
726
- "description": "",
727
- "operationId": "logoutUser",
728
- "produces": [
729
- "application/xml",
730
- "application/json"
731
- ],
732
- "parameters": [],
733
- "responses": {
734
- "default": {
735
- "description": "successful operation"
736
- }
737
- }
738
- }
739
- },
740
- "/user/{username}": {
741
- "get": {
742
- "tags": [
743
- "user"
744
- ],
745
- "summary": "Get user by user name",
746
- "description": "",
747
- "operationId": "getUserByName",
748
- "produces": [
749
- "application/xml",
750
- "application/json"
751
- ],
752
- "parameters": [
753
- {
754
- "name": "username",
755
- "in": "path",
756
- "description": "The name that needs to be fetched. Use user1 for testing. ",
757
- "required": true,
758
- "type": "string"
759
- }
760
- ],
761
- "responses": {
762
- "200": {
763
- "description": "successful operation",
764
- "schema": {
765
- "$ref": "#/definitions/User"
766
- }
767
- },
768
- "400": {
769
- "description": "Invalid username supplied"
770
- },
771
- "404": {
772
- "description": "User not found"
773
- }
774
- }
775
- },
776
- "put": {
777
- "tags": [
778
- "user"
779
- ],
780
- "summary": "Updated user",
781
- "description": "This can only be done by the logged in user.",
782
- "operationId": "updateUser",
783
- "produces": [
784
- "application/xml",
785
- "application/json"
786
- ],
787
- "parameters": [
788
- {
789
- "name": "username",
790
- "in": "path",
791
- "description": "name that need to be updated",
792
- "required": true,
793
- "type": "string"
794
- },
795
- {
796
- "in": "body",
797
- "name": "body",
798
- "description": "Updated user object",
799
- "required": true,
800
- "schema": {
801
- "$ref": "#/definitions/User"
802
- }
803
- }
804
- ],
805
- "responses": {
806
- "400": {
807
- "description": "Invalid user supplied"
808
- },
809
- "404": {
810
- "description": "User not found"
811
- }
812
- }
813
- },
814
- "delete": {
815
- "tags": [
816
- "user"
817
- ],
818
- "summary": "Delete user",
819
- "description": "This can only be done by the logged in user.",
820
- "operationId": "deleteUser",
821
- "produces": [
822
- "application/xml",
823
- "application/json"
824
- ],
825
- "parameters": [
826
- {
827
- "name": "username",
828
- "in": "path",
829
- "description": "The name that needs to be deleted",
830
- "required": true,
831
- "type": "string"
832
- }
833
- ],
834
- "responses": {
835
- "400": {
836
- "description": "Invalid username supplied"
837
- },
838
- "404": {
839
- "description": "User not found"
840
- }
841
- }
842
- }
843
- }
844
- },
845
- "securityDefinitions": {
846
- "petstore_auth": {
847
- "type": "oauth2",
848
- "authorizationUrl": "https://petstore.swagger.io/oauth/authorize",
849
- "flow": "implicit",
850
- "scopes": {
851
- "write:pets": "modify pets in your account",
852
- "read:pets": "read your pets"
853
- }
854
- },
855
- "api_key": {
856
- "type": "apiKey",
857
- "name": "api_key",
858
- "in": "header"
859
- },
860
- "api_key2": {
861
- "type": "apiKey",
862
- "name": "api_key2",
863
- "in": "header"
864
- }
865
- },
866
- "definitions": {
867
- "Order": {
868
- "type": "object",
869
- "properties": {
870
- "id": {
871
- "type": "integer",
872
- "format": "int64"
873
- },
874
- "petId": {
875
- "type": "integer",
876
- "format": "int64"
877
- },
878
- "quantity": {
879
- "type": "integer",
880
- "format": "int32"
881
- },
882
- "shipDate": {
883
- "type": "string",
884
- "format": "date-time"
885
- },
886
- "status": {
887
- "type": "string",
888
- "description": "Order Status",
889
- "enum": [
890
- "placed",
891
- "approved",
892
- "delivered"
893
- ]
894
- },
895
- "complete": {
896
- "type": "boolean",
897
- "default": false
898
- }
899
- },
900
- "xml": {
901
- "name": "Order"
902
- }
903
- },
904
- "User": {
905
- "type": "object",
906
- "properties": {
907
- "id": {
908
- "type": "integer",
909
- "format": "int64"
910
- },
911
- "username": {
912
- "type": "string"
913
- },
914
- "firstName": {
915
- "type": "string"
916
- },
917
- "lastName": {
918
- "type": "string"
919
- },
920
- "email": {
921
- "type": "string"
922
- },
923
- "password": {
924
- "type": "string"
925
- },
926
- "phone": {
927
- "type": "string"
928
- },
929
- "userStatus": {
930
- "type": "integer",
931
- "format": "int32",
932
- "description": "User Status"
933
- }
934
- },
935
- "xml": {
936
- "name": "User"
937
- }
938
- },
939
- "Category": {
940
- "type": "object",
941
- "properties": {
942
- "id": {
943
- "type": "integer",
944
- "format": "int64"
945
- },
946
- "name": {
947
- "type": "string"
948
- }
949
- },
950
- "xml": {
951
- "name": "Category"
952
- }
953
- },
954
- "Tag": {
955
- "type": "object",
956
- "properties": {
957
- "id": {
958
- "type": "integer",
959
- "format": "int64"
960
- },
961
- "name": {
962
- "type": "string"
963
- }
964
- },
965
- "xml": {
966
- "name": "Tag"
967
- }
968
- },
969
- "Pet": {
970
- "type": "object",
971
- "required": [
972
- "id",
973
- "name",
974
- "photoUrls"
975
- ],
976
- "properties": {
977
- "id": {
978
- "type": "integer",
979
- "format": "int64"
980
- },
981
- "category": {
982
- "$ref": "#/definitions/Category"
983
- },
984
- "name": {
985
- "type": "string",
986
- "example": "doggie"
987
- },
988
- "photoUrls": {
989
- "type": "array",
990
- "xml": {
991
- "name": "photoUrl",
992
- "wrapped": true
993
- },
994
- "items": {
995
- "type": "string"
996
- }
997
- },
998
- "tags": {
999
- "type": "array",
1000
- "xml": {
1001
- "name": "tag",
1002
- "wrapped": true
1003
- },
1004
- "items": {
1005
- "$ref": "#/definitions/Tag"
1006
- }
1007
- },
1008
- "status": {
1009
- "type": "string",
1010
- "description": "pet status in the store",
1011
- "enum": [
1012
- "available",
1013
- "pending",
1014
- "sold"
1015
- ]
1016
- }
1017
- },
1018
- "xml": {
1019
- "name": "Pet"
1020
- }
1021
- },
1022
- "ApiResponse": {
1023
- "type": "object",
1024
- "properties": {
1025
- "code": {
1026
- "type": "integer",
1027
- "format": "int32"
1028
- },
1029
- "type": {
1030
- "type": "string"
1031
- },
1032
- "message": {
1033
- "type": "string"
1034
- }
1035
- }
1036
- }
1037
- },
1038
- "externalDocs": {
1039
- "description": "Find out more about Swagger",
1040
- "url": "http://swagger.io"
1041
- }
1042
- }