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.
- package/LICENSE +21 -0
- package/bin/index.js +36 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +191 -0
- package/package.json +48 -0
- package/templates/default/blog/2019-05-28-first-blog-post.md +12 -0
- package/templates/default/blog/2019-05-29-long-blog-post.md +44 -0
- package/templates/default/blog/2021-08-01-mdx-blog-post.mdx +20 -0
- package/templates/default/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
- package/templates/default/blog/2021-08-26-welcome/index.md +25 -0
- package/templates/default/blog/authors.yml +17 -0
- package/templates/default/docs/intro.md +49 -0
- package/templates/default/docs/petstore/add-pet.ParamsDetails.json +19 -0
- package/templates/default/docs/petstore/add-pet.RequestSchema.json +288 -0
- package/templates/default/docs/petstore/add-pet.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/add-pet.api.mdx +45 -0
- package/templates/default/docs/petstore/create-user.RequestSchema.json +345 -0
- package/templates/default/docs/petstore/create-user.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/create-user.api.mdx +45 -0
- package/templates/default/docs/petstore/create-users-with-array-input.RequestSchema.json +348 -0
- package/templates/default/docs/petstore/create-users-with-array-input.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/create-users-with-array-input.api.mdx +47 -0
- package/templates/default/docs/petstore/create-users-with-list-input.RequestSchema.json +348 -0
- package/templates/default/docs/petstore/create-users-with-list-input.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/create-users-with-list-input.api.mdx +47 -0
- package/templates/default/docs/petstore/delete-order.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/delete-order.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/delete-order.StatusCodes.json +6 -0
- package/templates/default/docs/petstore/delete-order.api.mdx +49 -0
- package/templates/default/docs/petstore/delete-pet.ParamsDetails.json +18 -0
- package/templates/default/docs/petstore/delete-pet.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/delete-pet.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/delete-pet.api.mdx +43 -0
- package/templates/default/docs/petstore/delete-user.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/delete-user.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/delete-user.StatusCodes.json +6 -0
- package/templates/default/docs/petstore/delete-user.api.mdx +45 -0
- package/templates/default/docs/petstore/find-pets-by-status.ParamsDetails.json +21 -0
- package/templates/default/docs/petstore/find-pets-by-status.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/find-pets-by-status.StatusCodes.json +522 -0
- package/templates/default/docs/petstore/find-pets-by-status.api.mdx +51 -0
- package/templates/default/docs/petstore/find-pets-by-tags.ParamsDetails.json +12 -0
- package/templates/default/docs/petstore/find-pets-by-tags.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/find-pets-by-tags.StatusCodes.json +522 -0
- package/templates/default/docs/petstore/find-pets-by-tags.api.mdx +55 -0
- package/templates/default/docs/petstore/get-inventory.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/get-inventory.StatusCodes.json +15 -0
- package/templates/default/docs/petstore/get-inventory.api.mdx +43 -0
- package/templates/default/docs/petstore/get-order-by-id.ParamsDetails.json +16 -0
- package/templates/default/docs/petstore/get-order-by-id.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/get-order-by-id.StatusCodes.json +127 -0
- package/templates/default/docs/petstore/get-order-by-id.api.mdx +49 -0
- package/templates/default/docs/petstore/get-pet-by-id.ParamsDetails.json +12 -0
- package/templates/default/docs/petstore/get-pet-by-id.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/get-pet-by-id.StatusCodes.json +517 -0
- package/templates/default/docs/petstore/get-pet-by-id.api.mdx +49 -0
- package/templates/default/docs/petstore/get-user-by-name.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/get-user-by-name.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/get-user-by-name.StatusCodes.json +683 -0
- package/templates/default/docs/petstore/get-user-by-name.api.mdx +47 -0
- package/templates/default/docs/petstore/login-user.ParamsDetails.json +18 -0
- package/templates/default/docs/petstore/login-user.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/login-user.StatusCodes.json +29 -0
- package/templates/default/docs/petstore/login-user.api.mdx +43 -0
- package/templates/default/docs/petstore/logout-user.RequestSchema.json +1 -0
- package/templates/default/docs/petstore/logout-user.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/logout-user.api.mdx +39 -0
- package/templates/default/docs/petstore/new-pet.RequestSchema.json +260 -0
- package/templates/default/docs/petstore/new-pet.StatusCodes.json +7 -0
- package/templates/default/docs/petstore/new-pet.api.mdx +45 -0
- package/templates/default/docs/petstore/pet.tag.mdx +15 -0
- package/templates/default/docs/petstore/place-order.RequestSchema.json +96 -0
- package/templates/default/docs/petstore/place-order.StatusCodes.json +133 -0
- package/templates/default/docs/petstore/place-order.api.mdx +43 -0
- package/templates/default/docs/petstore/schemas/cat.Schema.json +224 -0
- package/templates/default/docs/petstore/schemas/cat.schema.mdx +30 -0
- package/templates/default/docs/petstore/sidebar.ts +180 -0
- package/templates/default/docs/petstore/store.tag.mdx +15 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.2.json +28 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.3.json +28 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.4.json +25 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.5.json +20 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.RequestSchema.json +27 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.2.json +21 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.3.json +17 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.4.json +9 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.5.json +9 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.StatusCodes.json +20 -0
- package/templates/default/docs/petstore/subscribe-to-the-store-events.api.mdx +120 -0
- package/templates/default/docs/petstore/swagger-petstore-yaml.info.mdx +249 -0
- package/templates/default/docs/petstore/update-pet-with-form.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/update-pet-with-form.RequestSchema.json +22 -0
- package/templates/default/docs/petstore/update-pet-with-form.StatusCodes.json +1 -0
- package/templates/default/docs/petstore/update-pet-with-form.api.mdx +49 -0
- package/templates/default/docs/petstore/update-pet.ParamsDetails.json +19 -0
- package/templates/default/docs/petstore/update-pet.RequestSchema.json +288 -0
- package/templates/default/docs/petstore/update-pet.StatusCodes.json +7 -0
- package/templates/default/docs/petstore/update-pet.api.mdx +43 -0
- package/templates/default/docs/petstore/update-user.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/update-user.RequestSchema.json +345 -0
- package/templates/default/docs/petstore/update-user.StatusCodes.json +6 -0
- package/templates/default/docs/petstore/update-user.api.mdx +45 -0
- package/templates/default/docs/petstore/upload-file.ParamsDetails.json +11 -0
- package/templates/default/docs/petstore/upload-file.RequestSchema.json +10 -0
- package/templates/default/docs/petstore/upload-file.StatusCodes.json +20 -0
- package/templates/default/docs/petstore/upload-file.api.mdx +43 -0
- package/templates/default/docs/petstore/user.tag.mdx +15 -0
- package/templates/default/docs/tutorial-basics/_category_.json +8 -0
- package/templates/default/docs/tutorial-basics/congratulations.md +23 -0
- package/templates/default/docs/tutorial-basics/create-a-blog-post.md +36 -0
- package/templates/default/docs/tutorial-basics/create-a-document.md +55 -0
- package/templates/default/docs/tutorial-basics/create-a-page.md +45 -0
- package/templates/default/docs/tutorial-basics/deploy-your-site.md +31 -0
- package/templates/default/docs/tutorial-basics/markdown-features.mdx +145 -0
- package/templates/default/docs/tutorial-extras/_category_.json +7 -0
- package/templates/default/docs/tutorial-extras/manage-docs-versions.md +57 -0
- package/templates/default/docs/tutorial-extras/translate-your-site.md +90 -0
- package/templates/default/docusaurus.config.ts +273 -0
- package/templates/default/examples/petstore.yaml +1271 -0
- package/templates/default/gitignore +21 -0
- package/templates/default/package.json +44 -0
- package/templates/default/sidebars.ts +37 -0
- package/templates/default/src/components/HomepageFeatures/index.js +64 -0
- package/templates/default/src/components/HomepageFeatures/styles.module.css +11 -0
- package/templates/default/src/css/custom.css +77 -0
- package/templates/default/src/pages/index.js +42 -0
- package/templates/default/src/pages/index.module.css +23 -0
- package/templates/default/src/pages/markdown-page.md +7 -0
- package/templates/default/static/.nojekyll +0 -0
- package/templates/default/static/img/docusaurus.png +0 -0
- package/templates/default/static/img/favicon.ico +0 -0
- package/templates/default/static/img/logo.svg +1 -0
- package/templates/default/static/img/tutorial/docsVersionDropdown.png +0 -0
- package/templates/default/static/img/tutorial/localeDropdown.png +0 -0
- package/templates/default/static/img/undraw_docusaurus_mountain.svg +171 -0
- package/templates/default/static/img/undraw_docusaurus_react.svg +170 -0
- package/templates/default/static/img/undraw_docusaurus_tree.svg +40 -0
- package/templates/default/tsconfig.json +10 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"format": "int64",
|
|
12
|
+
"readOnly": true,
|
|
13
|
+
"title": "Id"
|
|
14
|
+
},
|
|
15
|
+
"pet": {
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["name", "photoUrls", "tags"],
|
|
20
|
+
"discriminator": {
|
|
21
|
+
"propertyName": "petType",
|
|
22
|
+
"mapping": {
|
|
23
|
+
"cat": {
|
|
24
|
+
"x-tags": ["pet"],
|
|
25
|
+
"description": "A representation of a cat",
|
|
26
|
+
"allOf": [
|
|
27
|
+
"circular(Pet)",
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"huntingSkill": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The measured skill for hunting",
|
|
34
|
+
"default": "lazy",
|
|
35
|
+
"example": "adventurous",
|
|
36
|
+
"enum": [
|
|
37
|
+
"clueless",
|
|
38
|
+
"lazy",
|
|
39
|
+
"adventurous",
|
|
40
|
+
"aggressive"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": ["huntingSkill"]
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"title": "Cat"
|
|
48
|
+
},
|
|
49
|
+
"dog": {
|
|
50
|
+
"description": "A representation of a dog",
|
|
51
|
+
"allOf": [
|
|
52
|
+
"circular(Pet)",
|
|
53
|
+
{
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"packSize": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"format": "int32",
|
|
59
|
+
"description": "The size of the pack the dog is from",
|
|
60
|
+
"default": 1,
|
|
61
|
+
"minimum": 1
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": ["packSize"]
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"title": "Dog"
|
|
68
|
+
},
|
|
69
|
+
"bee": {
|
|
70
|
+
"description": "A representation of a honey bee",
|
|
71
|
+
"allOf": [
|
|
72
|
+
"circular(Pet)",
|
|
73
|
+
{
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"honeyPerDay": {
|
|
77
|
+
"type": "number",
|
|
78
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
79
|
+
"example": 3.14,
|
|
80
|
+
"multipleOf": 0.01,
|
|
81
|
+
"default": 0
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": ["honeyPerDay"]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"title": "HoneyBee"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"properties": {
|
|
92
|
+
"id": {
|
|
93
|
+
"externalDocs": {
|
|
94
|
+
"description": "Find more info here",
|
|
95
|
+
"url": "https://example.com"
|
|
96
|
+
},
|
|
97
|
+
"description": "Pet ID",
|
|
98
|
+
"allOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": "integer",
|
|
101
|
+
"format": "int64",
|
|
102
|
+
"readOnly": true,
|
|
103
|
+
"title": "Id"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"category": {
|
|
108
|
+
"description": "Categories this pet belongs to",
|
|
109
|
+
"allOf": [
|
|
110
|
+
{
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"id": {
|
|
114
|
+
"description": "Category ID",
|
|
115
|
+
"allOf": [
|
|
116
|
+
{
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"format": "int64",
|
|
119
|
+
"readOnly": true,
|
|
120
|
+
"title": "Id"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"name": {
|
|
125
|
+
"description": "Category name",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1
|
|
128
|
+
},
|
|
129
|
+
"sub": {
|
|
130
|
+
"description": "Test Sub Category",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"prop1": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Dumb Property"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"xml": { "name": "Category" },
|
|
141
|
+
"title": "Category"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"name": {
|
|
146
|
+
"description": "The name given to a pet",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"example": "Guru"
|
|
149
|
+
},
|
|
150
|
+
"photoUrls": {
|
|
151
|
+
"description": "The list of URL to a cute photos featuring pet",
|
|
152
|
+
"type": "array",
|
|
153
|
+
"maxItems": 20,
|
|
154
|
+
"xml": { "name": "photoUrl", "wrapped": true },
|
|
155
|
+
"items": { "type": "string", "format": "url" }
|
|
156
|
+
},
|
|
157
|
+
"friend": { "allOf": ["circular(Pet)"] },
|
|
158
|
+
"tags": {
|
|
159
|
+
"description": "Tags attached to the pet",
|
|
160
|
+
"type": "array",
|
|
161
|
+
"minItems": 1,
|
|
162
|
+
"xml": { "name": "tag", "wrapped": true },
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"id": {
|
|
167
|
+
"description": "Tag ID",
|
|
168
|
+
"allOf": [
|
|
169
|
+
{
|
|
170
|
+
"type": "integer",
|
|
171
|
+
"format": "int64",
|
|
172
|
+
"readOnly": true,
|
|
173
|
+
"title": "Id"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"name": {
|
|
178
|
+
"description": "Tag name",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"xml": { "name": "Tag" },
|
|
184
|
+
"title": "Tag"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"status": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "Pet status in the store",
|
|
190
|
+
"enum": ["available", "pending", "sold"]
|
|
191
|
+
},
|
|
192
|
+
"petType": {
|
|
193
|
+
"description": "Type of a pet",
|
|
194
|
+
"type": "string",
|
|
195
|
+
"oneOf": [
|
|
196
|
+
{
|
|
197
|
+
"x-tags": ["pet"],
|
|
198
|
+
"description": "A representation of a cat",
|
|
199
|
+
"allOf": [
|
|
200
|
+
"circular(Pet)",
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"huntingSkill": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"description": "The measured skill for hunting",
|
|
207
|
+
"default": "lazy",
|
|
208
|
+
"example": "adventurous",
|
|
209
|
+
"enum": [
|
|
210
|
+
"clueless",
|
|
211
|
+
"lazy",
|
|
212
|
+
"adventurous",
|
|
213
|
+
"aggressive"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"required": ["huntingSkill"]
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"title": "Cat"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"description": "A representation of a dog",
|
|
224
|
+
"allOf": [
|
|
225
|
+
"circular(Pet)",
|
|
226
|
+
{
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"packSize": {
|
|
230
|
+
"type": "integer",
|
|
231
|
+
"format": "int32",
|
|
232
|
+
"description": "The size of the pack the dog is from",
|
|
233
|
+
"default": 1,
|
|
234
|
+
"minimum": 1
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": ["packSize"]
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"title": "Dog"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"description": "A representation of a honey bee",
|
|
244
|
+
"allOf": [
|
|
245
|
+
"circular(Pet)",
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"honeyPerDay": {
|
|
250
|
+
"type": "number",
|
|
251
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
252
|
+
"example": 3.14,
|
|
253
|
+
"multipleOf": 0.01,
|
|
254
|
+
"default": 0
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": ["honeyPerDay"]
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"title": "HoneyBee"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"xml": { "name": "Pet" },
|
|
266
|
+
"title": "Pet"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"id": {
|
|
272
|
+
"description": "Tag ID",
|
|
273
|
+
"allOf": [
|
|
274
|
+
{
|
|
275
|
+
"type": "integer",
|
|
276
|
+
"format": "int64",
|
|
277
|
+
"readOnly": true,
|
|
278
|
+
"title": "Id"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"name": {
|
|
283
|
+
"description": "Tag name",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"minLength": 1
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"xml": { "name": "Tag" },
|
|
289
|
+
"title": "Tag"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"username": {
|
|
294
|
+
"description": "User supplied username",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"minLength": 4,
|
|
297
|
+
"example": "John78"
|
|
298
|
+
},
|
|
299
|
+
"firstName": {
|
|
300
|
+
"description": "User first name",
|
|
301
|
+
"type": "string",
|
|
302
|
+
"minLength": 1,
|
|
303
|
+
"example": "John"
|
|
304
|
+
},
|
|
305
|
+
"lastName": {
|
|
306
|
+
"description": "User last name",
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1,
|
|
309
|
+
"example": "Smith"
|
|
310
|
+
},
|
|
311
|
+
"email": {
|
|
312
|
+
"description": "User email address",
|
|
313
|
+
"type": "string",
|
|
314
|
+
"format": "email",
|
|
315
|
+
"example": "john.smith@example.com"
|
|
316
|
+
},
|
|
317
|
+
"password": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "User password, MUST contain a mix of upper and lower case letters, as well as digits",
|
|
320
|
+
"format": "password",
|
|
321
|
+
"minLength": 8,
|
|
322
|
+
"pattern": "/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/",
|
|
323
|
+
"example": "drowssaP123"
|
|
324
|
+
},
|
|
325
|
+
"phone": {
|
|
326
|
+
"description": "User phone number in international format",
|
|
327
|
+
"type": "string",
|
|
328
|
+
"pattern": "/^\\+(?:[0-9]-?){6,14}[0-9]$/",
|
|
329
|
+
"example": "+1-202-555-0192"
|
|
330
|
+
},
|
|
331
|
+
"userStatus": {
|
|
332
|
+
"description": "User status",
|
|
333
|
+
"type": "integer",
|
|
334
|
+
"format": "int32"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"xml": { "name": "User" },
|
|
338
|
+
"title": "User"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"description": "Updated user object",
|
|
343
|
+
"required": true
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: update-user
|
|
3
|
+
title: "Updated user"
|
|
4
|
+
description: "This can only be done by the logged in user."
|
|
5
|
+
sidebar_label: "Updated user"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWutz47YR/1cwSD/YDvWwz3lpppM4dpK6ucQey542ldwEIlYkziDAAKBknUf/e2cXpEQ9fL40ab/k9EUksVgsFvv47ZJPPIjM88GIVx4cv0+4BJ86VQZlDR/w21x5lgrDrNELNgEmrQE2WbCQA9M2y0AyZRhO7vKE2xKcwKmXkg94VUoR4A4ZJ7wUThQQwOFqT9yIApDEg6PLhCtcrxQh59tCIAELuQjMAEgWLAkCGgJInnAHv1bKgeSD4CpIuE9zKAQfPPGwKHERH5wyGV8u75HYl9Z48Dh+2u/j3+Zql2YmtJK0J+arstQKJF8m/LR/ukuNu2PGBja1lZF8uYzygA9fW7lA+tSaACbgpUBmKSmo98bj/Kddae3kDaQBNeZQnUFFWZVs0SgTICO1Tq0rRIiPPj0lbQh5ZfSi0UZQQeOUS9pDCSSINXA1pXPYXnStzBGvD6bMbbB3TnueRGtBK1GohEIZEaxDjrWwix/juZYQbpFzwgtRlqh91ISgxR87jc2hNDsmd8YclA48mECaYnbKBMO5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XeMcTTlXvGltTO7Wu81C+OHwepejUn+A003c+P0KUv+rlXN/d8oRP6q+WCirBuBNzrMfFPK5uy1jEYK2Ez564FiarREYNRmKJv/8A8J03kA==
|
|
9
|
+
sidebar_class_name: "put 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={"Updated user"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"put"}
|
|
31
|
+
path={"/user/{username}"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
This can only be done by the logged in user.
|
|
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 {...require("./update-user.ParamsDetails.json")}></ParamsDetails>
|
|
42
|
+
|
|
43
|
+
<RequestSchema {...require("./update-user.RequestSchema.json")}></RequestSchema>
|
|
44
|
+
|
|
45
|
+
<StatusCodes {...require("./update-user.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"responses": {
|
|
3
|
+
"200": {
|
|
4
|
+
"description": "successful operation",
|
|
5
|
+
"content": {
|
|
6
|
+
"application/json": {
|
|
7
|
+
"schema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"code": { "type": "integer", "format": "int32" },
|
|
11
|
+
"type": { "type": "string" },
|
|
12
|
+
"message": { "type": "string" }
|
|
13
|
+
},
|
|
14
|
+
"title": "ApiResponse"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: upload-file
|
|
3
|
+
title: "uploads an image"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "uploads an image"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWN9v47gR/lcG3JdNIEvZ7KEF/FRf9q4w7q4Jkl20BzvYo8mRxQtFaknKihr4fy+GlPwjcS7tQ5/avMQSZ0Yzw2+G8/GJBb72bLpgDQZ2nzGJXjjVBGUNmzKWMdug4/Q4l2zK2kZbLn9UGlnGGu54jQEdGXhihtfIpmRoLlnGFBloeKjYc6vzT2BLaDBAsNA2kgey5vBbqxxKNg2uxYx5UWHN2fSJhb4hw8oEXKNjGSutq3lIr/70Hdtu70ndN9Z49KRxeXFB/44/61sh0Puy1bALimVMWBPQBJLnTaOViAvF756Unl66YVe/owgUviMzQaVPCivxTWc/XrJtNojsRH1wyqxpoUbv+frUGmmpoOnVrFG3Q6xsS38Z8yhap0Ift6HB4IN1+JW3oaKd7ZwKOKXXMctcpt/3KWvfWvTheyv7FMTJXFgRMEx8cMjrkzkZ3DwIdqUMdz1L/tUYKkvwaayPmSNUTFnRYCieIl62RULWvKb4KSK3GXHVOs2mrAqh8dOiGMPLfcfXa3S5ssXm8gXGPmHJWx0gGWLb7N+x47mRK/v4wthden/a2LQoPlz+Ob/IL/IP0+8uPly8UL9xytf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MhFDxAFzTSQcifl7amie7dWsGGEPpbB174crZzscmP9MadoQIKr6h/HZKS8GdJLjixKZIukqJCmr+gJ5s1MlnDKh7aNqVViKiIJ1LaqWR9hI36HprMANlhG4lZYCbHogD0XFAv70KOCabTnEaQce6W5pd6diyROchdDZWWgQyPxKfLg3AJG7GT9inhzQXkKFhnp0Aj4eliWOwFVbHM5RyN460xyeFMnRWxv1aGopwxCckspKy2uEqg9quaL4mIYn+IdgGDsjRMOERW0lH8SVRAbbna+Ohugv519kvP9M6utpfl3foNkrgfj4+aBpRpBg4KhdxsB5GstjN2qaxjkYurLnSaYyj1vGXvQ2WPeM9r1URjVuPE23Xcbo41nFJMB90lR0Kb2x0US1vIgPkOnzGR6KAu4Cj0Whecvfw7BuFqtfHhqLU69ZodWdSK4FEhA8S03BRIVzGPThiaVRpPK7GahtUffHz/OqHv939MKGNq0KtI9smplpzc2A4EVRPQFMDSz2awQ7YM9uP/AEfQ9ForuI8G/15GvhvunPJ2HS8MTmkwPcZq4gsTxfs6YnOnC9Ob7f0+luLjpj+fcY23Cm+IpQtnphUnn5LNi259vgH3r2/Ha5azuD0VcxJ30emYIgmbLhuMQUa6dRw67O932YjeyCf0tpV+vLkM1nY6756w0D8OmnOhMAmvKITb2iIRO+uF26u7z6zjK2G24w6sgFW0m0Vcb9jyrOjEsMP8vdkjHv+CXt+OcYdOUD0+KTuf8Z5k0l6RxTkVaM7nj1qrIk8fI2y2/vtdvsv+1T33g==
|
|
9
|
+
sidebar_class_name: "post 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={"uploads an image"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/pet/{petId}/uploadImage"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
<Heading id={"request"} as={"h2"} className={"openapi-tabs__heading"}>
|
|
36
|
+
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
37
|
+
</Heading>
|
|
38
|
+
|
|
39
|
+
<ParamsDetails {...require("./upload-file.ParamsDetails.json")}></ParamsDetails>
|
|
40
|
+
|
|
41
|
+
<RequestSchema {...require("./upload-file.RequestSchema.json")}></RequestSchema>
|
|
42
|
+
|
|
43
|
+
<StatusCodes {...require("./upload-file.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: user
|
|
3
|
+
title: "Users"
|
|
4
|
+
description: "Users"
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Operations about user
|
|
9
|
+
|
|
10
|
+
```mdx-code-block
|
|
11
|
+
import DocCardList from '@theme/DocCardList';
|
|
12
|
+
import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
|
|
13
|
+
|
|
14
|
+
<DocCardList items={useCurrentSidebarCategory().items}/>
|
|
15
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 6
|
|
3
|
+
tags:
|
|
4
|
+
- test
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Congratulations!
|
|
8
|
+
|
|
9
|
+
You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
|
|
10
|
+
|
|
11
|
+
Docusaurus has **much more to offer**!
|
|
12
|
+
|
|
13
|
+
Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
|
|
14
|
+
|
|
15
|
+
Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
|
|
16
|
+
|
|
17
|
+
## What's next?
|
|
18
|
+
|
|
19
|
+
- Read the [official documentation](https://docusaurus.io/).
|
|
20
|
+
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
|
|
21
|
+
- Add a [search bar](https://docusaurus.io/docs/search)
|
|
22
|
+
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
|
|
23
|
+
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
tags:
|
|
4
|
+
- test
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Create a Blog Post
|
|
8
|
+
|
|
9
|
+
Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
|
|
10
|
+
|
|
11
|
+
## Create your first Post
|
|
12
|
+
|
|
13
|
+
Create a file at `blog/2021-02-28-greetings.md`:
|
|
14
|
+
|
|
15
|
+
```md title="blog/2021-02-28-greetings.md"
|
|
16
|
+
---
|
|
17
|
+
slug: greetings
|
|
18
|
+
title: Greetings!
|
|
19
|
+
authors:
|
|
20
|
+
- name: Joel Marcey
|
|
21
|
+
title: Co-creator of Docusaurus 1
|
|
22
|
+
url: https://github.com/JoelMarcey
|
|
23
|
+
image_url: https://github.com/JoelMarcey.png
|
|
24
|
+
- name: Sébastien Lorber
|
|
25
|
+
title: Docusaurus maintainer
|
|
26
|
+
url: https://sebastienlorber.com
|
|
27
|
+
image_url: https://github.com/slorber.png
|
|
28
|
+
tags: [greetings]
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
Congratulations, you have made your first post!
|
|
32
|
+
|
|
33
|
+
Feel free to play around and edit this post as much you like.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A new blog post is now available at `http://localhost:3000/blog/greetings`.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Create a Document
|
|
6
|
+
|
|
7
|
+
Documents are **groups of pages** connected through:
|
|
8
|
+
|
|
9
|
+
- a **sidebar**
|
|
10
|
+
- **previous/next navigation**
|
|
11
|
+
- **versioning**
|
|
12
|
+
|
|
13
|
+
## Create your first Doc
|
|
14
|
+
|
|
15
|
+
Create a markdown file at `docs/hello.md`:
|
|
16
|
+
|
|
17
|
+
```md title="docs/hello.md"
|
|
18
|
+
# Hello
|
|
19
|
+
|
|
20
|
+
This is my **first Docusaurus document**!
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
A new document is now available at `http://localhost:3000/docs/hello`.
|
|
24
|
+
|
|
25
|
+
## Configure the Sidebar
|
|
26
|
+
|
|
27
|
+
Docusaurus automatically **creates a sidebar** from the `docs` folder.
|
|
28
|
+
|
|
29
|
+
Add metadata to customize the sidebar label and position:
|
|
30
|
+
|
|
31
|
+
```md title="docs/hello.md" {1-4}
|
|
32
|
+
---
|
|
33
|
+
sidebar_label: "Hi!"
|
|
34
|
+
sidebar_position: 3
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# Hello
|
|
38
|
+
|
|
39
|
+
This is my **first Docusaurus document**!
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
It is also possible to create your sidebar explicitly in `sidebars.js`:
|
|
43
|
+
|
|
44
|
+
```js title="sidebars.js"
|
|
45
|
+
module.exports = {
|
|
46
|
+
tutorialSidebar: [
|
|
47
|
+
{
|
|
48
|
+
type: "category",
|
|
49
|
+
label: "Tutorial",
|
|
50
|
+
// highlight-next-line
|
|
51
|
+
items: ["hello"],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
```
|