RESTful API: How to model 'request new password'?

Posted by Jan P. on Stack Overflow See other posts from Stack Overflow or by Jan P.
Published on 2010-04-21T14:00:15Z Indexed on 2010/04/21 14:03 UTC
Read the original article Hit count: 168

Filed under:
|

I am designing a RESTful API for a booking application and was quite happy to see I could map all details of the application to the 4 HTTP methods.

/users - GET, POST
/users/({id}|myself) - GET, POST, PUT, DELETE
/users/({id}|myself)/bookings - GET, POST
/users/({id}|myself)/bookings/{id} - GET, POST, PUT, DELETE

Example: Updating my own user uses a PUT to /users/myself.

But now I found out that one thing is missing: The possibility to request a new password if I forgot my old one. Any idea how I could add this?

© Stack Overflow or respective owner

Related posts about rest

Related posts about api