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,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: get-user-by-name
|
|
3
|
+
title: "Get user by user name"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "Get user by user name"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztW21z47YR/is7SD/YDiVZPudNM52LYyepm8vZY9nTppabQMSSRAwCDABK1nn03zsLUBJlyedLk3Y6jT5JJBaLxYN9J/nIPM8dG9yy2qFldwkT6FIrKy+NZgPGEmYqtJwuzwUbsBz9jUP71ewtL5ElrOKWl+jREpNHpunuIDDTkUASm4r7gj3lfV0gEBH4gnvQiMKBNzBGyNCnBYou3DgE4tWHzFjw6LzUeRdYwiz+UkuLgg28rTFhLi2w5GzwyPysIhGct1LnbD6/I2JXGe3Q0fjR4SH9rMvi6jRF57JawXK/LGGp0R61J3peVUqmYaD3s6NJj5uLmvHPmHqCxRIbL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JMhReVqOS/w2/TzFlLxB5XHxuxVd7v8cH3KsVlSGqDUI9N8dt8spWwwbKzdZewwjhPY4+PFG5urJrP6fYvNdKTzNu7hE24leFRAVXIQjr6L9gg48rhe2Tau2ralfvwmz7c2rqxRS2hqZCYcFVjRCEUXKsOX+j3NSUGSR+HT9IUK9+auPGpFtXLywbCt19fs/n8X+GH10s=
|
|
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={"Get user by user name"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"get"}
|
|
31
|
+
path={"/user/{username}"}
|
|
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
|
|
40
|
+
{...require("./get-user-by-name.ParamsDetails.json")}
|
|
41
|
+
></ParamsDetails>
|
|
42
|
+
|
|
43
|
+
<RequestSchema
|
|
44
|
+
{...require("./get-user-by-name.RequestSchema.json")}
|
|
45
|
+
></RequestSchema>
|
|
46
|
+
|
|
47
|
+
<StatusCodes {...require("./get-user-by-name.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parameters": [
|
|
3
|
+
{
|
|
4
|
+
"name": "username",
|
|
5
|
+
"in": "query",
|
|
6
|
+
"description": "The user name for login",
|
|
7
|
+
"required": true,
|
|
8
|
+
"schema": { "type": "string" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "password",
|
|
12
|
+
"in": "query",
|
|
13
|
+
"description": "The password for login in clear text",
|
|
14
|
+
"required": true,
|
|
15
|
+
"schema": { "type": "string" }
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "title": "Body" }
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"responses": {
|
|
3
|
+
"200": {
|
|
4
|
+
"description": "successful operation",
|
|
5
|
+
"headers": {
|
|
6
|
+
"X-Rate-Limit": {
|
|
7
|
+
"description": "calls per hour allowed by the user",
|
|
8
|
+
"schema": { "type": "integer", "format": "int32" }
|
|
9
|
+
},
|
|
10
|
+
"X-Expires-After": {
|
|
11
|
+
"description": "date in UTC when token expires",
|
|
12
|
+
"schema": { "type": "string", "format": "date-time" }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"content": {
|
|
16
|
+
"application/json": {
|
|
17
|
+
"schema": { "type": "string" },
|
|
18
|
+
"examples": { "response": { "value": "OK" } }
|
|
19
|
+
},
|
|
20
|
+
"application/xml": {
|
|
21
|
+
"schema": { "type": "string" },
|
|
22
|
+
"examples": { "response": { "value": "<Message> OK </Message>" } }
|
|
23
|
+
},
|
|
24
|
+
"text/plain": { "examples": { "response": { "value": "OK" } } }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"400": { "description": "Invalid username/password supplied" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: login-user
|
|
3
|
+
title: "Logs user into the system"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "Logs user into the system"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWFtvG7kV/isHzEtsaGYcZ4ECwqKo6qQLI0kd+IJmIRm7FHlGw5pDzpIcjVVB/7045Iwulh1vW/SpfZI4PDd+PFeuWeALz8ZT1np07H7EJHrhVBOUNWzM2IjZBh2n5aVkY6btQpk7oh2xhjteY0BHAtbM8BrZOAqKf0dMkYjfWnQr9lTwbYVAlECkUFoHUTIbMYe/tcqhZOPgWhwxLyqsORuvWVg1pMAHp8yCbTajrc6Ge99ZJ1/XOVDuVIIyIDRyBwEfw79kwD0R+8Yaj572z8/O6OdQq2+FQO/LVsMWSjZiFXIZkVuzb9k1D5h9VrUKx/yCa+2hQQeVbR1wrW2HEuYrCD2G7BkblQm4iFuldTUP6dP7c4KNfcs+PjbKoc8mZUB3rFPygITL3e0FdBUaCPYBDWDiek5fj8meOpKRBVUj25BOYU1AE8/Hm0YrEYEo/u5J4fplkEcMH3nd6ITwADf9X3LdEuXVp6RhX+xjrf9DqT9+Qe/5Av8IV5/gx2JYJVXkKUWjuYq2/z4Die+H5xzk0iy5VhKGwCm2PupbOhLKeGk1hspSCC4wxOALFRuzgriKIXY8uuUQjq3TbMyqEBo/LooGgw/WYe47vligy5UtludHIfIBS97qAEkQoxB7XY7nRs7t45Gwm/T9eWHjonh3/of8LD/L341/OHt3dsT+1SlfwxcrHmDy9RLeaiu4PmEUdR5F61RY3dD9JuAHw37hLQHzFOSfMACPgQjBguSBQ1cpjdA4G1AEZRawivElhG1NAOFQogmKa5/PzNWkDdU5KA9cewscPC/RATcSausQokEIHV+R+IVaIknrNeYzupveAy3ZR8CX2nbRclWT36bQp03r1D+iF9/tg/Uc8LxRRZRXSMW1XcTAtE0CpHMq4JjY2JjVVqpyBbSiuN4/acx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jPc1M3TCwT8hjScJ1Q7nI6jtnPprIpLoH4JtYG9C6zs8mlZSKT6nUYBaCRU01f2hqG6P/PPky2faR1f7q/IG3VIJ3PXHe0kjkhQszZxcxMa6b8liNmubxjpqubDmSqc2jlLHn3Yy2OjJ3PNSFFG79Zhpu4jdxSGPS4R5z6tsH3hDootseRPHZq7DLT0/jNn2wFFoFC+5e3iio1D14lBQpHpZGu1uRWolsB9SB2AaLiqE83gHB1MaRRqPuzHaelZffL68+PjXm48ZXVwVah2H1Mb6UHOzJ/izXfj00qMMdSAVgl/5gPXTeW+9eyJgu95/b9Le9Iat+9m3f7MapTcperuqrA/0fb2mcnPn9GZDn9NrEM3EUnk+1/S0U3Lt8TsWvL3uX4FO4OWnqmdtjHPS/ivY8AwQB+B/24Lf8XD1HXP2Hsh25tzTwimyh42n95vhUSpClfgmQmAT9riO3m5IyvZp4qePt2yz+Sc/QCfq
|
|
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={"Logs user into the system"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"get"}
|
|
31
|
+
path={"/user/login"}
|
|
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("./login-user.ParamsDetails.json")}></ParamsDetails>
|
|
40
|
+
|
|
41
|
+
<RequestSchema {...require("./login-user.RequestSchema.json")}></RequestSchema>
|
|
42
|
+
|
|
43
|
+
<StatusCodes {...require("./login-user.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "title": "Body" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "responses": { "default": { "description": "successful operation" } } }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: logout-user
|
|
3
|
+
title: "Logs out current logged in user session"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "Logs out current logged in user session"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztV99v3DYS/lcGzEtsaKXELVBgn+pzcoXRtA7sBL1g12i55EgiluLoSGplnbH/+2Eo7S/bafrSp7unXYozw5mP3wxnHkWUVRDzhegCenGfCY1BedNGQ07MhcgEteglL6+1mAtLFXXxMwtnwmNoyQUMYv4oNJays3H8e2wjdEphCGVnYW9LbLeZaDDWxEYrjCITrYy1mIuCPSnGc0QmAvoNenbxUXTeirmoY2zDvChajCGSxzz0sqrQ54aKzYV4GsK70S8YDYlt9lfsBOn0ih6eGbsbv79sbF4Uby9+yN/kb/K38+/fvH3zTP2jN6GBX0it4fLjNby2pKQ9E9t7jlN13sThTtXYjIjuHPtddozMU1x/wggyQQuRQMsooa+NRWg9RVTRuAoG6jwLUeciKI8aXTTShnzpbi67WF+ACSBtIJAQZIkepNPQkEdIDiH0cmDzldkgW5tOzJdOZCIOLYq5IPaPgS8t9clz07TWKJPIwJvkzX/SvX8+Busl4GVrimSv0EZaq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8vHcAsXcbPOIyLsS9gQ1M/OwOZHkuX2mBSZNMbytjtWtrTl8I4fivTfS0dR7jjJ4zzyYhqj6sMGlpxf81CGsM6Uguy5U53fJjHDo+nlfEpvuBRgFsJEy2/+7tHdR/yl8tfPvA++ibclHfoN0bhoT8+KhpJpBCZUOSiVKmxnlqyVM26tiXPLRc20tixjePS8ePBhsiezD1fyyJutx5mPIDxKac6fhTMJ11DU+LtCl1Sy1vHfbu08RM+RB57dgEno8m8ln795IzCNNWpoST1dWu8uzdpjUIX8BiYVqoa4SLdwcmUxpkm027Ktkk1FB+ur97/evd+xhdXx8amKbWlEBvpjgx/oCqkhkl13qOL7EM15jnPrhA4Qcg9nf4e0+Whi+NcPfWxER9i0VppUpub3HycRuFpKM+moZun85pC5I3HR359Pnu73fLnf3foBzFf3GdiI72RK+bb4v54xv7p/Sex3f4X1GukeA==
|
|
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={"Logs out current logged in user session"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"get"}
|
|
31
|
+
path={"/user/logout"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
<ParamsDetails parameters={undefined}></ParamsDetails>
|
|
36
|
+
|
|
37
|
+
<RequestSchema {...require("./logout-user.RequestSchema.json")}></RequestSchema>
|
|
38
|
+
|
|
39
|
+
<StatusCodes {...require("./logout-user.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["name", "photoUrls", "tags"],
|
|
9
|
+
"discriminator": {
|
|
10
|
+
"propertyName": "petType",
|
|
11
|
+
"mapping": {
|
|
12
|
+
"cat": {
|
|
13
|
+
"x-tags": ["pet"],
|
|
14
|
+
"description": "A representation of a cat",
|
|
15
|
+
"allOf": [
|
|
16
|
+
"circular(Pet)",
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"huntingSkill": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The measured skill for hunting",
|
|
23
|
+
"default": "lazy",
|
|
24
|
+
"example": "adventurous",
|
|
25
|
+
"enum": [
|
|
26
|
+
"clueless",
|
|
27
|
+
"lazy",
|
|
28
|
+
"adventurous",
|
|
29
|
+
"aggressive"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["huntingSkill"]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"title": "Cat"
|
|
37
|
+
},
|
|
38
|
+
"dog": {
|
|
39
|
+
"description": "A representation of a dog",
|
|
40
|
+
"allOf": [
|
|
41
|
+
"circular(Pet)",
|
|
42
|
+
{
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"packSize": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"format": "int32",
|
|
48
|
+
"description": "The size of the pack the dog is from",
|
|
49
|
+
"default": 1,
|
|
50
|
+
"minimum": 1
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["packSize"]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"title": "Dog"
|
|
57
|
+
},
|
|
58
|
+
"bee": {
|
|
59
|
+
"description": "A representation of a honey bee",
|
|
60
|
+
"allOf": [
|
|
61
|
+
"circular(Pet)",
|
|
62
|
+
{
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"honeyPerDay": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
68
|
+
"example": 3.14,
|
|
69
|
+
"multipleOf": 0.01,
|
|
70
|
+
"default": 0
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["honeyPerDay"]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"title": "HoneyBee"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"properties": {
|
|
81
|
+
"id": {
|
|
82
|
+
"externalDocs": {
|
|
83
|
+
"description": "Find more info here",
|
|
84
|
+
"url": "https://example.com"
|
|
85
|
+
},
|
|
86
|
+
"description": "Pet ID",
|
|
87
|
+
"allOf": [
|
|
88
|
+
{
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"format": "int64",
|
|
91
|
+
"readOnly": true,
|
|
92
|
+
"title": "Id"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"category": {
|
|
97
|
+
"description": "Categories this pet belongs to",
|
|
98
|
+
"allOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"id": {
|
|
103
|
+
"description": "Category ID",
|
|
104
|
+
"allOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"format": "int64",
|
|
108
|
+
"readOnly": true,
|
|
109
|
+
"title": "Id"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"name": {
|
|
114
|
+
"description": "Category name",
|
|
115
|
+
"type": "string",
|
|
116
|
+
"minLength": 1
|
|
117
|
+
},
|
|
118
|
+
"sub": {
|
|
119
|
+
"description": "Test Sub Category",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"prop1": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Dumb Property"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"xml": { "name": "Category" },
|
|
130
|
+
"title": "Category"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"name": {
|
|
135
|
+
"description": "The name given to a pet",
|
|
136
|
+
"type": "string",
|
|
137
|
+
"example": "Guru"
|
|
138
|
+
},
|
|
139
|
+
"photoUrls": {
|
|
140
|
+
"description": "The list of URL to a cute photos featuring pet",
|
|
141
|
+
"type": "array",
|
|
142
|
+
"maxItems": 20,
|
|
143
|
+
"xml": { "name": "photoUrl", "wrapped": true },
|
|
144
|
+
"items": { "type": "string", "format": "url" }
|
|
145
|
+
},
|
|
146
|
+
"friend": { "allOf": ["circular(Pet)"] },
|
|
147
|
+
"tags": {
|
|
148
|
+
"description": "Tags attached to the pet",
|
|
149
|
+
"type": "array",
|
|
150
|
+
"minItems": 1,
|
|
151
|
+
"xml": { "name": "tag", "wrapped": true },
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"id": {
|
|
156
|
+
"description": "Tag ID",
|
|
157
|
+
"allOf": [
|
|
158
|
+
{
|
|
159
|
+
"type": "integer",
|
|
160
|
+
"format": "int64",
|
|
161
|
+
"readOnly": true,
|
|
162
|
+
"title": "Id"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"name": {
|
|
167
|
+
"description": "Tag name",
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"xml": { "name": "Tag" },
|
|
173
|
+
"title": "Tag"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"status": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "Pet status in the store",
|
|
179
|
+
"enum": ["available", "pending", "sold"]
|
|
180
|
+
},
|
|
181
|
+
"petType": {
|
|
182
|
+
"description": "Type of a pet",
|
|
183
|
+
"type": "string",
|
|
184
|
+
"oneOf": [
|
|
185
|
+
{
|
|
186
|
+
"x-tags": ["pet"],
|
|
187
|
+
"description": "A representation of a cat",
|
|
188
|
+
"allOf": [
|
|
189
|
+
"circular(Pet)",
|
|
190
|
+
{
|
|
191
|
+
"type": "object",
|
|
192
|
+
"properties": {
|
|
193
|
+
"huntingSkill": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"description": "The measured skill for hunting",
|
|
196
|
+
"default": "lazy",
|
|
197
|
+
"example": "adventurous",
|
|
198
|
+
"enum": [
|
|
199
|
+
"clueless",
|
|
200
|
+
"lazy",
|
|
201
|
+
"adventurous",
|
|
202
|
+
"aggressive"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": ["huntingSkill"]
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"title": "Cat"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"description": "A representation of a dog",
|
|
213
|
+
"allOf": [
|
|
214
|
+
"circular(Pet)",
|
|
215
|
+
{
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"packSize": {
|
|
219
|
+
"type": "integer",
|
|
220
|
+
"format": "int32",
|
|
221
|
+
"description": "The size of the pack the dog is from",
|
|
222
|
+
"default": 1,
|
|
223
|
+
"minimum": 1
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": ["packSize"]
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"title": "Dog"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"description": "A representation of a honey bee",
|
|
233
|
+
"allOf": [
|
|
234
|
+
"circular(Pet)",
|
|
235
|
+
{
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"honeyPerDay": {
|
|
239
|
+
"type": "number",
|
|
240
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
241
|
+
"example": 3.14,
|
|
242
|
+
"multipleOf": 0.01,
|
|
243
|
+
"default": 0
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": ["honeyPerDay"]
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"title": "HoneyBee"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"xml": { "name": "Pet" },
|
|
255
|
+
"title": "Pet"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: new-pet
|
|
3
|
+
title: "New pet"
|
|
4
|
+
description: "Information about a new pet in the systems"
|
|
5
|
+
sidebar_label: "New pet"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWd9zG7cR/ld24BdLcyQl2dPO8KmKlKScOJFGkqfNiJoEPCzvEOKAK4Ajdfbwf+/s4vibitw27Uv9YvPugMXuh90P30KfhcKQe11H7awYipGdOl9JegI5cU0ECRYXUGMEbSGWCKENEasgMuFq9Dx0pMRQWFzcYhSZiLIIYvgoaoziKRMe/9FgiN841YrhZ5E7G9FG+inr2uicLQx+C7T+ZxHyEitJv2JboxgKN/kNczJLdrRHRaatrFBkoi5ddB+9CatVnzKhNMVTaSuj82Sn9uRnbH+iOUPy6oEsZ6KSda1twU5Jdui5t+f7LjiX4LH2GNDGhJCbggSamwlpzM2UZuba542R/u0txhORHcbR+aMx0JJlY6O2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jC4xucI96Uknt7KjDXAvzsB3l7d3N2fAIk73GRR7kjsSZsjLHQsAR7/9u4KiMs2US0Wi/7iXd/5YvBwN8idD0yNl1albkEaOsQh5+WVq2SyWzW2S2PuGpkLJ94tApP8pTGw7laglHPCd6GNyqVXlK7YcymSRanzEio542tXrJLPGNG0UDcTo3POgnTk6olB2kuco2+dxQy0zU1DFyMgbQu5U0jHAf0OOuIKbBIopK5XdTe269Jx0yn6AHHhuNI4keXO8OHYAvR4M37ANj0kyUOGOqneA8k6wLLCd7kzLA8Iu5Va3z0pNHVpgfdrbCnCVX5C6rsSqgucZFC5CbUONEhhmEVXw9Yf7DrxSo1YOoovqMsRm/5xdaiuQ/758scP9B19FW6m9+jnOseN9N8iDR4yEBn/rVDmcUu0MJs1de08qUmspDZJoRJ1/GVj4+DK/6UqIiX53DOuYHWxO8engf1urnZd4a2Ijqf1a5vuVeIDPsfUOKeA2SibV9LP9tYY6KrYNcSjXrZGX9cmjc7RBtwGpqabVLjgPdhpQKnSJH/lauumhsGH0dW3P91/26ONK2NFN7rLfwLL+na2
|
|
9
|
+
sidebar_class_name: "event 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={"New pet"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"event"}
|
|
31
|
+
path={"webhook"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
Information about a new pet in the systems
|
|
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("./new-pet.RequestSchema.json")}></RequestSchema>
|
|
44
|
+
|
|
45
|
+
<StatusCodes {...require("./new-pet.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: pet
|
|
3
|
+
title: "Pets"
|
|
4
|
+
description: "Pets"
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Everything about your Pets
|
|
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,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"description": "Order ID",
|
|
11
|
+
"allOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"format": "int64",
|
|
15
|
+
"readOnly": true,
|
|
16
|
+
"title": "Id"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"petId": {
|
|
21
|
+
"description": "Pet ID",
|
|
22
|
+
"allOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"format": "int64",
|
|
26
|
+
"readOnly": true,
|
|
27
|
+
"title": "Id"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"quantity": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"format": "int32",
|
|
34
|
+
"minimum": 1,
|
|
35
|
+
"default": 1
|
|
36
|
+
},
|
|
37
|
+
"shipDate": {
|
|
38
|
+
"description": "Estimated ship date",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "date-time"
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Order Status",
|
|
45
|
+
"enum": ["placed", "approved", "delivered"]
|
|
46
|
+
},
|
|
47
|
+
"complete": {
|
|
48
|
+
"description": "Indicates whenever order was completed or not",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": false,
|
|
51
|
+
"readOnly": true
|
|
52
|
+
},
|
|
53
|
+
"requestId": {
|
|
54
|
+
"description": "Unique Request Id",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"writeOnly": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"xml": { "name": "Order" },
|
|
60
|
+
"title": "Order"
|
|
61
|
+
},
|
|
62
|
+
"examples": {
|
|
63
|
+
"OrderDelivered": {
|
|
64
|
+
"summary": "Order delivered",
|
|
65
|
+
"value": {
|
|
66
|
+
"quantity": 4,
|
|
67
|
+
"shipDate": "2022-10-12",
|
|
68
|
+
"status": "delivered",
|
|
69
|
+
"requestId": "444-4444-444-4444"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"OrderPlaced": {
|
|
73
|
+
"summary": "Order placed",
|
|
74
|
+
"value": {
|
|
75
|
+
"quantity": 10,
|
|
76
|
+
"shipDate": "2022-10-01",
|
|
77
|
+
"status": "placed",
|
|
78
|
+
"requestId": "111-222-333-444"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"OrderApproved": {
|
|
82
|
+
"summary": "Order approved",
|
|
83
|
+
"value": {
|
|
84
|
+
"quantity": 1000,
|
|
85
|
+
"shipDate": "2022-09-01",
|
|
86
|
+
"status": "approved",
|
|
87
|
+
"requestId": "000-111-222-333"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"description": "order placed for purchasing the pet",
|
|
94
|
+
"required": true
|
|
95
|
+
}
|
|
96
|
+
}
|