auth.raml 706 B

123456789101112131415161718192021222324252627282930
  1. #%RAML 1.0
  2. /current:
  3. get :
  4. displayName : 获得当前登录用户的信息
  5. is : [Response: { res: User }]
  6. /login:
  7. post :
  8. displayName : 登录
  9. body : LoginDTO
  10. is : [Response: { res: User }]
  11. /verification:
  12. post :
  13. displayName : 手机验证码
  14. body : VerificationDTO
  15. is : [EmptyResponse]
  16. /register:
  17. post :
  18. displayName : 注册
  19. body : RegisterDTO
  20. is : [Response: { res: User }]
  21. /password/change:
  22. post :
  23. displayName : 修改密码
  24. body : ChangePasswordForm
  25. is : [EmptyResponse]