Re:HTTP API Design Guide
by kimh on Wednesday November 26, 2014 @10:01PM
(#8665799)
I am not sure about "Provide full resources where available". Why do we need to return everything with DELETE request? Client is supposed to know what to be deleted, so the response seems redundant.
[ Parent
| on HN ]
Re:HTTP API Design Guide
by hermanradtke on Thursday November 27, 2014 @01:52AM
(#8666285)
Consider this a request to delete an item from a users shopping cart:
DELETE /api/users/1234/cart/5678
I would expect this response to return the cart resource so client does not have to issue a GET /api/users/1234/cart request.