蛋蛋星球 后台端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

60 line
1.3 KiB

  1. definitions:
  2. md.Response:
  3. properties:
  4. code:
  5. example: 响应码
  6. type: string
  7. data:
  8. description: 内容
  9. msg:
  10. example: 具体错误原因
  11. type: string
  12. type: object
  13. host: localhost:4001
  14. info:
  15. contact:
  16. email: 1239118001@qq.com
  17. name: dengbiao
  18. url: http://www.swagger.io/support
  19. description: 管理后台接口文档
  20. license:
  21. name: Apache 2.0
  22. url: http://www.apache.org/licenses/LICENSE-2.0.html
  23. termsOfService: http://swagger.io/terms/
  24. title: 蛋蛋星球-管理后台
  25. version: "1.0"
  26. paths:
  27. /api/demo:
  28. post:
  29. consumes:
  30. - application/json
  31. description: Demo样例测试
  32. parameters:
  33. - description: 用户名密码
  34. in: body
  35. name: req
  36. required: true
  37. schema:
  38. type: object
  39. produces:
  40. - application/json
  41. responses:
  42. "200":
  43. description: token
  44. schema:
  45. additionalProperties: true
  46. type: object
  47. "400":
  48. description: 具体错误
  49. schema:
  50. $ref: '#/definitions/md.Response'
  51. summary: Demo测试
  52. tags:
  53. - Demo
  54. securityDefinitions:
  55. MasterID:
  56. in: header
  57. name: MasterID
  58. type: apiKey
  59. swagger: "2.0"