I am building a web services application and I am looking for advice on how to update a resource.
I have a user endpoint which allows the creation, modification and ability to delete a user in the database. My question relates to the updating of the user. In the table I have written a schema of how the API would work and the descriptions of each endpoint from what I have read.
The PUT and POST of an existingEmailId
appear to do the same thing because the emailId is the actual id of the resource. Therefore for this endpoint is it appropriate to just create one of the endpoints, or should I be using both?
Any advice would be appreciated.