蛋蛋星球-客户端
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.
 
 
 
 
 

59 lines
1.2 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. produces:
  39. - application/json
  40. responses:
  41. "200":
  42. description: token
  43. schema:
  44. additionalProperties: true
  45. type: object
  46. "400":
  47. description: 具体错误
  48. schema:
  49. $ref: '#/definitions/md.Response'
  50. summary: Demo测试
  51. tags:
  52. - Demo
  53. securityDefinitions:
  54. MasterID:
  55. in: header
  56. name: MasterID
  57. type: apiKey
  58. swagger: "2.0"