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,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"responses": {
|
|
3
|
+
"200": {
|
|
4
|
+
"description": "successful operation",
|
|
5
|
+
"content": {
|
|
6
|
+
"application/json": {
|
|
7
|
+
"schema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"description": "Order ID",
|
|
12
|
+
"allOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"format": "int64",
|
|
16
|
+
"readOnly": true,
|
|
17
|
+
"title": "Id"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"petId": {
|
|
22
|
+
"description": "Pet ID",
|
|
23
|
+
"allOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"format": "int64",
|
|
27
|
+
"readOnly": true,
|
|
28
|
+
"title": "Id"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"quantity": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"format": "int32",
|
|
35
|
+
"minimum": 1,
|
|
36
|
+
"default": 1
|
|
37
|
+
},
|
|
38
|
+
"shipDate": {
|
|
39
|
+
"description": "Estimated ship date",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"format": "date-time"
|
|
42
|
+
},
|
|
43
|
+
"status": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Order Status",
|
|
46
|
+
"enum": ["placed", "approved", "delivered"]
|
|
47
|
+
},
|
|
48
|
+
"complete": {
|
|
49
|
+
"description": "Indicates whenever order was completed or not",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false,
|
|
52
|
+
"readOnly": true
|
|
53
|
+
},
|
|
54
|
+
"requestId": {
|
|
55
|
+
"description": "Unique Request Id",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"writeOnly": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"xml": { "name": "Order" },
|
|
61
|
+
"title": "Order"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"application/xml": {
|
|
65
|
+
"schema": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": {
|
|
69
|
+
"description": "Order ID",
|
|
70
|
+
"allOf": [
|
|
71
|
+
{
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"format": "int64",
|
|
74
|
+
"readOnly": true,
|
|
75
|
+
"title": "Id"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"petId": {
|
|
80
|
+
"description": "Pet ID",
|
|
81
|
+
"allOf": [
|
|
82
|
+
{
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"format": "int64",
|
|
85
|
+
"readOnly": true,
|
|
86
|
+
"title": "Id"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"quantity": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"format": "int32",
|
|
93
|
+
"minimum": 1,
|
|
94
|
+
"default": 1
|
|
95
|
+
},
|
|
96
|
+
"shipDate": {
|
|
97
|
+
"description": "Estimated ship date",
|
|
98
|
+
"type": "string",
|
|
99
|
+
"format": "date-time"
|
|
100
|
+
},
|
|
101
|
+
"status": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Order Status",
|
|
104
|
+
"enum": ["placed", "approved", "delivered"]
|
|
105
|
+
},
|
|
106
|
+
"complete": {
|
|
107
|
+
"description": "Indicates whenever order was completed or not",
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"default": false,
|
|
110
|
+
"readOnly": true
|
|
111
|
+
},
|
|
112
|
+
"requestId": {
|
|
113
|
+
"description": "Unique Request Id",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"writeOnly": true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"xml": { "name": "Order" },
|
|
119
|
+
"title": "Order"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"400": {
|
|
125
|
+
"description": "Invalid Order",
|
|
126
|
+
"content": {
|
|
127
|
+
"application/json": {
|
|
128
|
+
"example": { "status": 400, "message": "Invalid Order" }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: place-order
|
|
3
|
+
title: "Place an order for a pet"
|
|
4
|
+
description: ""
|
|
5
|
+
sidebar_label: "Place an order for a pet"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
api: eJztWV9z47YR/yo7uJezhxQlndNr9FTHvnY0SWqP7Zs2lTwJBKxExCDAA0DRqkffvbMgKVG27tyH9in2g0UCi8Xit//BJxb4yrPJjPlgHbL7hEn0wqkyKGvYhLGE2RIdp9epZBNWai7wykl0LGEOfWmNR88mT2w8HNLP4X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qZ5aYoRYtQW0SnwmKFNrL2tsDombsKuq6MPM4UylCujvuaGTtjZJzRdUYNqjYsECrugop6IJPqHYEvo3SC1ZSW1SE0qHlP/wfb9dpdUd0f+5fznn2geXeGvlrfo1krgvijvBY1IkrU3ZFyEXlsfo1lVltZRnYcFV7qpHSl0/GXPgyXPmq2veRHVFo+ptqtYXRyucQ3hoF2rbOt4XaCLywZlvJDgOtzhY2guqpoDR6aRveTu4dkemSpWh4wi1de50eyOpVYCjcc+MCUXOcI46uCgNSRP43E2elu71Gc/TS8+/f32U0qKy0OhY9NPLXHBTY9xvIqIZha7bWqzedtZH9RivatGtu83Aj6GrNRcxWI6yvXUNtzd97qk6ePpu11ODflkxp6eKN18dnq7peEvFdK1w+yeLhqc4gsysBndYLVtAvXosadiF40M6R1tv7uXeHn1SQ10s+JcCCzDN2nve3cG11e3dyxhi/Z6tYjlPnO8psqV193nxqZgprqcxp6Y5mZVNbe2DU/6+w+er++6
|
|
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={"Place an order for a pet"}
|
|
27
|
+
></Heading>
|
|
28
|
+
|
|
29
|
+
<MethodEndpoint
|
|
30
|
+
method={"post"}
|
|
31
|
+
path={"/store/order"}
|
|
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 parameters={undefined}></ParamsDetails>
|
|
40
|
+
|
|
41
|
+
<RequestSchema {...require("./place-order.RequestSchema.json")}></RequestSchema>
|
|
42
|
+
|
|
43
|
+
<StatusCodes {...require("./place-order.StatusCodes.json")}></StatusCodes>
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"x-tags": ["pet"],
|
|
4
|
+
"description": "A representation of a cat",
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["name", "photoUrls", "tags"],
|
|
9
|
+
"discriminator": {
|
|
10
|
+
"propertyName": "petType",
|
|
11
|
+
"mapping": {
|
|
12
|
+
"cat": "circular(Cat)",
|
|
13
|
+
"dog": {
|
|
14
|
+
"description": "A representation of a dog",
|
|
15
|
+
"allOf": [
|
|
16
|
+
"circular(Pet)",
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"packSize": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"format": "int32",
|
|
23
|
+
"description": "The size of the pack the dog is from",
|
|
24
|
+
"default": 1,
|
|
25
|
+
"minimum": 1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": ["packSize"]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"title": "Dog"
|
|
32
|
+
},
|
|
33
|
+
"bee": {
|
|
34
|
+
"description": "A representation of a honey bee",
|
|
35
|
+
"allOf": [
|
|
36
|
+
"circular(Pet)",
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"honeyPerDay": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
43
|
+
"example": 3.14,
|
|
44
|
+
"multipleOf": 0.01,
|
|
45
|
+
"default": 0
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["honeyPerDay"]
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"title": "HoneyBee"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"externalDocs": {
|
|
58
|
+
"description": "Find more info here",
|
|
59
|
+
"url": "https://example.com"
|
|
60
|
+
},
|
|
61
|
+
"description": "Pet ID",
|
|
62
|
+
"allOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"format": "int64",
|
|
66
|
+
"readOnly": true,
|
|
67
|
+
"title": "Id"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"category": {
|
|
72
|
+
"description": "Categories this pet belongs to",
|
|
73
|
+
"allOf": [
|
|
74
|
+
{
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {
|
|
78
|
+
"description": "Category ID",
|
|
79
|
+
"allOf": [
|
|
80
|
+
{
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"format": "int64",
|
|
83
|
+
"readOnly": true,
|
|
84
|
+
"title": "Id"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"name": {
|
|
89
|
+
"description": "Category name",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1
|
|
92
|
+
},
|
|
93
|
+
"sub": {
|
|
94
|
+
"description": "Test Sub Category",
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"prop1": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Dumb Property"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"xml": { "name": "Category" },
|
|
105
|
+
"title": "Category"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"name": {
|
|
110
|
+
"description": "The name given to a pet",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"example": "Guru"
|
|
113
|
+
},
|
|
114
|
+
"photoUrls": {
|
|
115
|
+
"description": "The list of URL to a cute photos featuring pet",
|
|
116
|
+
"type": "array",
|
|
117
|
+
"maxItems": 20,
|
|
118
|
+
"xml": { "name": "photoUrl", "wrapped": true },
|
|
119
|
+
"items": { "type": "string", "format": "url" }
|
|
120
|
+
},
|
|
121
|
+
"friend": { "allOf": ["circular(Pet)"] },
|
|
122
|
+
"tags": {
|
|
123
|
+
"description": "Tags attached to the pet",
|
|
124
|
+
"type": "array",
|
|
125
|
+
"minItems": 1,
|
|
126
|
+
"xml": { "name": "tag", "wrapped": true },
|
|
127
|
+
"items": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"id": {
|
|
131
|
+
"description": "Tag ID",
|
|
132
|
+
"allOf": [
|
|
133
|
+
{
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"format": "int64",
|
|
136
|
+
"readOnly": true,
|
|
137
|
+
"title": "Id"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"name": {
|
|
142
|
+
"description": "Tag name",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"xml": { "name": "Tag" },
|
|
148
|
+
"title": "Tag"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"status": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Pet status in the store",
|
|
154
|
+
"enum": ["available", "pending", "sold"]
|
|
155
|
+
},
|
|
156
|
+
"petType": {
|
|
157
|
+
"description": "Type of a pet",
|
|
158
|
+
"type": "string",
|
|
159
|
+
"oneOf": [
|
|
160
|
+
"circular(Cat)",
|
|
161
|
+
{
|
|
162
|
+
"description": "A representation of a dog",
|
|
163
|
+
"allOf": [
|
|
164
|
+
"circular(Pet)",
|
|
165
|
+
{
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"packSize": {
|
|
169
|
+
"type": "integer",
|
|
170
|
+
"format": "int32",
|
|
171
|
+
"description": "The size of the pack the dog is from",
|
|
172
|
+
"default": 1,
|
|
173
|
+
"minimum": 1
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": ["packSize"]
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"title": "Dog"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"description": "A representation of a honey bee",
|
|
183
|
+
"allOf": [
|
|
184
|
+
"circular(Pet)",
|
|
185
|
+
{
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"honeyPerDay": {
|
|
189
|
+
"type": "number",
|
|
190
|
+
"description": "Average amount of honey produced per day in ounces",
|
|
191
|
+
"example": 3.14,
|
|
192
|
+
"multipleOf": 0.01,
|
|
193
|
+
"default": 0
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": ["honeyPerDay"]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"title": "HoneyBee"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"xml": { "name": "Pet" },
|
|
205
|
+
"title": "Pet"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"properties": {
|
|
210
|
+
"huntingSkill": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"description": "The measured skill for hunting",
|
|
213
|
+
"default": "lazy",
|
|
214
|
+
"example": "adventurous",
|
|
215
|
+
"enum": ["clueless", "lazy", "adventurous", "aggressive"]
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": ["huntingSkill"]
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"title": "Cat"
|
|
222
|
+
},
|
|
223
|
+
"schemaType": "response"
|
|
224
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: cat
|
|
3
|
+
title: "Cat"
|
|
4
|
+
description: "A representation of a cat"
|
|
5
|
+
sidebar_label: "Cat"
|
|
6
|
+
hide_title: true
|
|
7
|
+
hide_table_of_contents: true
|
|
8
|
+
schema: true
|
|
9
|
+
sample:
|
|
10
|
+
{
|
|
11
|
+
"id": 0,
|
|
12
|
+
"category": { "id": 0, "name": "string", "sub": { "prop1": "string" } },
|
|
13
|
+
"name": "Guru",
|
|
14
|
+
"photoUrls": ["string"],
|
|
15
|
+
"friend": {},
|
|
16
|
+
"tags": [{ "id": 0, "name": "string" }],
|
|
17
|
+
"status": "available",
|
|
18
|
+
"huntingSkill": "adventurous",
|
|
19
|
+
}
|
|
20
|
+
custom_edit_url: null
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
import Schema from "@theme/Schema";
|
|
24
|
+
import Heading from "@theme/Heading";
|
|
25
|
+
|
|
26
|
+
<Heading as={"h1"} className={"openapi__heading"} children={"Cat"}></Heading>
|
|
27
|
+
|
|
28
|
+
A representation of a cat
|
|
29
|
+
|
|
30
|
+
<Schema {...require("./cat.Schema.json")}></Schema>
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
|
|
2
|
+
|
|
3
|
+
const sidebar: SidebarsConfig = {
|
|
4
|
+
apisidebar: [
|
|
5
|
+
{
|
|
6
|
+
type: "doc",
|
|
7
|
+
id: "petstore/swagger-petstore-yaml",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "category",
|
|
11
|
+
label: "Pets",
|
|
12
|
+
link: {
|
|
13
|
+
type: "doc",
|
|
14
|
+
id: "petstore/pet",
|
|
15
|
+
},
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
type: "doc",
|
|
19
|
+
id: "petstore/schemas/cat",
|
|
20
|
+
label: "Cat",
|
|
21
|
+
className: "schema",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "doc",
|
|
25
|
+
id: "petstore/add-pet",
|
|
26
|
+
label: "Add a new pet to the store",
|
|
27
|
+
className: "api-method post",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "doc",
|
|
31
|
+
id: "petstore/update-pet",
|
|
32
|
+
label: "Update an existing pet",
|
|
33
|
+
className: "api-method put",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: "doc",
|
|
37
|
+
id: "petstore/get-pet-by-id",
|
|
38
|
+
label: "Find pet by ID",
|
|
39
|
+
className: "api-method get",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: "doc",
|
|
43
|
+
id: "petstore/update-pet-with-form",
|
|
44
|
+
label: "Updates a pet in the store with form data",
|
|
45
|
+
className: "api-method post",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "doc",
|
|
49
|
+
id: "petstore/delete-pet",
|
|
50
|
+
label: "Deletes a pet",
|
|
51
|
+
className: "api-method delete",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: "doc",
|
|
55
|
+
id: "petstore/upload-file",
|
|
56
|
+
label: "uploads an image",
|
|
57
|
+
className: "api-method post",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "doc",
|
|
61
|
+
id: "petstore/find-pets-by-status",
|
|
62
|
+
label: "Finds Pets by status",
|
|
63
|
+
className: "api-method get",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "doc",
|
|
67
|
+
id: "petstore/find-pets-by-tags",
|
|
68
|
+
label: "Finds Pets by tags",
|
|
69
|
+
className: "menu__list-item--deprecated api-method get",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "doc",
|
|
73
|
+
id: "petstore/new-pet",
|
|
74
|
+
label: "New pet",
|
|
75
|
+
className: "api-method event",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "category",
|
|
81
|
+
label: "Petstore Orders",
|
|
82
|
+
link: {
|
|
83
|
+
type: "doc",
|
|
84
|
+
id: "petstore/store",
|
|
85
|
+
},
|
|
86
|
+
items: [
|
|
87
|
+
{
|
|
88
|
+
type: "doc",
|
|
89
|
+
id: "petstore/get-inventory",
|
|
90
|
+
label: "Returns pet inventories by status",
|
|
91
|
+
className: "api-method get",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "doc",
|
|
95
|
+
id: "petstore/place-order",
|
|
96
|
+
label: "Place an order for a pet",
|
|
97
|
+
className: "api-method post",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "doc",
|
|
101
|
+
id: "petstore/get-order-by-id",
|
|
102
|
+
label: "Find purchase order by ID",
|
|
103
|
+
className: "api-method get",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "doc",
|
|
107
|
+
id: "petstore/delete-order",
|
|
108
|
+
label: "Delete purchase order by ID",
|
|
109
|
+
className: "api-method delete",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "doc",
|
|
113
|
+
id: "petstore/subscribe-to-the-store-events",
|
|
114
|
+
label: "Subscribe to the Store events",
|
|
115
|
+
className: "api-method post",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: "category",
|
|
121
|
+
label: "Users",
|
|
122
|
+
link: {
|
|
123
|
+
type: "doc",
|
|
124
|
+
id: "petstore/user",
|
|
125
|
+
},
|
|
126
|
+
items: [
|
|
127
|
+
{
|
|
128
|
+
type: "doc",
|
|
129
|
+
id: "petstore/create-user",
|
|
130
|
+
label: "Create user",
|
|
131
|
+
className: "api-method post",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: "doc",
|
|
135
|
+
id: "petstore/get-user-by-name",
|
|
136
|
+
label: "Get user by user name",
|
|
137
|
+
className: "api-method get",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: "doc",
|
|
141
|
+
id: "petstore/update-user",
|
|
142
|
+
label: "Updated user",
|
|
143
|
+
className: "api-method put",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: "doc",
|
|
147
|
+
id: "petstore/delete-user",
|
|
148
|
+
label: "Delete user",
|
|
149
|
+
className: "api-method delete",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
type: "doc",
|
|
153
|
+
id: "petstore/create-users-with-array-input",
|
|
154
|
+
label: "Creates list of users with given input array",
|
|
155
|
+
className: "api-method post",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: "doc",
|
|
159
|
+
id: "petstore/create-users-with-list-input",
|
|
160
|
+
label: "Creates list of users with given input list",
|
|
161
|
+
className: "api-method post",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: "doc",
|
|
165
|
+
id: "petstore/login-user",
|
|
166
|
+
label: "Logs user into the system",
|
|
167
|
+
className: "api-method get",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: "doc",
|
|
171
|
+
id: "petstore/logout-user",
|
|
172
|
+
label: "Logs out current logged in user session",
|
|
173
|
+
className: "api-method get",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export default sidebar.apisidebar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: store
|
|
3
|
+
title: "Petstore Orders"
|
|
4
|
+
description: "Petstore Orders"
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Access to Petstore orders
|
|
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,28 @@
|
|
|
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
|
+
"status": { "type": "string", "example": "inProgress" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"application/xml": {
|
|
20
|
+
"schema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": { "orderId": { "type": "string", "example": "123" } }
|
|
23
|
+
},
|
|
24
|
+
"example": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
"status": { "type": "string", "example": "inProgress" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"application/xml": {
|
|
20
|
+
"schema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": { "orderId": { "type": "string", "example": "123" } }
|
|
23
|
+
},
|
|
24
|
+
"example": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n <orderId>123</orderId>\n <status>inProgress</status>\n <timestamp>2018-10-19T16:46:45Z</timestamp>\n</root>\n"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|