Skip to content

Commit

Permalink
feat(docs): use strapi documentation plugin to generate api your docu…
Browse files Browse the repository at this point in the history
…mentation(swagger ui); 使用strapi document plugin 自动生成API 文档(由swagger ui 驱动)
  • Loading branch information
ly525 committed Dec 16, 2019
1 parent 4e28516 commit cb6cf47
Show file tree
Hide file tree
Showing 10 changed files with 8,512 additions and 17 deletions.
974 changes: 974 additions & 0 deletions back-end/h5-api/api/work/documentation/1.0.0/work.json

Large diffs are not rendered by default.

569 changes: 569 additions & 0 deletions back-end/h5-api/api/workform/documentation/1.0.0/workform.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

473 changes: 473 additions & 0 deletions back-end/h5-api/extensions/documentation/public/index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"paths": {
"/email/": {
"post": {
"deprecated": false,
"description": "Send an email",
"responses": {
"200": {
"description": "response",
"content": {
"application/json": {
"schema": {
"properties": {
"foo": {
"type": "string"
}
}
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"summary": "",
"tags": [
"Email - Email"
],
"requestBody": {
"description": "",
"required": true,
"content": {
"application/json": {
"schema": {
"properties": {
"foo": {
"type": "string"
}
}
}
}
}
}
}
}
},
"tags": [
{
"name": "Email - Email"
}
]
}
Loading

0 comments on commit cb6cf47

Please sign in to comment.