Skip to content

Commit

Permalink
fix api doc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
liudonghua123 committed May 8, 2019
1 parent 4aaa62f commit 3aa69e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/api/todos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export default ({ config, db }) => {
* description: todo object
* in: body
* required: true
* type: object
* schema:
* $ref: '#/definitions/Todo'
* responses:
Expand Down Expand Up @@ -148,7 +147,6 @@ export default ({ config, db }) => {
* description: todo object
* in: body
* required: true
* type: object
* schema:
* $ref: '#/definitions/Todo'
* responses:
Expand Down Expand Up @@ -222,12 +220,12 @@ export default ({ config, db }) => {
* description: the id array of the remove todo
* in: body
* required: true
* type: object
* properties:
* _ids:
* type: array
* items:
* type: string
* schema:
* properties:
* _ids:
* type: array
* items:
* type: string
* responses:
* 200:
* description: return the deleted todo
Expand Down
2 changes: 0 additions & 2 deletions src/api/users/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export default ({ config, db }) => {
* description: user object
* in: body
* required: true
* type: object
* schema:
* $ref: '#/definitions/User'
* responses:
Expand Down Expand Up @@ -94,7 +93,6 @@ export default ({ config, db }) => {
* description: user object
* in: body
* required: true
* type: object
* schema:
* $ref: '#/definitions/User'
* responses:
Expand Down

0 comments on commit 3aa69e7

Please sign in to comment.