3 ms·
I notice all the methods use POST. Shouldn't they use GET instead, on the ground that each access doesn't change the state of the server? http://www.w3.org/2001
by cabalamat 18y ago
I notice all the methods use POST. Shouldn't they use GET instead, on the ground that each access doesn't change the state of the server? http://www.w3.org/2001/tag/doc/whenToUseGet.html http://www.w3.org/2001/tag/doc/whenToUseGet.html
- eli 18y agoI like RESTful APIs too, but it's silly to imply that anything else is wrong
- compay 18y agoI'm not sure the implication was necessarily that it was wrong, the poster (no pun intended) could have meant that it could simply have been better to use GET.
- cabalamat 18y agoThat's right: I wasn't implying it's wrong to use POST, merely that GET is clearer, since using it would make it more obvious that the query isn't changing the state of the server.