News for hackers. Stuff that matters.
Re:Ask HN: REST or RPC? by argonaut on Saturday December 28, 2013 @11:12PM (#6978333)
It bears noting that when people talk about REST(ful) APIs, they are not actually talking about strictly 100% pure REST. Some parts of the original REST spec are impractical in practice (HATEOAS, anyone?) and are never used.
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.
Re:Ask HN: REST or RPC? by argonaut on Sunday December 29, 2013 @03:49AM (#6978926)
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.