News for hackers. Stuff that matters.
Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by jpochtar on Friday September 14, 2018 @09:51AM (#17987145)
Most of the time we use json+http, we need an RPC mechanism, but are afraid to say it because the web people were duped into thinking REST is good.
Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by cowmoo728 on Friday September 14, 2018 @10:13AM (#17987296)
I'm currently working on fixing a semi broken REST API that exposed way too much of the data internals to clients. The clients have so much control over the DB that they must chain calls in a specific order and have none of them drop or else the DB can get into a nonsensical state. I understand why it was built this way by the consulting firm, because it let them leverage a server side framework to auto generate a ton of endpoints based on the DB schema, but it's a great example of REST gone wrong.

I'm considering transitioning to an RPC framework to dig out of this mess, but not sure that will go over well with one of the REST gurus on my team.

Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by anentropic on Friday September 14, 2018 @10:43AM (#17987527)
the problem here seems to have nothing to do with REST
Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by macca321 on Friday September 14, 2018 @10:04AM (#17987228)
Pleasingly the docs here refer to HTTP APIs and not REST APIs.
Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by tannhaeuser on Friday September 14, 2018 @07:45PM (#17991992)
It would be even more pleasing if "API" were dropped in favour of "protocol".
Re:Show HN: Uplink – Build Reusable Objects for Consuming We... by danpalmer on Friday September 14, 2018 @09:54AM (#17987165)
REST is good, we were duped into thinking that the Twitter API is an example of a REST API that is worth following.