5 ms·
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 del
by kimh 12y ago
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.
- myhf 12y agoI agree. If the DELETE is successful, the full resource should be null, so it would make sense to send a 204 with no content.
- hermanradtke 12y agoConsider 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.