3 ms·
Obligatory link to Fielding’s nearly decade-old blog post, “It is okay to use POST”: https://roy.gbiv.com/untangled/2009/it-is-okay-to-use-post https://roy.gbi
by tuespetre 8y ago
Obligatory link to Fielding’s nearly decade-old blog post, “It is okay to use POST”:
https://roy.gbiv.com/untangled/2009/it-is-okay-to-use-post https://roy.gbiv.com/untangled/2009/it-is-okay-to-use-post
The ‘recall’ and ‘sendpromotion’ ‘actions’ are still resources: ‘the resource that does a recall’ and ‘the resource that sends a promotion.’ You don’t ‘GET’ them or ‘DELETE’ them or ‘PUT’ something in their place. You just send a request that triggers those resources to do their thing: ‘POST’. It’s not CRUD and it’s 100% valid.