I'm working on designing Restful API for forgot password flow. The flow to be used in web application is below:
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.
I would appreciate your suggestions on how this flow can be translated to Restful API's.
Thank you,
Raj