create-docusaurus-openapi-docs 0.0.0-1235

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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/bin/index.js +36 -0
  3. package/lib/index.d.ts +4 -0
  4. package/lib/index.js +191 -0
  5. package/package.json +48 -0
  6. package/templates/default/blog/2019-05-28-first-blog-post.md +12 -0
  7. package/templates/default/blog/2019-05-29-long-blog-post.md +44 -0
  8. package/templates/default/blog/2021-08-01-mdx-blog-post.mdx +20 -0
  9. package/templates/default/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
  10. package/templates/default/blog/2021-08-26-welcome/index.md +25 -0
  11. package/templates/default/blog/authors.yml +17 -0
  12. package/templates/default/docs/intro.md +49 -0
  13. package/templates/default/docs/petstore/add-pet.ParamsDetails.json +19 -0
  14. package/templates/default/docs/petstore/add-pet.RequestSchema.json +288 -0
  15. package/templates/default/docs/petstore/add-pet.StatusCodes.json +1 -0
  16. package/templates/default/docs/petstore/add-pet.api.mdx +45 -0
  17. package/templates/default/docs/petstore/create-user.RequestSchema.json +345 -0
  18. package/templates/default/docs/petstore/create-user.StatusCodes.json +1 -0
  19. package/templates/default/docs/petstore/create-user.api.mdx +45 -0
  20. package/templates/default/docs/petstore/create-users-with-array-input.RequestSchema.json +348 -0
  21. package/templates/default/docs/petstore/create-users-with-array-input.StatusCodes.json +1 -0
  22. package/templates/default/docs/petstore/create-users-with-array-input.api.mdx +47 -0
  23. package/templates/default/docs/petstore/create-users-with-list-input.RequestSchema.json +348 -0
  24. package/templates/default/docs/petstore/create-users-with-list-input.StatusCodes.json +1 -0
  25. package/templates/default/docs/petstore/create-users-with-list-input.api.mdx +47 -0
  26. package/templates/default/docs/petstore/delete-order.ParamsDetails.json +11 -0
  27. package/templates/default/docs/petstore/delete-order.RequestSchema.json +1 -0
  28. package/templates/default/docs/petstore/delete-order.StatusCodes.json +6 -0
  29. package/templates/default/docs/petstore/delete-order.api.mdx +49 -0
  30. package/templates/default/docs/petstore/delete-pet.ParamsDetails.json +18 -0
  31. package/templates/default/docs/petstore/delete-pet.RequestSchema.json +1 -0
  32. package/templates/default/docs/petstore/delete-pet.StatusCodes.json +1 -0
  33. package/templates/default/docs/petstore/delete-pet.api.mdx +43 -0
  34. package/templates/default/docs/petstore/delete-user.ParamsDetails.json +11 -0
  35. package/templates/default/docs/petstore/delete-user.RequestSchema.json +1 -0
  36. package/templates/default/docs/petstore/delete-user.StatusCodes.json +6 -0
  37. package/templates/default/docs/petstore/delete-user.api.mdx +45 -0
  38. package/templates/default/docs/petstore/find-pets-by-status.ParamsDetails.json +21 -0
  39. package/templates/default/docs/petstore/find-pets-by-status.RequestSchema.json +1 -0
  40. package/templates/default/docs/petstore/find-pets-by-status.StatusCodes.json +522 -0
  41. package/templates/default/docs/petstore/find-pets-by-status.api.mdx +51 -0
  42. package/templates/default/docs/petstore/find-pets-by-tags.ParamsDetails.json +12 -0
  43. package/templates/default/docs/petstore/find-pets-by-tags.RequestSchema.json +1 -0
  44. package/templates/default/docs/petstore/find-pets-by-tags.StatusCodes.json +522 -0
  45. package/templates/default/docs/petstore/find-pets-by-tags.api.mdx +55 -0
  46. package/templates/default/docs/petstore/get-inventory.RequestSchema.json +1 -0
  47. package/templates/default/docs/petstore/get-inventory.StatusCodes.json +15 -0
  48. package/templates/default/docs/petstore/get-inventory.api.mdx +43 -0
  49. package/templates/default/docs/petstore/get-order-by-id.ParamsDetails.json +16 -0
  50. package/templates/default/docs/petstore/get-order-by-id.RequestSchema.json +1 -0
  51. package/templates/default/docs/petstore/get-order-by-id.StatusCodes.json +127 -0
  52. package/templates/default/docs/petstore/get-order-by-id.api.mdx +49 -0
  53. package/templates/default/docs/petstore/get-pet-by-id.ParamsDetails.json +12 -0
  54. package/templates/default/docs/petstore/get-pet-by-id.RequestSchema.json +1 -0
  55. package/templates/default/docs/petstore/get-pet-by-id.StatusCodes.json +517 -0
  56. package/templates/default/docs/petstore/get-pet-by-id.api.mdx +49 -0
  57. package/templates/default/docs/petstore/get-user-by-name.ParamsDetails.json +11 -0
  58. package/templates/default/docs/petstore/get-user-by-name.RequestSchema.json +1 -0
  59. package/templates/default/docs/petstore/get-user-by-name.StatusCodes.json +683 -0
  60. package/templates/default/docs/petstore/get-user-by-name.api.mdx +47 -0
  61. package/templates/default/docs/petstore/login-user.ParamsDetails.json +18 -0
  62. package/templates/default/docs/petstore/login-user.RequestSchema.json +1 -0
  63. package/templates/default/docs/petstore/login-user.StatusCodes.json +29 -0
  64. package/templates/default/docs/petstore/login-user.api.mdx +43 -0
  65. package/templates/default/docs/petstore/logout-user.RequestSchema.json +1 -0
  66. package/templates/default/docs/petstore/logout-user.StatusCodes.json +1 -0
  67. package/templates/default/docs/petstore/logout-user.api.mdx +39 -0
  68. package/templates/default/docs/petstore/new-pet.RequestSchema.json +260 -0
  69. package/templates/default/docs/petstore/new-pet.StatusCodes.json +7 -0
  70. package/templates/default/docs/petstore/new-pet.api.mdx +45 -0
  71. package/templates/default/docs/petstore/pet.tag.mdx +15 -0
  72. package/templates/default/docs/petstore/place-order.RequestSchema.json +96 -0
  73. package/templates/default/docs/petstore/place-order.StatusCodes.json +133 -0
  74. package/templates/default/docs/petstore/place-order.api.mdx +43 -0
  75. package/templates/default/docs/petstore/schemas/cat.Schema.json +224 -0
  76. package/templates/default/docs/petstore/schemas/cat.schema.mdx +30 -0
  77. package/templates/default/docs/petstore/sidebar.ts +180 -0
  78. package/templates/default/docs/petstore/store.tag.mdx +15 -0
  79. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.2.json +28 -0
  80. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.3.json +28 -0
  81. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.4.json +25 -0
  82. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.5.json +20 -0
  83. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.json +27 -0
  84. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.2.json +21 -0
  85. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.3.json +17 -0
  86. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.4.json +9 -0
  87. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.5.json +9 -0
  88. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.json +20 -0
  89. package/templates/default/docs/petstore/subscribe-to-the-store-events.api.mdx +120 -0
  90. package/templates/default/docs/petstore/swagger-petstore-yaml.info.mdx +249 -0
  91. package/templates/default/docs/petstore/update-pet-with-form.ParamsDetails.json +11 -0
  92. package/templates/default/docs/petstore/update-pet-with-form.RequestSchema.json +22 -0
  93. package/templates/default/docs/petstore/update-pet-with-form.StatusCodes.json +1 -0
  94. package/templates/default/docs/petstore/update-pet-with-form.api.mdx +49 -0
  95. package/templates/default/docs/petstore/update-pet.ParamsDetails.json +19 -0
  96. package/templates/default/docs/petstore/update-pet.RequestSchema.json +288 -0
  97. package/templates/default/docs/petstore/update-pet.StatusCodes.json +7 -0
  98. package/templates/default/docs/petstore/update-pet.api.mdx +43 -0
  99. package/templates/default/docs/petstore/update-user.ParamsDetails.json +11 -0
  100. package/templates/default/docs/petstore/update-user.RequestSchema.json +345 -0
  101. package/templates/default/docs/petstore/update-user.StatusCodes.json +6 -0
  102. package/templates/default/docs/petstore/update-user.api.mdx +45 -0
  103. package/templates/default/docs/petstore/upload-file.ParamsDetails.json +11 -0
  104. package/templates/default/docs/petstore/upload-file.RequestSchema.json +10 -0
  105. package/templates/default/docs/petstore/upload-file.StatusCodes.json +20 -0
  106. package/templates/default/docs/petstore/upload-file.api.mdx +43 -0
  107. package/templates/default/docs/petstore/user.tag.mdx +15 -0
  108. package/templates/default/docs/tutorial-basics/_category_.json +8 -0
  109. package/templates/default/docs/tutorial-basics/congratulations.md +23 -0
  110. package/templates/default/docs/tutorial-basics/create-a-blog-post.md +36 -0
  111. package/templates/default/docs/tutorial-basics/create-a-document.md +55 -0
  112. package/templates/default/docs/tutorial-basics/create-a-page.md +45 -0
  113. package/templates/default/docs/tutorial-basics/deploy-your-site.md +31 -0
  114. package/templates/default/docs/tutorial-basics/markdown-features.mdx +145 -0
  115. package/templates/default/docs/tutorial-extras/_category_.json +7 -0
  116. package/templates/default/docs/tutorial-extras/manage-docs-versions.md +57 -0
  117. package/templates/default/docs/tutorial-extras/translate-your-site.md +90 -0
  118. package/templates/default/docusaurus.config.ts +273 -0
  119. package/templates/default/examples/petstore.yaml +1271 -0
  120. package/templates/default/gitignore +21 -0
  121. package/templates/default/package.json +44 -0
  122. package/templates/default/sidebars.ts +37 -0
  123. package/templates/default/src/components/HomepageFeatures/index.js +64 -0
  124. package/templates/default/src/components/HomepageFeatures/styles.module.css +11 -0
  125. package/templates/default/src/css/custom.css +77 -0
  126. package/templates/default/src/pages/index.js +42 -0
  127. package/templates/default/src/pages/index.module.css +23 -0
  128. package/templates/default/src/pages/markdown-page.md +7 -0
  129. package/templates/default/static/.nojekyll +0 -0
  130. package/templates/default/static/img/docusaurus.png +0 -0
  131. package/templates/default/static/img/favicon.ico +0 -0
  132. package/templates/default/static/img/logo.svg +1 -0
  133. package/templates/default/static/img/tutorial/docsVersionDropdown.png +0 -0
  134. package/templates/default/static/img/tutorial/localeDropdown.png +0 -0
  135. package/templates/default/static/img/undraw_docusaurus_mountain.svg +171 -0
  136. package/templates/default/static/img/undraw_docusaurus_react.svg +170 -0
  137. package/templates/default/static/img/undraw_docusaurus_tree.svg +40 -0
  138. package/templates/default/tsconfig.json +10 -0
@@ -0,0 +1,517 @@
1
+ {
2
+ "responses": {
3
+ "200": {
4
+ "description": "successful operation",
5
+ "content": {
6
+ "application/json": {
7
+ "schema": {
8
+ "type": "object",
9
+ "required": ["name", "photoUrls", "tags"],
10
+ "discriminator": {
11
+ "propertyName": "petType",
12
+ "mapping": {
13
+ "cat": {
14
+ "x-tags": ["pet"],
15
+ "description": "A representation of a cat",
16
+ "allOf": [
17
+ "circular(Pet)",
18
+ {
19
+ "type": "object",
20
+ "properties": {
21
+ "huntingSkill": {
22
+ "type": "string",
23
+ "description": "The measured skill for hunting",
24
+ "default": "lazy",
25
+ "example": "adventurous",
26
+ "enum": [
27
+ "clueless",
28
+ "lazy",
29
+ "adventurous",
30
+ "aggressive"
31
+ ]
32
+ }
33
+ },
34
+ "required": ["huntingSkill"]
35
+ }
36
+ ],
37
+ "title": "Cat"
38
+ },
39
+ "dog": {
40
+ "description": "A representation of a dog",
41
+ "allOf": [
42
+ "circular(Pet)",
43
+ {
44
+ "type": "object",
45
+ "properties": {
46
+ "packSize": {
47
+ "type": "integer",
48
+ "format": "int32",
49
+ "description": "The size of the pack the dog is from",
50
+ "default": 1,
51
+ "minimum": 1
52
+ }
53
+ },
54
+ "required": ["packSize"]
55
+ }
56
+ ],
57
+ "title": "Dog"
58
+ },
59
+ "bee": {
60
+ "description": "A representation of a honey bee",
61
+ "allOf": [
62
+ "circular(Pet)",
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "honeyPerDay": {
67
+ "type": "number",
68
+ "description": "Average amount of honey produced per day in ounces",
69
+ "example": 3.14,
70
+ "multipleOf": 0.01,
71
+ "default": 0
72
+ }
73
+ },
74
+ "required": ["honeyPerDay"]
75
+ }
76
+ ],
77
+ "title": "HoneyBee"
78
+ }
79
+ }
80
+ },
81
+ "properties": {
82
+ "id": {
83
+ "externalDocs": {
84
+ "description": "Find more info here",
85
+ "url": "https://example.com"
86
+ },
87
+ "description": "Pet ID",
88
+ "allOf": [
89
+ {
90
+ "type": "integer",
91
+ "format": "int64",
92
+ "readOnly": true,
93
+ "title": "Id"
94
+ }
95
+ ]
96
+ },
97
+ "category": {
98
+ "description": "Categories this pet belongs to",
99
+ "allOf": [
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "id": {
104
+ "description": "Category ID",
105
+ "allOf": [
106
+ {
107
+ "type": "integer",
108
+ "format": "int64",
109
+ "readOnly": true,
110
+ "title": "Id"
111
+ }
112
+ ]
113
+ },
114
+ "name": {
115
+ "description": "Category name",
116
+ "type": "string",
117
+ "minLength": 1
118
+ },
119
+ "sub": {
120
+ "description": "Test Sub Category",
121
+ "type": "object",
122
+ "properties": {
123
+ "prop1": {
124
+ "type": "string",
125
+ "description": "Dumb Property"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "xml": { "name": "Category" },
131
+ "title": "Category"
132
+ }
133
+ ]
134
+ },
135
+ "name": {
136
+ "description": "The name given to a pet",
137
+ "type": "string",
138
+ "example": "Guru"
139
+ },
140
+ "photoUrls": {
141
+ "description": "The list of URL to a cute photos featuring pet",
142
+ "type": "array",
143
+ "maxItems": 20,
144
+ "xml": { "name": "photoUrl", "wrapped": true },
145
+ "items": { "type": "string", "format": "url" }
146
+ },
147
+ "friend": { "allOf": ["circular(Pet)"] },
148
+ "tags": {
149
+ "description": "Tags attached to the pet",
150
+ "type": "array",
151
+ "minItems": 1,
152
+ "xml": { "name": "tag", "wrapped": true },
153
+ "items": {
154
+ "type": "object",
155
+ "properties": {
156
+ "id": {
157
+ "description": "Tag ID",
158
+ "allOf": [
159
+ {
160
+ "type": "integer",
161
+ "format": "int64",
162
+ "readOnly": true,
163
+ "title": "Id"
164
+ }
165
+ ]
166
+ },
167
+ "name": {
168
+ "description": "Tag name",
169
+ "type": "string",
170
+ "minLength": 1
171
+ }
172
+ },
173
+ "xml": { "name": "Tag" },
174
+ "title": "Tag"
175
+ }
176
+ },
177
+ "status": {
178
+ "type": "string",
179
+ "description": "Pet status in the store",
180
+ "enum": ["available", "pending", "sold"]
181
+ },
182
+ "petType": {
183
+ "description": "Type of a pet",
184
+ "type": "string",
185
+ "oneOf": [
186
+ {
187
+ "x-tags": ["pet"],
188
+ "description": "A representation of a cat",
189
+ "allOf": [
190
+ "circular(Pet)",
191
+ {
192
+ "type": "object",
193
+ "properties": {
194
+ "huntingSkill": {
195
+ "type": "string",
196
+ "description": "The measured skill for hunting",
197
+ "default": "lazy",
198
+ "example": "adventurous",
199
+ "enum": [
200
+ "clueless",
201
+ "lazy",
202
+ "adventurous",
203
+ "aggressive"
204
+ ]
205
+ }
206
+ },
207
+ "required": ["huntingSkill"]
208
+ }
209
+ ],
210
+ "title": "Cat"
211
+ },
212
+ {
213
+ "description": "A representation of a dog",
214
+ "allOf": [
215
+ "circular(Pet)",
216
+ {
217
+ "type": "object",
218
+ "properties": {
219
+ "packSize": {
220
+ "type": "integer",
221
+ "format": "int32",
222
+ "description": "The size of the pack the dog is from",
223
+ "default": 1,
224
+ "minimum": 1
225
+ }
226
+ },
227
+ "required": ["packSize"]
228
+ }
229
+ ],
230
+ "title": "Dog"
231
+ },
232
+ {
233
+ "description": "A representation of a honey bee",
234
+ "allOf": [
235
+ "circular(Pet)",
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "honeyPerDay": {
240
+ "type": "number",
241
+ "description": "Average amount of honey produced per day in ounces",
242
+ "example": 3.14,
243
+ "multipleOf": 0.01,
244
+ "default": 0
245
+ }
246
+ },
247
+ "required": ["honeyPerDay"]
248
+ }
249
+ ],
250
+ "title": "HoneyBee"
251
+ }
252
+ ]
253
+ }
254
+ },
255
+ "xml": { "name": "Pet" },
256
+ "title": "Pet"
257
+ }
258
+ },
259
+ "application/xml": {
260
+ "schema": {
261
+ "type": "object",
262
+ "required": ["name", "photoUrls", "tags"],
263
+ "discriminator": {
264
+ "propertyName": "petType",
265
+ "mapping": {
266
+ "cat": {
267
+ "x-tags": ["pet"],
268
+ "description": "A representation of a cat",
269
+ "allOf": [
270
+ "circular(Pet)",
271
+ {
272
+ "type": "object",
273
+ "properties": {
274
+ "huntingSkill": {
275
+ "type": "string",
276
+ "description": "The measured skill for hunting",
277
+ "default": "lazy",
278
+ "example": "adventurous",
279
+ "enum": [
280
+ "clueless",
281
+ "lazy",
282
+ "adventurous",
283
+ "aggressive"
284
+ ]
285
+ }
286
+ },
287
+ "required": ["huntingSkill"]
288
+ }
289
+ ],
290
+ "title": "Cat"
291
+ },
292
+ "dog": {
293
+ "description": "A representation of a dog",
294
+ "allOf": [
295
+ "circular(Pet)",
296
+ {
297
+ "type": "object",
298
+ "properties": {
299
+ "packSize": {
300
+ "type": "integer",
301
+ "format": "int32",
302
+ "description": "The size of the pack the dog is from",
303
+ "default": 1,
304
+ "minimum": 1
305
+ }
306
+ },
307
+ "required": ["packSize"]
308
+ }
309
+ ],
310
+ "title": "Dog"
311
+ },
312
+ "bee": {
313
+ "description": "A representation of a honey bee",
314
+ "allOf": [
315
+ "circular(Pet)",
316
+ {
317
+ "type": "object",
318
+ "properties": {
319
+ "honeyPerDay": {
320
+ "type": "number",
321
+ "description": "Average amount of honey produced per day in ounces",
322
+ "example": 3.14,
323
+ "multipleOf": 0.01,
324
+ "default": 0
325
+ }
326
+ },
327
+ "required": ["honeyPerDay"]
328
+ }
329
+ ],
330
+ "title": "HoneyBee"
331
+ }
332
+ }
333
+ },
334
+ "properties": {
335
+ "id": {
336
+ "externalDocs": {
337
+ "description": "Find more info here",
338
+ "url": "https://example.com"
339
+ },
340
+ "description": "Pet ID",
341
+ "allOf": [
342
+ {
343
+ "type": "integer",
344
+ "format": "int64",
345
+ "readOnly": true,
346
+ "title": "Id"
347
+ }
348
+ ]
349
+ },
350
+ "category": {
351
+ "description": "Categories this pet belongs to",
352
+ "allOf": [
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "id": {
357
+ "description": "Category ID",
358
+ "allOf": [
359
+ {
360
+ "type": "integer",
361
+ "format": "int64",
362
+ "readOnly": true,
363
+ "title": "Id"
364
+ }
365
+ ]
366
+ },
367
+ "name": {
368
+ "description": "Category name",
369
+ "type": "string",
370
+ "minLength": 1
371
+ },
372
+ "sub": {
373
+ "description": "Test Sub Category",
374
+ "type": "object",
375
+ "properties": {
376
+ "prop1": {
377
+ "type": "string",
378
+ "description": "Dumb Property"
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "xml": { "name": "Category" },
384
+ "title": "Category"
385
+ }
386
+ ]
387
+ },
388
+ "name": {
389
+ "description": "The name given to a pet",
390
+ "type": "string",
391
+ "example": "Guru"
392
+ },
393
+ "photoUrls": {
394
+ "description": "The list of URL to a cute photos featuring pet",
395
+ "type": "array",
396
+ "maxItems": 20,
397
+ "xml": { "name": "photoUrl", "wrapped": true },
398
+ "items": { "type": "string", "format": "url" }
399
+ },
400
+ "friend": { "allOf": ["circular(Pet)"] },
401
+ "tags": {
402
+ "description": "Tags attached to the pet",
403
+ "type": "array",
404
+ "minItems": 1,
405
+ "xml": { "name": "tag", "wrapped": true },
406
+ "items": {
407
+ "type": "object",
408
+ "properties": {
409
+ "id": {
410
+ "description": "Tag ID",
411
+ "allOf": [
412
+ {
413
+ "type": "integer",
414
+ "format": "int64",
415
+ "readOnly": true,
416
+ "title": "Id"
417
+ }
418
+ ]
419
+ },
420
+ "name": {
421
+ "description": "Tag name",
422
+ "type": "string",
423
+ "minLength": 1
424
+ }
425
+ },
426
+ "xml": { "name": "Tag" },
427
+ "title": "Tag"
428
+ }
429
+ },
430
+ "status": {
431
+ "type": "string",
432
+ "description": "Pet status in the store",
433
+ "enum": ["available", "pending", "sold"]
434
+ },
435
+ "petType": {
436
+ "description": "Type of a pet",
437
+ "type": "string",
438
+ "oneOf": [
439
+ {
440
+ "x-tags": ["pet"],
441
+ "description": "A representation of a cat",
442
+ "allOf": [
443
+ "circular(Pet)",
444
+ {
445
+ "type": "object",
446
+ "properties": {
447
+ "huntingSkill": {
448
+ "type": "string",
449
+ "description": "The measured skill for hunting",
450
+ "default": "lazy",
451
+ "example": "adventurous",
452
+ "enum": [
453
+ "clueless",
454
+ "lazy",
455
+ "adventurous",
456
+ "aggressive"
457
+ ]
458
+ }
459
+ },
460
+ "required": ["huntingSkill"]
461
+ }
462
+ ],
463
+ "title": "Cat"
464
+ },
465
+ {
466
+ "description": "A representation of a dog",
467
+ "allOf": [
468
+ "circular(Pet)",
469
+ {
470
+ "type": "object",
471
+ "properties": {
472
+ "packSize": {
473
+ "type": "integer",
474
+ "format": "int32",
475
+ "description": "The size of the pack the dog is from",
476
+ "default": 1,
477
+ "minimum": 1
478
+ }
479
+ },
480
+ "required": ["packSize"]
481
+ }
482
+ ],
483
+ "title": "Dog"
484
+ },
485
+ {
486
+ "description": "A representation of a honey bee",
487
+ "allOf": [
488
+ "circular(Pet)",
489
+ {
490
+ "type": "object",
491
+ "properties": {
492
+ "honeyPerDay": {
493
+ "type": "number",
494
+ "description": "Average amount of honey produced per day in ounces",
495
+ "example": 3.14,
496
+ "multipleOf": 0.01,
497
+ "default": 0
498
+ }
499
+ },
500
+ "required": ["honeyPerDay"]
501
+ }
502
+ ],
503
+ "title": "HoneyBee"
504
+ }
505
+ ]
506
+ }
507
+ },
508
+ "xml": { "name": "Pet" },
509
+ "title": "Pet"
510
+ }
511
+ }
512
+ }
513
+ },
514
+ "400": { "description": "Invalid ID supplied" },
515
+ "404": { "description": "Pet not found" }
516
+ }
517
+ }
@@ -0,0 +1,49 @@
1
+ ---
2
+ id: get-pet-by-id
3
+ title: "Find pet by ID"
4
+ description: "Returns a single pet"
5
+ sidebar_label: "Find pet by ID"
6
+ hide_title: true
7
+ hide_table_of_contents: true
8
+ api: eJztWl9v47gR/yoE92UTyFaSXbSAn5pNtlfj9i5BkkV7iIO7sTiSeKFIHUnZ0Qb+7sWQ8h/ZzmbbXoui9UtiiTPDmR9nhjOknrmHwvHRPa/R84eEC3SZlbWXRvMRv0HfWO0YMCd1oZARVcJNjRaIZCz4iBfor9F/aMeCJ7wGCxV6tCT0mWuokI9IeBiVJLQGX/LtmcaXzOQknnnDbJiWJ9zib420KPjI2waJp7aYgV+/cVmJFfDRM/dtTVNJ7bFAyxOeG1uBj6/+8J4vFg8k0NVGO3TEcXZyQv/6irgmy9C5vFFsZSZPeGa0R+2JHupaySwMpL86YnreVcNMf8XM90y4j2gkvC6NN5+tcjyJ8BPukpSopAZvLMmpLU3v2x9XCN6R5IRXUNdSF0STQVDoafDVRTxnlmBzqH1QmoAGRrwJB6WucuLMpM0a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uy2BOoXNzxjBfBXGdjbi6ub2yNGFRCuvSgzVBGBzpDNpS8Zu//ruwtGuWxt1Xw+H87fDY0t0rubNDPWhdR4rgXzJXgGinY6loXphakgyq0a3blxaK9CLpxaM3chyZ8rxVZf2bESZoTvXCqRgRXkrjgw0ZJ5KbOSVfAYziexijqjR9WyupkqmQUviPuSnCqktcQZ2tZoTJjUmWroBIGBbllmBNJ2QL+d9LgEm3ZxKkGXcTfRq9AxeY7WMT83IdKCI0OPfDTRjA3CYnyPbXyIdQEJ6urZAYOwWepQBpvMqLCHEnbLkra/U0gdvqckWyeaLFz6J4v9SUR1jtOEVWZK9TURCXSP3tRs42Krq/CoW4lb8Rm1AnzdaC031ZXJP53/8InG0VbuKr9FO5MZruvjjaQRSNLuw0fI/EY3F7JZU9fGUsmFFUgVyzhKHX9ay9g5G38piqjcehooU4Tqos9jI+Gw45WmC7xlogtsw1rHAwh/h08+toXR4CA0iBdgH7fmSGVV9AUFqpel0ehKpJIZaoebwNR05MjOwhr0ujSKNAijIdo6Vpd+Gl98/PH244AWrvRVPPqsjfMV6A3B4eIhnN53x+29Cux5/XHqSx/sdiWsxyef1gpkqHCDhs9dFxzPyxI+ip/qPiS8NM7T++dn2nc+W7VY0OvfGrShoU74DKwMh3nUKgvp6LfgoxyUw6/o+PamO1A4Yvu/+t2r7bJb0NQqzEA19MQTHlqq7gPjcCbadRCkUxw7zzKs/QbXzge8vbOB7z7e0ervNCmxW+p+bBzf9jVa91Vx8sfQubxA/Pwcm5/FYkUfh17kWLVHkZqgeVgsFn8HqVHHSA==
9
+ sidebar_class_name: "get api-method"
10
+ info_path: docs/petstore/swagger-petstore-yaml
11
+ custom_edit_url: null
12
+ ---
13
+
14
+ import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
15
+ import ParamsDetails from "@theme/ParamsDetails";
16
+ import RequestSchema from "@theme/RequestSchema";
17
+ import StatusCodes from "@theme/StatusCodes";
18
+ import OperationTabs from "@theme/OperationTabs";
19
+ import TabItem from "@theme/TabItem";
20
+ import Heading from "@theme/Heading";
21
+ import Translate from "@docusaurus/Translate";
22
+
23
+ <Heading
24
+ as={"h1"}
25
+ className={"openapi__heading"}
26
+ children={"Find pet by ID"}
27
+ ></Heading>
28
+
29
+ <MethodEndpoint
30
+ method={"get"}
31
+ path={"/pet/{petId}"}
32
+ context={"endpoint"}
33
+ ></MethodEndpoint>
34
+
35
+ Returns a single pet
36
+
37
+ <Heading id={"request"} as={"h2"} className={"openapi-tabs__heading"}>
38
+ <Translate id="theme.openapi.request.title">Request</Translate>
39
+ </Heading>
40
+
41
+ <ParamsDetails
42
+ {...require("./get-pet-by-id.ParamsDetails.json")}
43
+ ></ParamsDetails>
44
+
45
+ <RequestSchema
46
+ {...require("./get-pet-by-id.RequestSchema.json")}
47
+ ></RequestSchema>
48
+
49
+ <StatusCodes {...require("./get-pet-by-id.StatusCodes.json")}></StatusCodes>
@@ -0,0 +1,11 @@
1
+ {
2
+ "parameters": [
3
+ {
4
+ "name": "username",
5
+ "in": "path",
6
+ "description": "The name that needs to be fetched. Use user1 for testing. ",
7
+ "required": true,
8
+ "schema": { "type": "string" }
9
+ }
10
+ ]
11
+ }