swagger.yaml 645 B

12345678910111213141516171819202122232425262728293031
  1. definitions:
  2. api.RegistStuct:
  3. properties:
  4. passWord:
  5. type: string
  6. userName:
  7. type: string
  8. type: object
  9. info:
  10. contact: {}
  11. license: {}
  12. paths:
  13. /user/regist:
  14. post:
  15. parameters:
  16. - description: 用户注册接口
  17. in: body
  18. name: data
  19. required: true
  20. schema:
  21. $ref: '#/definitions/api.RegistStuct'
  22. type: object
  23. produces:
  24. - application/x-www-form-urlencoded
  25. responses:
  26. "200":
  27. description: '{"code":200,"data":{},"msg":"ok"}'
  28. schema:
  29. type: string
  30. summary: 创建用户
  31. swagger: "2.0"