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": "Created user object",
|
|
343
|
+
"required": true
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "responses": { "default": { "description": "successful operation" } } }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: create-user
|
|
3
|
+
title: "Create user"
|
|
4
|
+
description: "This can only be done by the logged in user."
|
|
5
|
+
sidebar_label: "Create user"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWm1zI7cN/iscph/OzkqyfZc3zXQSx05SN5fYY9nTppKbQEtoxTOX3JBcyzqP/nsH4EpaWfL50qT9kvMXS0sSBEHgwQOsHmSEIsj+UNYBvbzJpMKQe11F7azsy6upDiIHK5w1czFGoZxFMZ6LOEVhXFGgEtoKWtyVmXQVeqClZ0r2Ze4RIl6T4Ex6DJWzAYPsP0iFE6hNTB/b+4U6zzGESW3ESpZcLGj5rzWG+LVTc1qVOxvRsgCoKqNzntl7E0jKgwz5FEugT3FeoexLN36DeZSZrDzJjTrpoVVrjrYRC9Z14nwJMT369BUrD+rcmrnsR19jJqOOhpacKbnIZIWsiLN4PpH94fampLz2qMjOFkokPaYuumtvgszSFZDpNZmi1Bai8ySxUXb+I63p0z5XJDmTJVSVtgVbAnjz+87yIkmbrXs8Fh4rjwFtZEsJNxEgaG0mwRjWW+ba57UB/+IC457MnjPetLZR22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XONLDjApemMm+5KIrVQlUjNCzB2nAFjUU3LdjmfT3HwgoxFc=
|
|
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={"Create user"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/user"}
|
|
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 parameters={undefined}></ParamsDetails>
|
|
42
|
+
|
|
43
|
+
<RequestSchema {...require("./create-user.RequestSchema.json")}></RequestSchema>
|
|
44
|
+
|
|
45
|
+
<StatusCodes {...require("./create-user.StatusCodes.json")}></StatusCodes>
|