2 ms·
You can use the same end point for all possible actions on an object, instead of having to define different ones, and it standardizes which actions are availabl
by creshal 11y ago
You can use the same end point for all possible actions on an object, instead of having to define different ones, and it standardizes which actions are available where. (Otherwise, is it /wombat/1/edit or /wombat/edit/1/ or /wombat/1/?action=edit or …)
There's no disadvantages to using HTTP verbs over anything else.
> It seems like the author's distinction between POST, PUT and PATCH seems rather arbitrary...
PATCH is… awkward, and probably should be ignored. POST always creates a new resource, under an URL picked by the server. PUT creates or updates a resource under an URL picked by the client.