If I can do the following when creating a record,
URI: /api/roles/
Method: POST
Content: { Id: 0, Name: 'Admin', Description: 'Administration Role' }
Can I just do this if I want to update a record?
URI: /api/roles/
Method: PUT
Content: { Id: 1001, Name: 'Admin', Description: 'Administration Role' }
...because I can just get the identifier in the Id field. Instead of doing this?
URI: /api/roles/1001
Method: PUT
Content: { Id: 1001, Name: 'Admin', Description: 'Administration Role' }
...specifying the Id value twice. By the way, I cannot remove the Id field in the content.
If not, why? What is the main reason or advantage of appending the id of a resource in HTTP PUT, putting the HTTP specification aside?