create-docusaurus-openapi-docs 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +36 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +191 -0
- package/package.json +47 -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,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"orderId": { "type": "string", "example": "123" },
|
|
10
|
+
"timestamp": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time",
|
|
13
|
+
"example": "2018-10-19T16:46:45Z"
|
|
14
|
+
},
|
|
15
|
+
"estimatedDeliveryDate": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "date-time",
|
|
18
|
+
"example": "2018-11-11T16:00:00Z"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"orderId": { "type": "string", "example": "123" },
|
|
10
|
+
"timestamp": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time",
|
|
13
|
+
"example": "2018-10-19T16:46:45Z"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/json": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"callbackUrl": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uri",
|
|
12
|
+
"description": "This URL will be called by the server when the desired event will occur",
|
|
13
|
+
"example": "https://myserver.com/send/callback/here"
|
|
14
|
+
},
|
|
15
|
+
"eventName": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Event name for the subscription",
|
|
18
|
+
"enum": ["orderInProgress", "orderShipped", "orderDelivered"],
|
|
19
|
+
"example": "orderInProgress"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": ["callbackUrl", "eventName"]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "callbacks-responses",
|
|
3
|
+
"label": "Callbacks Responses",
|
|
4
|
+
"responses": {
|
|
5
|
+
"200": {
|
|
6
|
+
"description": "Callback successfully processed and no retries will be performed",
|
|
7
|
+
"content": {
|
|
8
|
+
"application/json": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": { "someProp": { "type": "string", "example": "123" } }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"299": { "description": "Response for cancelling subscription" },
|
|
17
|
+
"500": {
|
|
18
|
+
"description": "Callback processing failed and retries will be performed"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "callbacks-responses",
|
|
3
|
+
"label": "Callbacks Responses",
|
|
4
|
+
"responses": {
|
|
5
|
+
"200": {
|
|
6
|
+
"description": "Callback successfully processed and no retries will be performed",
|
|
7
|
+
"content": {
|
|
8
|
+
"application/json": {
|
|
9
|
+
"schema": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": { "someProp": { "type": "string", "example": "123" } }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"responses": {
|
|
3
|
+
"201": {
|
|
4
|
+
"description": "Subscription added",
|
|
5
|
+
"content": {
|
|
6
|
+
"application/json": {
|
|
7
|
+
"schema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"subscriptionId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"example": "AAA-123-BBB-456"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: subscribe-to-the-store-events
|
|
3
|
+
title: "Subscribe to the Store events"
|
|
4
|
+
description: "Add subscription for a store events"
|
|
5
|
+
sidebar_label: "Subscribe to the Store events"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWm1z2zY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pHmgcxWyPs4Y4q9M76HWXgIhQgyqgvoGHtHhLCvu3Wupb+00XZNDb16UwiFd6X3V6ZQwwafJHRFwapTGEak0EMs6JGIg711uiStLrMuKetpG3Z32Htg7SKc7/aaS3Wh8s9HP7zFdTCFPR9hny5yWBbkraThSdJ6gsVyX8nXNaDPZlVZaoM1HhRMyFA3Yur4x5LHxpfTx6KI+s80Uo99dbG6xwTCpN4rdB14TaLz25LS975Muiu4d+FrTlDYM/XsOTO3a2ekohivMvJUj3PD1QVLKXJQFtqGKVk+AbLnfbDSFmKkMb/qo63eatO3Z8enPw5OY3TcxBXSf7HClrhgqsV40PTDzUBisPoXMSsFWWsm8ZF/UFNX1A7uXVpKJnzBXYW/gwmNefMXOxFdtuY3EZ34wcw1fXjAqwnnOXN8/XsFOJO5vonoHTMCv3jg0zxq2gns5X3vRY+DqDF+mUEoM1mFJmRtlIKNdthxlONXkydpb1rzhYvzwRWN6LAe1xS+LaCGTbFHZFPap75PCYU11u/4Lnx2qtgYaQNP/PdvrdXdog==
|
|
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={"Subscribe to the Store events"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/store/subscribe"}
|
|
32
|
+
context={"endpoint"}
|
|
33
|
+
></MethodEndpoint>
|
|
34
|
+
|
|
35
|
+
Add subscription for a store events
|
|
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
|
|
44
|
+
{...require("./subscribe-to-the-store-events.RequestSchema.json")}
|
|
45
|
+
></RequestSchema>
|
|
46
|
+
|
|
47
|
+
<StatusCodes
|
|
48
|
+
{...require("./subscribe-to-the-store-events.StatusCodes.json")}
|
|
49
|
+
></StatusCodes>
|
|
50
|
+
|
|
51
|
+
<div>
|
|
52
|
+
<div className={"openapi__divider"}></div>
|
|
53
|
+
<Heading
|
|
54
|
+
id={"callbacks"}
|
|
55
|
+
as={"h2"}
|
|
56
|
+
className={"openapi-tabs__heading"}
|
|
57
|
+
children={"Callbacks"}
|
|
58
|
+
></Heading>
|
|
59
|
+
<OperationTabs className={"openapi-tabs__operation"}>
|
|
60
|
+
<TabItem label={"POST orderInProgress"} value={"post-orderInProgress"}>
|
|
61
|
+
<MethodEndpoint
|
|
62
|
+
method={"post"}
|
|
63
|
+
path={"{$request.body#/callbackUrl}?event={$request.body#/eventName}"}
|
|
64
|
+
context={"callback"}
|
|
65
|
+
></MethodEndpoint>
|
|
66
|
+
A callback triggered every time an Order is updated status to "inProgress"
|
|
67
|
+
(Description)
|
|
68
|
+
<RequestSchema
|
|
69
|
+
{...require("./subscribe-to-the-store-events.RequestSchema.2.json")}
|
|
70
|
+
></RequestSchema>
|
|
71
|
+
<StatusCodes
|
|
72
|
+
{...require("./subscribe-to-the-store-events.StatusCodes.2.json")}
|
|
73
|
+
></StatusCodes>
|
|
74
|
+
</TabItem>
|
|
75
|
+
<TabItem label={"PUT orderInProgress"} value={"put-orderInProgress"}>
|
|
76
|
+
<MethodEndpoint
|
|
77
|
+
method={"put"}
|
|
78
|
+
path={"{$request.body#/callbackUrl}?event={$request.body#/eventName}"}
|
|
79
|
+
context={"callback"}
|
|
80
|
+
></MethodEndpoint>
|
|
81
|
+
Order in Progress (Only Description)
|
|
82
|
+
<RequestSchema
|
|
83
|
+
{...require("./subscribe-to-the-store-events.RequestSchema.3.json")}
|
|
84
|
+
></RequestSchema>
|
|
85
|
+
<StatusCodes
|
|
86
|
+
{...require("./subscribe-to-the-store-events.StatusCodes.3.json")}
|
|
87
|
+
></StatusCodes>
|
|
88
|
+
</TabItem>
|
|
89
|
+
<TabItem label={"POST orderShipped"} value={"post-orderShipped"}>
|
|
90
|
+
<MethodEndpoint
|
|
91
|
+
method={"post"}
|
|
92
|
+
path={"{$request.body#/callbackUrl}?event={$request.body#/eventName}"}
|
|
93
|
+
context={"callback"}
|
|
94
|
+
></MethodEndpoint>
|
|
95
|
+
A callback triggered every time an Order is shipped to the recipient
|
|
96
|
+
<RequestSchema
|
|
97
|
+
{...require("./subscribe-to-the-store-events.RequestSchema.4.json")}
|
|
98
|
+
></RequestSchema>
|
|
99
|
+
<StatusCodes
|
|
100
|
+
{...require("./subscribe-to-the-store-events.StatusCodes.4.json")}
|
|
101
|
+
></StatusCodes>
|
|
102
|
+
</TabItem>
|
|
103
|
+
<TabItem label={"POST orderDelivered"} value={"post-orderDelivered"}>
|
|
104
|
+
<MethodEndpoint
|
|
105
|
+
method={"post"}
|
|
106
|
+
path={
|
|
107
|
+
"http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}"
|
|
108
|
+
}
|
|
109
|
+
context={"callback"}
|
|
110
|
+
></MethodEndpoint>
|
|
111
|
+
A callback triggered every time an Order is delivered to the recipient
|
|
112
|
+
<RequestSchema
|
|
113
|
+
{...require("./subscribe-to-the-store-events.RequestSchema.5.json")}
|
|
114
|
+
></RequestSchema>
|
|
115
|
+
<StatusCodes
|
|
116
|
+
{...require("./subscribe-to-the-store-events.StatusCodes.5.json")}
|
|
117
|
+
></StatusCodes>
|
|
118
|
+
</TabItem>
|
|
119
|
+
</OperationTabs>
|
|
120
|
+
</div>
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: swagger-petstore-yaml
|
|
3
|
+
title: "Swagger Petstore YAML"
|
|
4
|
+
description: "This is a sample server Petstore server."
|
|
5
|
+
sidebar_label: Introduction
|
|
6
|
+
sidebar_position: 0
|
|
7
|
+
hide_title: true
|
|
8
|
+
custom_edit_url: null
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
import ApiLogo from "@theme/ApiLogo";
|
|
12
|
+
import Heading from "@theme/Heading";
|
|
13
|
+
import SchemaTabs from "@theme/SchemaTabs";
|
|
14
|
+
import TabItem from "@theme/TabItem";
|
|
15
|
+
import Export from "@theme/ApiExplorer/Export";
|
|
16
|
+
|
|
17
|
+
<span
|
|
18
|
+
className={"theme-doc-version-badge badge badge--secondary"}
|
|
19
|
+
children={"Version: 2.0.0"}
|
|
20
|
+
></span>
|
|
21
|
+
|
|
22
|
+
<Export
|
|
23
|
+
url={
|
|
24
|
+
"https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-template-openapi-docs/main/examples/petstore.yaml"
|
|
25
|
+
}
|
|
26
|
+
proxy={undefined}
|
|
27
|
+
></Export>
|
|
28
|
+
|
|
29
|
+
<Heading
|
|
30
|
+
as={"h1"}
|
|
31
|
+
className={"openapi__heading"}
|
|
32
|
+
children={"Swagger Petstore YAML"}
|
|
33
|
+
></Heading>
|
|
34
|
+
|
|
35
|
+
<ApiLogo
|
|
36
|
+
logo={{
|
|
37
|
+
url: "https://redocly.github.io/redoc/petstore-logo.png",
|
|
38
|
+
altText: "Petstore logo",
|
|
39
|
+
}}
|
|
40
|
+
darkLogo={{
|
|
41
|
+
url: "/img/petstore-logo-dark.png",
|
|
42
|
+
altText: "Petstore dark logo",
|
|
43
|
+
}}
|
|
44
|
+
></ApiLogo>
|
|
45
|
+
|
|
46
|
+
This is a sample server Petstore server.
|
|
47
|
+
You can find out more about Swagger at
|
|
48
|
+
[http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).
|
|
49
|
+
For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
50
|
+
|
|
51
|
+
## Introduction
|
|
52
|
+
|
|
53
|
+
This API is documented in **OpenAPI format** and is based on
|
|
54
|
+
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
|
55
|
+
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
56
|
+
tool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard
|
|
57
|
+
OpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
58
|
+
|
|
59
|
+
## OpenAPI Specification
|
|
60
|
+
|
|
61
|
+
This API is documented in **OpenAPI format** and is based on
|
|
62
|
+
[Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.
|
|
63
|
+
It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)
|
|
64
|
+
tool and [ReDoc](https://github.com/Redocly/redoc) documentation. In addition to standard
|
|
65
|
+
OpenAPI syntax we use a few [vendor extensions](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md).
|
|
66
|
+
|
|
67
|
+
## Cross-Origin Resource Sharing
|
|
68
|
+
|
|
69
|
+
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/).
|
|
70
|
+
And that allows cross-domain communication from the browser.
|
|
71
|
+
All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
|
|
72
|
+
|
|
73
|
+
## Authentication
|
|
74
|
+
|
|
75
|
+
Petstore offers two forms of authentication:
|
|
76
|
+
|
|
77
|
+
- API Key
|
|
78
|
+
- OAuth2
|
|
79
|
+
|
|
80
|
+
OAuth2 - an open protocol to allow secure authorization in a simple
|
|
81
|
+
and standard method from web, mobile and desktop applications.
|
|
82
|
+
|
|
83
|
+
<div style={{ marginBottom: "2rem" }}>
|
|
84
|
+
<Heading
|
|
85
|
+
id={"authentication"}
|
|
86
|
+
as={"h2"}
|
|
87
|
+
className={"openapi-tabs__heading"}
|
|
88
|
+
children={"Authentication"}
|
|
89
|
+
></Heading>
|
|
90
|
+
<SchemaTabs className={"openapi-tabs__security-schemes"}>
|
|
91
|
+
<TabItem label={"OAuth 2.0: petstore_auth"} value={"petstore_auth"}>
|
|
92
|
+
Get access to data while protecting your account credentials. OAuth2 is
|
|
93
|
+
also a safer and more secure way to give you access.
|
|
94
|
+
<div>
|
|
95
|
+
<table>
|
|
96
|
+
<tbody>
|
|
97
|
+
<tr>
|
|
98
|
+
<th>Security Scheme Type:</th>
|
|
99
|
+
<td>oauth2</td>
|
|
100
|
+
</tr>
|
|
101
|
+
<tr>
|
|
102
|
+
<th>OAuth Flow (implicit):</th>
|
|
103
|
+
<td>
|
|
104
|
+
<div>
|
|
105
|
+
Authorization URL: http://petstore.swagger.io/api/oauth/dialog
|
|
106
|
+
</div>
|
|
107
|
+
<span>Scopes:</span>
|
|
108
|
+
<ul>
|
|
109
|
+
<li>write:pets: modify pets in your account</li>
|
|
110
|
+
<li>read:pets: read your pets</li>
|
|
111
|
+
</ul>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</tbody>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
117
|
+
</TabItem>
|
|
118
|
+
<TabItem label={"API Key: api_key"} value={"api_key"}>
|
|
119
|
+
For this sample, you can use the api key `special-key` to test the
|
|
120
|
+
authorization filters.
|
|
121
|
+
<div>
|
|
122
|
+
<table>
|
|
123
|
+
<tbody>
|
|
124
|
+
<tr>
|
|
125
|
+
<th>Security Scheme Type:</th>
|
|
126
|
+
<td>apiKey</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
129
|
+
<th>Header parameter name:</th>
|
|
130
|
+
<td>api_key</td>
|
|
131
|
+
</tr>
|
|
132
|
+
</tbody>
|
|
133
|
+
</table>
|
|
134
|
+
</div>
|
|
135
|
+
</TabItem>
|
|
136
|
+
<TabItem label={"HTTP: Basic Auth"} value={"BasicAuth"}>
|
|
137
|
+
<div>
|
|
138
|
+
<table>
|
|
139
|
+
<tbody>
|
|
140
|
+
<tr>
|
|
141
|
+
<th>Security Scheme Type:</th>
|
|
142
|
+
<td>http</td>
|
|
143
|
+
</tr>
|
|
144
|
+
<tr>
|
|
145
|
+
<th>HTTP Authorization Scheme:</th>
|
|
146
|
+
<td>basic</td>
|
|
147
|
+
</tr>
|
|
148
|
+
</tbody>
|
|
149
|
+
</table>
|
|
150
|
+
</div>
|
|
151
|
+
</TabItem>
|
|
152
|
+
<TabItem label={"HTTP: Bearer Auth"} value={"BearerAuth"}>
|
|
153
|
+
<div>
|
|
154
|
+
<table>
|
|
155
|
+
<tbody>
|
|
156
|
+
<tr>
|
|
157
|
+
<th>Security Scheme Type:</th>
|
|
158
|
+
<td>http</td>
|
|
159
|
+
</tr>
|
|
160
|
+
<tr>
|
|
161
|
+
<th>HTTP Authorization Scheme:</th>
|
|
162
|
+
<td>bearer</td>
|
|
163
|
+
</tr>
|
|
164
|
+
</tbody>
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
167
|
+
</TabItem>
|
|
168
|
+
<TabItem label={"API Key: ApiKeyAuth"} value={"ApiKeyAuth"}>
|
|
169
|
+
<div>
|
|
170
|
+
<table>
|
|
171
|
+
<tbody>
|
|
172
|
+
<tr>
|
|
173
|
+
<th>Security Scheme Type:</th>
|
|
174
|
+
<td>apiKey</td>
|
|
175
|
+
</tr>
|
|
176
|
+
<tr>
|
|
177
|
+
<th>Header parameter name:</th>
|
|
178
|
+
<td>X-API-Key</td>
|
|
179
|
+
</tr>
|
|
180
|
+
</tbody>
|
|
181
|
+
</table>
|
|
182
|
+
</div>
|
|
183
|
+
</TabItem>
|
|
184
|
+
<TabItem label={"OpenID Connect: OpenID"} value={"OpenID"}>
|
|
185
|
+
<div>
|
|
186
|
+
<table>
|
|
187
|
+
<tbody>
|
|
188
|
+
<tr>
|
|
189
|
+
<th>Security Scheme Type:</th>
|
|
190
|
+
<td>openIdConnect</td>
|
|
191
|
+
</tr>
|
|
192
|
+
<tr>
|
|
193
|
+
<th>OpenID Connect URL:</th>
|
|
194
|
+
<td>https://example.com/.well-known/openid-configuration</td>
|
|
195
|
+
</tr>
|
|
196
|
+
</tbody>
|
|
197
|
+
</table>
|
|
198
|
+
</div>
|
|
199
|
+
</TabItem>
|
|
200
|
+
<TabItem label={"OAuth 2.0: OAuth2"} value={"OAuth2"}>
|
|
201
|
+
<div>
|
|
202
|
+
<table>
|
|
203
|
+
<tbody>
|
|
204
|
+
<tr>
|
|
205
|
+
<th>Security Scheme Type:</th>
|
|
206
|
+
<td>oauth2</td>
|
|
207
|
+
</tr>
|
|
208
|
+
<tr>
|
|
209
|
+
<th>OAuth Flow (authorizationCode):</th>
|
|
210
|
+
<td>
|
|
211
|
+
<div>Token URL: https://example.com/oauth/token</div>
|
|
212
|
+
<div>
|
|
213
|
+
Authorization URL: https://example.com/oauth/authorize
|
|
214
|
+
</div>
|
|
215
|
+
<span>Scopes:</span>
|
|
216
|
+
<ul>
|
|
217
|
+
<li>read: Grants read access</li>
|
|
218
|
+
<li>write: Grants write access</li>
|
|
219
|
+
<li>admin: Grants access to admin operations</li>
|
|
220
|
+
</ul>
|
|
221
|
+
</td>
|
|
222
|
+
</tr>
|
|
223
|
+
</tbody>
|
|
224
|
+
</table>
|
|
225
|
+
</div>
|
|
226
|
+
</TabItem>
|
|
227
|
+
</SchemaTabs>
|
|
228
|
+
</div>
|
|
229
|
+
<div
|
|
230
|
+
style={{
|
|
231
|
+
display: "flex",
|
|
232
|
+
flexDirection: "column",
|
|
233
|
+
marginBottom: "var(--ifm-paragraph-margin-bottom)",
|
|
234
|
+
}}
|
|
235
|
+
>
|
|
236
|
+
<h3 style={{ marginBottom: "0.25rem" }}>Contact</h3>
|
|
237
|
+
<span>API Support: [apiteam@swagger.io](mailto:apiteam@swagger.io)</span>
|
|
238
|
+
<span>
|
|
239
|
+
URL: [https://github.com/Redocly/redoc](https://github.com/Redocly/redoc)
|
|
240
|
+
</span>
|
|
241
|
+
</div>
|
|
242
|
+
<div style={{ marginBottom: "var(--ifm-paragraph-margin-bottom)" }}>
|
|
243
|
+
<h3 style={{ marginBottom: "0.25rem" }}>Terms of Service</h3>
|
|
244
|
+
<a href={"http://swagger.io/terms/"}>{"http://swagger.io/terms/"}</a>
|
|
245
|
+
</div>
|
|
246
|
+
<div style={{ marginBottom: "var(--ifm-paragraph-margin-bottom)" }}>
|
|
247
|
+
<h3 style={{ marginBottom: "0.25rem" }}>License</h3>
|
|
248
|
+
<a href={"http://www.apache.org/licenses/LICENSE-2.0.html"}>Apache 2.0</a>
|
|
249
|
+
</div>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Body",
|
|
3
|
+
"body": {
|
|
4
|
+
"content": {
|
|
5
|
+
"application/x-www-form-urlencoded": {
|
|
6
|
+
"schema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"description": "Updated name of the pet",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"description": "Updated status of the pet",
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "responses": { "405": { "description": "Invalid input" } } }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: update-pet-with-form
|
|
3
|
+
title: "Updates a pet in the store with form data"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "Updates a pet in the store with form data"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWN1v47gR/1cG3JdNoI9sbtsCemoue1cYd9cESRbXgx3s0eTYYkORWpKy4gb+34shJX8l2Vwf+tT6xZI4HM4MfzOcH59Y4EvPqilrMbD7jEn0wqk2KGtYxVjGbIuO0+tEsop1reQBrzH8qkL9o3UNy1jLHW8woCM9T8zwBllF+iaSZUyRnpaHmh0rn3wCu4AWA4SaBzCI0kOwMEdIy9B0h1875VCyKrgOM+ZFjQ1n1RML65bWUSbgEh3L2MK6hof06c8f2WZzT9N9a41HTzM+nv2J/o6sMCuulQRl2i6wzSZjHkXnVFhHb1oMPliHX3gXaopT71TAij5H67hMz/dpta8d+vC9lWtaSFgT0AR65G2rlYhxLB/zvu9zsjbvnEYjrCT/np77Zuf/RBEoxI62IajkR4rwsSOfU8yARimwoUYKLstGbT44ZZaMPAw8dP51FWn8m0riL2MNhtoSMFrro6G00RUrWwzlU4TAhlFE3WqER+c0q1gdQuurshzDW/ieL5foCmXL1fkzqHzCBe90gKSIbbI/osdzI+f28Zmy2/T9ZWVVWX44/0txVpwVH6qPZx/Onk2/dso38IsVD3BxPYH32gquTxjt/4icW9rItFdH+DmO+N8wABcCfUS+5IFDXyuN0DobUARllrC2nSMh25kAwqFEExTXvpiZq4su1OegPHDtLXDwfIEOuJHQWIcQDULo+ZrUL9UKSduwYjEzu321ZB8FfqFtHy1XDUFWJfh2obZO/SsC+PN+sF4KPG9VGfWVUnFtl4QAYdsUkL38qVhjpVqsCWEelDnw9CC7qvicxuOHhD7eqi8PuH4e1h+tg1ArD543rcYsei24gc5jxDRvFTzgGn73LQrFdf6A698pRgF9SBL7LsNCaSpwByHjrfoJ1ywbK95ozVDzauQywot9z70SF8P+D5MpfGwoZ/Q+J5kojNyhe0s6CpH4RTTiSHxr2b4hWzv/kV9cT3IS2GTsqkUz+bRfc+iDvL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851uMNHItVbh6PSqF5y93C0Rqma5aGiKPW6NhrdqtRKoPG4H5iWixrhPO7BAUujTONxNGbbMNWXP08uf/j77Q85bVwdGh0pPbHThps9xYnqUotFFxDKxJRLJsXkJvhGPnbM//ZoPdtxgYCPoWw1V7HRjYY+DWQ4Xa1krEo3IvcZq4krV1P29ETHz2enNxv6/LVDR5cO9xlbcaf4nAA3fWJSeXqWrFpw7fEb9ry/GW5LTuAPXa68aPzIIQwRiBXXHSZPI9EarnU295ts5BVkYhq7TIbkd6RhN/ftuw/iztubhOur2zuWsflwidJEEsD2pLP9l2pKpvBD/rPlFcMDmfiiWzsyCjuyOboaCUG8Hnhx7n9GgJNK+kZ85FWlW9I9zlgSk/gSZTf3m83m32Ah7NM=
|
|
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={"Updates a pet in the store with form data"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/pet/{petId}"}
|
|
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("./update-pet-with-form.ParamsDetails.json")}
|
|
41
|
+
></ParamsDetails>
|
|
42
|
+
|
|
43
|
+
<RequestSchema
|
|
44
|
+
{...require("./update-pet-with-form.RequestSchema.json")}
|
|
45
|
+
></RequestSchema>
|
|
46
|
+
|
|
47
|
+
<StatusCodes
|
|
48
|
+
{...require("./update-pet-with-form.StatusCodes.json")}
|
|
49
|
+
></StatusCodes>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parameters": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Accept-Language",
|
|
5
|
+
"in": "header",
|
|
6
|
+
"description": "The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US",
|
|
7
|
+
"example": "en-US",
|
|
8
|
+
"required": false,
|
|
9
|
+
"schema": { "type": "string", "default": "en-AU" }
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "cookieParam",
|
|
13
|
+
"in": "cookie",
|
|
14
|
+
"description": "Some cookie",
|
|
15
|
+
"required": true,
|
|
16
|
+
"schema": { "type": "integer", "format": "int64" }
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|