Tag Info

New answers tagged

0

Thinking about this some more, we are coupling the resource to the URI. If the URI doesn't have the ID, the payload will need to be amended: PUT /no/id/here Payload: {name: "Adrian"} < What user??? Are there any reasons not to? The answer to this question depends on whether you want to allow the client to change the ID? If the ...


4

You are supposed to couple the Uniform Resource Identifier to the resource. When REST is implemented with HTTP, you use GET to retrieve the current value of the resource and PUT to set a new value. The GET does not have a payload, so the resource has to be identified by the URI. And the PUT is logically done to the same URI and the payload should look ...



Top 50 recent answers are included