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,288 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"allOf": [
|
|
8
|
+
{ "description": "My Pet", "title": "Pettie" },
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["name", "photoUrls", "tags"],
|
|
12
|
+
"discriminator": {
|
|
13
|
+
"propertyName": "petType",
|
|
14
|
+
"mapping": {
|
|
15
|
+
"cat": {
|
|
16
|
+
"x-tags": ["pet"],
|
|
17
|
+
"description": "A representation of a cat",
|
|
18
|
+
"allOf": [
|
|
19
|
+
"circular(Pet)",
|
|
20
|
+
{
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"huntingSkill": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The measured skill for hunting",
|
|
26
|
+
"default": "lazy",
|
|
27
|
+
"example": "adventurous",
|
|
28
|
+
"enum": [
|
|
29
|
+
"clueless",
|
|
30
|
+
"lazy",
|
|
31
|
+
"adventurous",
|
|
32
|
+
"aggressive"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": ["huntingSkill"]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"title": "Cat"
|
|
40
|
+
},
|
|
41
|
+
"dog": {
|
|
42
|
+
"description": "A representation of a dog",
|
|
43
|
+
"allOf": [
|
|
44
|
+
"circular(Pet)",
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"packSize": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"format": "int32",
|
|
51
|
+
"description": "The size of the pack the dog is from",
|
|
52
|
+
"default": 1,
|
|
53
|
+
"minimum": 1
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": ["packSize"]
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"title": "Dog"
|
|
60
|
+
},
|
|
61
|
+
"bee": {
|
|
62
|
+
"description": "A representation of a honey bee",
|
|
63
|
+
"allOf": [
|
|
64
|
+
"circular(Pet)",
|
|
65
|
+
{
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"honeyPerDay": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
71
|
+
"example": 3.14,
|
|
72
|
+
"multipleOf": 0.01,
|
|
73
|
+
"default": 0
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["honeyPerDay"]
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"title": "HoneyBee"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"properties": {
|
|
84
|
+
"id": {
|
|
85
|
+
"externalDocs": {
|
|
86
|
+
"description": "Find more info here",
|
|
87
|
+
"url": "https://example.com"
|
|
88
|
+
},
|
|
89
|
+
"description": "Pet ID",
|
|
90
|
+
"allOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "integer",
|
|
93
|
+
"format": "int64",
|
|
94
|
+
"readOnly": true,
|
|
95
|
+
"title": "Id"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"category": {
|
|
100
|
+
"description": "Categories this pet belongs to",
|
|
101
|
+
"allOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": {
|
|
106
|
+
"description": "Category ID",
|
|
107
|
+
"allOf": [
|
|
108
|
+
{
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"format": "int64",
|
|
111
|
+
"readOnly": true,
|
|
112
|
+
"title": "Id"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"name": {
|
|
117
|
+
"description": "Category name",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1
|
|
120
|
+
},
|
|
121
|
+
"sub": {
|
|
122
|
+
"description": "Test Sub Category",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"prop1": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "Dumb Property"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"xml": { "name": "Category" },
|
|
133
|
+
"title": "Category"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"name": {
|
|
138
|
+
"description": "The name given to a pet",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"example": "Guru"
|
|
141
|
+
},
|
|
142
|
+
"photoUrls": {
|
|
143
|
+
"description": "The list of URL to a cute photos featuring pet",
|
|
144
|
+
"type": "array",
|
|
145
|
+
"maxItems": 20,
|
|
146
|
+
"xml": { "name": "photoUrl", "wrapped": true },
|
|
147
|
+
"items": { "type": "string", "format": "url" }
|
|
148
|
+
},
|
|
149
|
+
"friend": { "allOf": ["circular(Pet)"] },
|
|
150
|
+
"tags": {
|
|
151
|
+
"description": "Tags attached to the pet",
|
|
152
|
+
"type": "array",
|
|
153
|
+
"minItems": 1,
|
|
154
|
+
"xml": { "name": "tag", "wrapped": true },
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"id": {
|
|
159
|
+
"description": "Tag ID",
|
|
160
|
+
"allOf": [
|
|
161
|
+
{
|
|
162
|
+
"type": "integer",
|
|
163
|
+
"format": "int64",
|
|
164
|
+
"readOnly": true,
|
|
165
|
+
"title": "Id"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"name": {
|
|
170
|
+
"description": "Tag name",
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 1
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"xml": { "name": "Tag" },
|
|
176
|
+
"title": "Tag"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"status": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Pet status in the store",
|
|
182
|
+
"enum": ["available", "pending", "sold"]
|
|
183
|
+
},
|
|
184
|
+
"petType": {
|
|
185
|
+
"description": "Type of a pet",
|
|
186
|
+
"type": "string",
|
|
187
|
+
"oneOf": [
|
|
188
|
+
{
|
|
189
|
+
"x-tags": ["pet"],
|
|
190
|
+
"description": "A representation of a cat",
|
|
191
|
+
"allOf": [
|
|
192
|
+
"circular(Pet)",
|
|
193
|
+
{
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"huntingSkill": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "The measured skill for hunting",
|
|
199
|
+
"default": "lazy",
|
|
200
|
+
"example": "adventurous",
|
|
201
|
+
"enum": [
|
|
202
|
+
"clueless",
|
|
203
|
+
"lazy",
|
|
204
|
+
"adventurous",
|
|
205
|
+
"aggressive"
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": ["huntingSkill"]
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"title": "Cat"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"description": "A representation of a dog",
|
|
216
|
+
"allOf": [
|
|
217
|
+
"circular(Pet)",
|
|
218
|
+
{
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"packSize": {
|
|
222
|
+
"type": "integer",
|
|
223
|
+
"format": "int32",
|
|
224
|
+
"description": "The size of the pack the dog is from",
|
|
225
|
+
"default": 1,
|
|
226
|
+
"minimum": 1
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": ["packSize"]
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"title": "Dog"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"description": "A representation of a honey bee",
|
|
236
|
+
"allOf": [
|
|
237
|
+
"circular(Pet)",
|
|
238
|
+
{
|
|
239
|
+
"type": "object",
|
|
240
|
+
"properties": {
|
|
241
|
+
"honeyPerDay": {
|
|
242
|
+
"type": "number",
|
|
243
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
244
|
+
"example": 3.14,
|
|
245
|
+
"multipleOf": 0.01,
|
|
246
|
+
"default": 0
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"required": ["honeyPerDay"]
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"title": "HoneyBee"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"xml": { "name": "Pet" },
|
|
258
|
+
"title": "Pet"
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"example": {
|
|
263
|
+
"category": {
|
|
264
|
+
"name": "Great Dane",
|
|
265
|
+
"sub": { "prop1": "Just a test property" }
|
|
266
|
+
},
|
|
267
|
+
"name": "Pepper",
|
|
268
|
+
"photoUrls": [
|
|
269
|
+
"https://assets.orvis.com/is/image/orvisprd/great-dane"
|
|
270
|
+
],
|
|
271
|
+
"tags": [{ "name": "Great Danes" }],
|
|
272
|
+
"status": "pending",
|
|
273
|
+
"petType": { "huntingSkill": "lazy" }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"application/xml": {
|
|
277
|
+
"schema": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"properties": {
|
|
280
|
+
"name": { "type": "string", "description": "hooray" }
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"description": "Pet object that needs to be added to the store",
|
|
286
|
+
"required": true
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "responses": { "405": { "description": "Invalid input" } } }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: add-pet
|
|
3
|
+
title: "Add a new pet to the store"
|
|
4
|
+
description: "Add new pet to the store inventory."
|
|
5
|
+
sidebar_label: "Add a new pet to the store"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWm1z2zYS/isYNB8sD0XaSe5uRp1kzrFzqa9p7bHs6XUsTwqRKwo1CLAAKJnx6L/f7IKUSElO0rv2vly+2CJeFruL3WdfyEfuRe746JaX4PldxDNwqZWll0bzET/JMqZhyUrwzBvm58CcNxaY1AvQ3tg65hE3JViBO84zPuIiyy7B84hbcKXRDhwfPfKXR3/Bf33y53ohlMyY1GXl+WoVcQdpZaWv+ej2EVmi0z6Iys+Rx6WVHkY4TORFFn7fraJHLkr54R5wIz2elPJ7qE/CRhp5I5xMewMgLNjuyAU+PF8/laDPz+jpLuIPw9RkMBZFqVCi20euhM75iJ9+wyPuTGVT4CN+CX6MPMeL4/gSPGnuFelwa+Zg8O1El+BjBz4wezDhtaksE6Vk91BPeLuiB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wtdEQMalTVWHty4SuGX6vgOEAfzvpoVU2JiiYXbd+R18EBNcxsxlYx/zSkKeRIYve8hG+TR7SZXwPdXgIKQ8SalL1IROUB2jK8E1qFKUHqLs2W+9HCqkxVtJ9TTRK2NonCzVX0OoSphErzBRLB1yUgbv3pmSdEr5JXrEQC6H4OVY5nTfQbVBdi/zzyQ/vcR5s4S5mY7ALmcIm9e+ABi1JeETvxUXqO0kLoVmoj7HuLYRUIUNF6Pj7hsbOq6qnvAgzyYehMjllF/09NiyMm73SNI7XAh1ti0sd+oH+Gh58aDUEgYkokc+Evd86I5FF3idEq56mhrNrkkqmoB10FVPiGwD2nO6gV4CipwmaJW9rtrrk/fnp2x/Hb4d4cXNfhDcRWHAXQncJZxkTe79N2q5lO98xfOH3TE3i7uHBJ6USkvJ6Yv6xqfnXne05dgJGt/zxESPRjVWrFQ7/VoGlT5EivhBWUlpJXxW1dQp9KyHpm41NM+RJtv+sBs1eQanW3NNBIqJ8xKmXEBadBg6HzRcX7Yqdj0V6zZPLi/E1j/i0+cikoPqHW7HEYlgs8QQsyEIFgYUKjoUPeIiTEQ80qTbul4TrUqv50XnBI3Td4XBTn7NN/d2KTjVS9xuV/t7f1xMIJHEMS7Qnia77EO2OHIurD7QWu7mrfwMDw7x8
|
|
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={"Add a new pet to the store"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/pet"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
Add new pet to the store inventory.
|
|
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("./add-pet.ParamsDetails.json")}></ParamsDetails>
|
|
42
|
+
|
|
43
|
+
<RequestSchema {...require("./add-pet.RequestSchema.json")}></RequestSchema>
|
|
44
|
+
|
|
45
|
+
<StatusCodes {...require("./add-pet.StatusCodes.json")}></StatusCodes>
|