swagger.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. basePath: /v1
  2. definitions:
  3. controller.ResponseBase:
  4. properties:
  5. code:
  6. type: integer
  7. memo:
  8. type: string
  9. type: object
  10. info:
  11. contact:
  12. email: support@swagger.io
  13. name: API Support
  14. url: http://www.swagger.io/support
  15. description: web框架 API 文档
  16. license:
  17. name: Apache 2.0
  18. url: http://www.apache.org/licenses/LICENSE-2.0.html
  19. termsOfService: http://swagger.io/terms/
  20. title: web框架
  21. version: "1.0"
  22. paths:
  23. /Auth/SignUp:
  24. post:
  25. consumes:
  26. - application/x-www-form-urlencoded
  27. description: 用户添加
  28. parameters:
  29. - description: 用户名
  30. in: formData
  31. name: userCode
  32. required: true
  33. type: string
  34. - description: 密码
  35. in: formData
  36. name: password
  37. required: true
  38. type: string
  39. - description: 邮箱
  40. in: formData
  41. name: email
  42. type: string
  43. - description: 手机号
  44. in: formData
  45. name: phone
  46. type: string
  47. - description: 姓名
  48. in: formData
  49. name: name
  50. type: string
  51. produces:
  52. - application/json
  53. responses:
  54. "200":
  55. description: OK
  56. schema:
  57. $ref: '#/definitions/controller.ResponseBase'
  58. summary: 用户添加
  59. tags:
  60. - Auth
  61. securityDefinitions:
  62. ApiKeyAuth:
  63. in: header
  64. name: Authorization
  65. type: apiKey
  66. BasicAuth:
  67. type: basic
  68. OAuth2AccessCode:
  69. authorizationUrl: https://example.com/oauth/authorize
  70. flow: accessCode
  71. scopes:
  72. admin: ' Grants read and write access to administrative information'
  73. tokenUrl: https://example.com/oauth/token
  74. type: oauth2
  75. OAuth2Application:
  76. flow: application
  77. scopes:
  78. admin: ' Grants read and write access to administrative information'
  79. write: ' Grants write access'
  80. tokenUrl: https://example.com/oauth/token
  81. type: oauth2
  82. OAuth2Implicit:
  83. authorizationUrl: https://example.com/oauth/authorize
  84. flow: implicit
  85. scopes:
  86. admin: ' Grants read and write access to administrative information'
  87. write: ' Grants write access'
  88. type: oauth2
  89. OAuth2Password:
  90. flow: password
  91. scopes:
  92. admin: ' Grants read and write access to administrative information'
  93. read: ' Grants read access'
  94. write: ' Grants write access'
  95. tokenUrl: https://example.com/oauth/token
  96. type: oauth2
  97. swagger: "2.0"