Re:Ask HN: REST or RPC?
by dragonwriter on Sunday December 29, 2013 @01:03AM
(#6978610)
HATEOAS works pretty well for the web, so I don't know that I'd say its never used or impractical. Most people who talk about RESTful API's seem to use it as a term for RPC-over-HTTP without the overhead of SOAP, rather than to meaning anything with even a passing resemblance to what was described in Fielding's thesis.
[ Parent
| on HN ]
It's never used in RESTful APIs, which is what I mean.
Re:Ask HN: REST or RPC?
by dragonwriter on Sunday December 29, 2013 @05:25PM
(#6981747)
Almost none of REST is used in most "RESTful" APIs except incidentally, because "RESTful" APIs are usually simple RPC-over-HTTP, and have nothing to do with REST.
OTOH, there are RESTful APIs that actually try to use REST, including HATEOAS, such as PayPal's [1].
[1] https://developer.paypal.com/docs/integration/direct/paypal-...
Re:Ask HN: REST or RPC?
by aashishkoirala on Tuesday December 31, 2013 @10:54AM
(#6991055)
Thanks for the link to PayPal's API. I would be curious to know if doing pure HATEOAS like that has reaped any specific benefits for them.