Skip to content

Commit cb6cf47

Browse files
committed
feat(docs): use strapi documentation plugin to generate api your documentation(swagger ui); 使用strapi document plugin 自动生成API 文档(由swagger ui 驱动)
1 parent 4e28516 commit cb6cf47

File tree

10 files changed

+8512
-17
lines changed

10 files changed

+8512
-17
lines changed

back-end/h5-api/api/work/documentation/1.0.0/work.json

+974
Large diffs are not rendered by default.

back-end/h5-api/api/workform/documentation/1.0.0/workform.json

+569
Large diffs are not rendered by default.

back-end/h5-api/extensions/documentation/documentation/1.0.0/full_documentation.json

+3,972
Large diffs are not rendered by default.

back-end/h5-api/extensions/documentation/public/index.html

+473
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"paths": {
3+
"/email/": {
4+
"post": {
5+
"deprecated": false,
6+
"description": "Send an email",
7+
"responses": {
8+
"200": {
9+
"description": "response",
10+
"content": {
11+
"application/json": {
12+
"schema": {
13+
"properties": {
14+
"foo": {
15+
"type": "string"
16+
}
17+
}
18+
}
19+
}
20+
}
21+
},
22+
"403": {
23+
"description": "Forbidden",
24+
"content": {
25+
"application/json": {
26+
"schema": {
27+
"$ref": "#/components/schemas/Error"
28+
}
29+
}
30+
}
31+
},
32+
"404": {
33+
"description": "Not found",
34+
"content": {
35+
"application/json": {
36+
"schema": {
37+
"$ref": "#/components/schemas/Error"
38+
}
39+
}
40+
}
41+
},
42+
"default": {
43+
"description": "unexpected error",
44+
"content": {
45+
"application/json": {
46+
"schema": {
47+
"$ref": "#/components/schemas/Error"
48+
}
49+
}
50+
}
51+
}
52+
},
53+
"summary": "",
54+
"tags": [
55+
"Email - Email"
56+
],
57+
"requestBody": {
58+
"description": "",
59+
"required": true,
60+
"content": {
61+
"application/json": {
62+
"schema": {
63+
"properties": {
64+
"foo": {
65+
"type": "string"
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
},
75+
"tags": [
76+
{
77+
"name": "Email - Email"
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)