create-docusaurus-openapi-docs 5.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 (137) hide show
  1. package/bin/index.js +36 -0
  2. package/lib/index.d.ts +4 -0
  3. package/lib/index.js +191 -0
  4. package/package.json +47 -0
  5. package/templates/default/blog/2019-05-28-first-blog-post.md +12 -0
  6. package/templates/default/blog/2019-05-29-long-blog-post.md +44 -0
  7. package/templates/default/blog/2021-08-01-mdx-blog-post.mdx +20 -0
  8. package/templates/default/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
  9. package/templates/default/blog/2021-08-26-welcome/index.md +25 -0
  10. package/templates/default/blog/authors.yml +17 -0
  11. package/templates/default/docs/intro.md +49 -0
  12. package/templates/default/docs/petstore/add-pet.ParamsDetails.json +19 -0
  13. package/templates/default/docs/petstore/add-pet.RequestSchema.json +288 -0
  14. package/templates/default/docs/petstore/add-pet.StatusCodes.json +1 -0
  15. package/templates/default/docs/petstore/add-pet.api.mdx +45 -0
  16. package/templates/default/docs/petstore/create-user.RequestSchema.json +345 -0
  17. package/templates/default/docs/petstore/create-user.StatusCodes.json +1 -0
  18. package/templates/default/docs/petstore/create-user.api.mdx +45 -0
  19. package/templates/default/docs/petstore/create-users-with-array-input.RequestSchema.json +348 -0
  20. package/templates/default/docs/petstore/create-users-with-array-input.StatusCodes.json +1 -0
  21. package/templates/default/docs/petstore/create-users-with-array-input.api.mdx +47 -0
  22. package/templates/default/docs/petstore/create-users-with-list-input.RequestSchema.json +348 -0
  23. package/templates/default/docs/petstore/create-users-with-list-input.StatusCodes.json +1 -0
  24. package/templates/default/docs/petstore/create-users-with-list-input.api.mdx +47 -0
  25. package/templates/default/docs/petstore/delete-order.ParamsDetails.json +11 -0
  26. package/templates/default/docs/petstore/delete-order.RequestSchema.json +1 -0
  27. package/templates/default/docs/petstore/delete-order.StatusCodes.json +6 -0
  28. package/templates/default/docs/petstore/delete-order.api.mdx +49 -0
  29. package/templates/default/docs/petstore/delete-pet.ParamsDetails.json +18 -0
  30. package/templates/default/docs/petstore/delete-pet.RequestSchema.json +1 -0
  31. package/templates/default/docs/petstore/delete-pet.StatusCodes.json +1 -0
  32. package/templates/default/docs/petstore/delete-pet.api.mdx +43 -0
  33. package/templates/default/docs/petstore/delete-user.ParamsDetails.json +11 -0
  34. package/templates/default/docs/petstore/delete-user.RequestSchema.json +1 -0
  35. package/templates/default/docs/petstore/delete-user.StatusCodes.json +6 -0
  36. package/templates/default/docs/petstore/delete-user.api.mdx +45 -0
  37. package/templates/default/docs/petstore/find-pets-by-status.ParamsDetails.json +21 -0
  38. package/templates/default/docs/petstore/find-pets-by-status.RequestSchema.json +1 -0
  39. package/templates/default/docs/petstore/find-pets-by-status.StatusCodes.json +522 -0
  40. package/templates/default/docs/petstore/find-pets-by-status.api.mdx +51 -0
  41. package/templates/default/docs/petstore/find-pets-by-tags.ParamsDetails.json +12 -0
  42. package/templates/default/docs/petstore/find-pets-by-tags.RequestSchema.json +1 -0
  43. package/templates/default/docs/petstore/find-pets-by-tags.StatusCodes.json +522 -0
  44. package/templates/default/docs/petstore/find-pets-by-tags.api.mdx +55 -0
  45. package/templates/default/docs/petstore/get-inventory.RequestSchema.json +1 -0
  46. package/templates/default/docs/petstore/get-inventory.StatusCodes.json +15 -0
  47. package/templates/default/docs/petstore/get-inventory.api.mdx +43 -0
  48. package/templates/default/docs/petstore/get-order-by-id.ParamsDetails.json +16 -0
  49. package/templates/default/docs/petstore/get-order-by-id.RequestSchema.json +1 -0
  50. package/templates/default/docs/petstore/get-order-by-id.StatusCodes.json +127 -0
  51. package/templates/default/docs/petstore/get-order-by-id.api.mdx +49 -0
  52. package/templates/default/docs/petstore/get-pet-by-id.ParamsDetails.json +12 -0
  53. package/templates/default/docs/petstore/get-pet-by-id.RequestSchema.json +1 -0
  54. package/templates/default/docs/petstore/get-pet-by-id.StatusCodes.json +517 -0
  55. package/templates/default/docs/petstore/get-pet-by-id.api.mdx +49 -0
  56. package/templates/default/docs/petstore/get-user-by-name.ParamsDetails.json +11 -0
  57. package/templates/default/docs/petstore/get-user-by-name.RequestSchema.json +1 -0
  58. package/templates/default/docs/petstore/get-user-by-name.StatusCodes.json +683 -0
  59. package/templates/default/docs/petstore/get-user-by-name.api.mdx +47 -0
  60. package/templates/default/docs/petstore/login-user.ParamsDetails.json +18 -0
  61. package/templates/default/docs/petstore/login-user.RequestSchema.json +1 -0
  62. package/templates/default/docs/petstore/login-user.StatusCodes.json +29 -0
  63. package/templates/default/docs/petstore/login-user.api.mdx +43 -0
  64. package/templates/default/docs/petstore/logout-user.RequestSchema.json +1 -0
  65. package/templates/default/docs/petstore/logout-user.StatusCodes.json +1 -0
  66. package/templates/default/docs/petstore/logout-user.api.mdx +39 -0
  67. package/templates/default/docs/petstore/new-pet.RequestSchema.json +260 -0
  68. package/templates/default/docs/petstore/new-pet.StatusCodes.json +7 -0
  69. package/templates/default/docs/petstore/new-pet.api.mdx +45 -0
  70. package/templates/default/docs/petstore/pet.tag.mdx +15 -0
  71. package/templates/default/docs/petstore/place-order.RequestSchema.json +96 -0
  72. package/templates/default/docs/petstore/place-order.StatusCodes.json +133 -0
  73. package/templates/default/docs/petstore/place-order.api.mdx +43 -0
  74. package/templates/default/docs/petstore/schemas/cat.Schema.json +224 -0
  75. package/templates/default/docs/petstore/schemas/cat.schema.mdx +30 -0
  76. package/templates/default/docs/petstore/sidebar.ts +180 -0
  77. package/templates/default/docs/petstore/store.tag.mdx +15 -0
  78. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.2.json +28 -0
  79. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.3.json +28 -0
  80. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.4.json +25 -0
  81. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.5.json +20 -0
  82. package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.json +27 -0
  83. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.2.json +21 -0
  84. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.3.json +17 -0
  85. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.4.json +9 -0
  86. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.5.json +9 -0
  87. package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.json +20 -0
  88. package/templates/default/docs/petstore/subscribe-to-the-store-events.api.mdx +120 -0
  89. package/templates/default/docs/petstore/swagger-petstore-yaml.info.mdx +249 -0
  90. package/templates/default/docs/petstore/update-pet-with-form.ParamsDetails.json +11 -0
  91. package/templates/default/docs/petstore/update-pet-with-form.RequestSchema.json +22 -0
  92. package/templates/default/docs/petstore/update-pet-with-form.StatusCodes.json +1 -0
  93. package/templates/default/docs/petstore/update-pet-with-form.api.mdx +49 -0
  94. package/templates/default/docs/petstore/update-pet.ParamsDetails.json +19 -0
  95. package/templates/default/docs/petstore/update-pet.RequestSchema.json +288 -0
  96. package/templates/default/docs/petstore/update-pet.StatusCodes.json +7 -0
  97. package/templates/default/docs/petstore/update-pet.api.mdx +43 -0
  98. package/templates/default/docs/petstore/update-user.ParamsDetails.json +11 -0
  99. package/templates/default/docs/petstore/update-user.RequestSchema.json +345 -0
  100. package/templates/default/docs/petstore/update-user.StatusCodes.json +6 -0
  101. package/templates/default/docs/petstore/update-user.api.mdx +45 -0
  102. package/templates/default/docs/petstore/upload-file.ParamsDetails.json +11 -0
  103. package/templates/default/docs/petstore/upload-file.RequestSchema.json +10 -0
  104. package/templates/default/docs/petstore/upload-file.StatusCodes.json +20 -0
  105. package/templates/default/docs/petstore/upload-file.api.mdx +43 -0
  106. package/templates/default/docs/petstore/user.tag.mdx +15 -0
  107. package/templates/default/docs/tutorial-basics/_category_.json +8 -0
  108. package/templates/default/docs/tutorial-basics/congratulations.md +23 -0
  109. package/templates/default/docs/tutorial-basics/create-a-blog-post.md +36 -0
  110. package/templates/default/docs/tutorial-basics/create-a-document.md +55 -0
  111. package/templates/default/docs/tutorial-basics/create-a-page.md +45 -0
  112. package/templates/default/docs/tutorial-basics/deploy-your-site.md +31 -0
  113. package/templates/default/docs/tutorial-basics/markdown-features.mdx +145 -0
  114. package/templates/default/docs/tutorial-extras/_category_.json +7 -0
  115. package/templates/default/docs/tutorial-extras/manage-docs-versions.md +57 -0
  116. package/templates/default/docs/tutorial-extras/translate-your-site.md +90 -0
  117. package/templates/default/docusaurus.config.ts +273 -0
  118. package/templates/default/examples/petstore.yaml +1271 -0
  119. package/templates/default/gitignore +21 -0
  120. package/templates/default/package.json +44 -0
  121. package/templates/default/sidebars.ts +37 -0
  122. package/templates/default/src/components/HomepageFeatures/index.js +64 -0
  123. package/templates/default/src/components/HomepageFeatures/styles.module.css +11 -0
  124. package/templates/default/src/css/custom.css +77 -0
  125. package/templates/default/src/pages/index.js +42 -0
  126. package/templates/default/src/pages/index.module.css +23 -0
  127. package/templates/default/src/pages/markdown-page.md +7 -0
  128. package/templates/default/static/.nojekyll +0 -0
  129. package/templates/default/static/img/docusaurus.png +0 -0
  130. package/templates/default/static/img/favicon.ico +0 -0
  131. package/templates/default/static/img/logo.svg +1 -0
  132. package/templates/default/static/img/tutorial/docsVersionDropdown.png +0 -0
  133. package/templates/default/static/img/tutorial/localeDropdown.png +0 -0
  134. package/templates/default/static/img/undraw_docusaurus_mountain.svg +171 -0
  135. package/templates/default/static/img/undraw_docusaurus_react.svg +170 -0
  136. package/templates/default/static/img/undraw_docusaurus_tree.svg +40 -0
  137. package/templates/default/tsconfig.json +10 -0
@@ -0,0 +1,127 @@
1
+ {
2
+ "responses": {
3
+ "200": {
4
+ "description": "successful operation",
5
+ "content": {
6
+ "application/json": {
7
+ "schema": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "description": "Order ID",
12
+ "allOf": [
13
+ {
14
+ "type": "integer",
15
+ "format": "int64",
16
+ "readOnly": true,
17
+ "title": "Id"
18
+ }
19
+ ]
20
+ },
21
+ "petId": {
22
+ "description": "Pet ID",
23
+ "allOf": [
24
+ {
25
+ "type": "integer",
26
+ "format": "int64",
27
+ "readOnly": true,
28
+ "title": "Id"
29
+ }
30
+ ]
31
+ },
32
+ "quantity": {
33
+ "type": "integer",
34
+ "format": "int32",
35
+ "minimum": 1,
36
+ "default": 1
37
+ },
38
+ "shipDate": {
39
+ "description": "Estimated ship date",
40
+ "type": "string",
41
+ "format": "date-time"
42
+ },
43
+ "status": {
44
+ "type": "string",
45
+ "description": "Order Status",
46
+ "enum": ["placed", "approved", "delivered"]
47
+ },
48
+ "complete": {
49
+ "description": "Indicates whenever order was completed or not",
50
+ "type": "boolean",
51
+ "default": false,
52
+ "readOnly": true
53
+ },
54
+ "requestId": {
55
+ "description": "Unique Request Id",
56
+ "type": "string",
57
+ "writeOnly": true
58
+ }
59
+ },
60
+ "xml": { "name": "Order" },
61
+ "title": "Order"
62
+ }
63
+ },
64
+ "application/xml": {
65
+ "schema": {
66
+ "type": "object",
67
+ "properties": {
68
+ "id": {
69
+ "description": "Order ID",
70
+ "allOf": [
71
+ {
72
+ "type": "integer",
73
+ "format": "int64",
74
+ "readOnly": true,
75
+ "title": "Id"
76
+ }
77
+ ]
78
+ },
79
+ "petId": {
80
+ "description": "Pet ID",
81
+ "allOf": [
82
+ {
83
+ "type": "integer",
84
+ "format": "int64",
85
+ "readOnly": true,
86
+ "title": "Id"
87
+ }
88
+ ]
89
+ },
90
+ "quantity": {
91
+ "type": "integer",
92
+ "format": "int32",
93
+ "minimum": 1,
94
+ "default": 1
95
+ },
96
+ "shipDate": {
97
+ "description": "Estimated ship date",
98
+ "type": "string",
99
+ "format": "date-time"
100
+ },
101
+ "status": {
102
+ "type": "string",
103
+ "description": "Order Status",
104
+ "enum": ["placed", "approved", "delivered"]
105
+ },
106
+ "complete": {
107
+ "description": "Indicates whenever order was completed or not",
108
+ "type": "boolean",
109
+ "default": false,
110
+ "readOnly": true
111
+ },
112
+ "requestId": {
113
+ "description": "Unique Request Id",
114
+ "type": "string",
115
+ "writeOnly": true
116
+ }
117
+ },
118
+ "xml": { "name": "Order" },
119
+ "title": "Order"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "400": { "description": "Invalid ID supplied" },
125
+ "404": { "description": "Order not found" }
126
+ }
127
+ }
@@ -0,0 +1,49 @@
1
+ ---
2
+ id: get-order-by-id
3
+ title: "Find purchase order by ID"
4
+ description: "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions"
5
+ sidebar_label: "Find purchase order by ID"
6
+ hide_title: true
7
+ hide_table_of_contents: true
8
+ api: eJztWN1v4zYS/1cG3JdNIEtJdnsFjLvDpcm2MNpeFsku7go7aGlyZLGhSC1J2VED/++HISV/xN6mD3f30n2yTA6HMz/O9xMLfOHZeMp8sA7ZfcYkeuFUE5Q1bMy+tQ6WXCsJDn1jjUcIrgNlAi7QweTaw0qFimhahL/+Db4C6+DvcH6Ww02o0KUdotIaFmjQ8YAS8FFgvMOzjNmGVpU1E8nGbIHhxkl033QTyTLWcMdrDOhIzCdmeI1szCxRxH1FYjY8VOy57JNrsCU0GCBUPIBBlB6ChTlCiUFUSMcdfmqVQ8nGwbWYMS8qrDkbP7HQNXRTryrLWGldzUNa+stblrFaGVW3NRufZ6zmj+n7q/X6ntgmtDxxujg7o5996XwrBHpftho2+rOMCWsCmkD0vGm0EnGj+NXToadD8ez8VxSBcHLEJqh0pZKHN0ZUYXLNMsa1vikjni9r6ZDLG6O7AaGggqYjE8nW9+uMNRgmR257j+G/f9enlpugQvfi+7y5ePY+Ekve6sDG5+uM+Uo11zzgodTvfFB1tFCiAUlE2XCVD06Zxe5NtD8KqkZGXAMPrd8RbUN/7B3uEnXG0JCIU9ZoLqJJ8qZxdhk/JWq1RDJP0l7YutF4TOyJkWQp5GcVGlyig+ghsOIehmOSXNPYsFVobq1GbtgOPCXXHp8/xDr5CfqjL/3RqE8twm2igOiVzxFYORVwh+E6Y4+1Jl69Q0dQCMXhyfuFdbbnB/2hL27wxQ3+XG5ApG+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nZkDWdybwR1hhfFwOJa5gukQjrYOosCcrf/nmYq7tvKi5D+gKaYVPy6PEarRlldfyZDCEQYg7MqOyr/K/WMSf2CKunPV+dOPUQhm4RW9bJxDuKk4l9I5lbAD+3QPw+urm9u4EqALCrRXFXkBxIzCNr2D6rzdXQLFsq9VqtcpXb3LrFsWH20JY52NovDQyzZO4pkwHIl4vbc0T37o1vRlD6WwdY+Hc2ZWPQf5S680kzUPFl4TvSmkpuJNkrjiySZNVpUQFNX9ATzzqTf+iO2jauVYiWkHKS2qukd6SWp7OGsxAGaFbSQhw04GwEikd0LdXAQewKYtTCTr43cxsXMeWJToPYWWjp0VD5nvk45kBGMXH+B679CfVBcSor2dHwGOyNLEMtsLqmEMJu6Gk3c8UylCujO81M6ThYJ+QOpWE6grnGdR2TvU1EUn0D8E2sDMr6Cs86lZSKr6gVoBtW6shqW5U/unyxx9oH13tb8o7dEslcFsf7wSNSFL04zouwk4HF6NZ2zTWUcmFNVc6lXEUOv6x5cGyZ33P57yIyq3HkbaLWF3sn3GJMO/PKts73hDo4rG8ib0n1+EDPoY0k0gKR6aRveTu4dkdhaoX+4wi1ee50e6GpVYCjcddYBouKoSL+AZ7XRp5Go+70dv6o774YXL17p9370b0cFWodexXG+tDzc0O42+pYGpaJyrusW/4512auuwVY0/b6er/Z7Dd18YBH0PRaK5i6RxVf+ob7WHwnqWJNsvYeBht32essj4QzdMTJbePTq/XtPypRdex8fQ+Y0vuFJ+TOU+fmFSevuVmfPFZ7V/f9mPvE/hDU/KjigwdiqH2JKLBxoxlLLZxmwl9HFj1fQsJmXYvBcG0c+5g2E1N+GY28d27D2y9/g8xBJv2
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 purchase order by ID"}
27
+ ></Heading>
28
+
29
+ <MethodEndpoint
30
+ method={"get"}
31
+ path={"/store/order/{orderId}"}
32
+ context={"endpoint"}
33
+ ></MethodEndpoint>
34
+
35
+ For valid response try integer IDs with value &lt; 5 or > 10. Other values will generated exceptions
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-order-by-id.ParamsDetails.json")}
43
+ ></ParamsDetails>
44
+
45
+ <RequestSchema
46
+ {...require("./get-order-by-id.RequestSchema.json")}
47
+ ></RequestSchema>
48
+
49
+ <StatusCodes {...require("./get-order-by-id.StatusCodes.json")}></StatusCodes>
@@ -0,0 +1,12 @@
1
+ {
2
+ "parameters": [
3
+ {
4
+ "name": "petId",
5
+ "in": "path",
6
+ "description": "ID of pet to return",
7
+ "required": true,
8
+ "deprecated": true,
9
+ "schema": { "type": "integer", "format": "int64" }
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1 @@
1
+ { "title": "Body" }