I am developing a RESTful API for a reservation request and was very glad to see that I could match all the details of the application with 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 PUT for / users / self.
But now I found out that something is missing: the ability to request a new password if I forget my old one. Any idea how I could add this?
source share