4 ms·
>I'm going to have to call bullshit on that one. And yet you don't provide a single concrete reason. And even go on to say the non-REST way you use REST at you
by coldtea 10y ago
>I'm going to have to call bullshit on that one.
And yet you don't provide a single concrete reason. And even go on to say the non-REST way you use REST at your team.
>REST is one of the more successful strategies we've come up with for connecting systems, this is just another case of letting perfect stand in the way of good enough. Using GET for non-destructive operations and POST for updates and deletes is a nice, portable compromise. I've been trying hard for years to find a reason to bother with PUT, but so far I've found it not worth the effort.
Note how none of this (or even few parts of what the author of TFA described) is actually REST as defined by Roy.
- codr4life 10y agoYou might do well to read what I wrote about perfect and good enough. These are ideas, not laws.
- Avernar 10y agoTaking ideas from REST and putting it into your JSON-RPC API doesn't make your API REST. But you call it REST anyways. It's like reading a book on building a house and using ideas to build a shed. Sure your shed has electricity and a sink but it's still a shed, not a house. Same with terms like RESTful. You don't call your shed a "house like building" as it's missing key pieces of a house. REST requires HATEOAS. The only real implementation is the world wide web. Everything else is really JSON-RPC or some other protocol with a few ideas borrowed from REST.