By cpbotha
So the author proposes to replace REST with “JSON-pure APIs”: Just stuff all of your data (errors, warnings, data, domain-specific stuff; he really does not propose any structure) into JSON, and then send and receive that via anything.
With this, we would lose the discoverability of a good REST API (see https://en.wikipedia.org/wiki/HATEOAS ), which would be a huge price to pay.
Other than that, this reminds me a bit of:
“Hey man, this relational stuff is really hard! There must be a better way…”
“I know a better way! Let’s rather just stick all of our data into these JSON objects…”
See more about this article by clicking the link here: https://news.ycombinator.com/item?id=10134826
cpbotha comments on "RESTful APIs R.I.P."
No comments:
Post a Comment