我正在设计忘记密码流程的Restful API。以下是Web应用程序中使用的流程:
1) User enters user id
2) Application validates user id and sends verification token to user's email address
3) User will be asked for validation code and new password
4) User will enter validation code and new password
5) Application validates token and updates password.
我希望你能够就如何将这个流程转换为Restful API提供建议。
谢谢,
Raj