TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

RESTful APIs R.I.P.

4 pointsby jsnathanover 9 years ago

3 comments

cpbothaover 9 years ago
So the author proposes to replace REST with &quot;JSON-pure APIs&quot;: 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.<p>With this, we would lose the discoverability of a good REST API (see <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HATEOAS" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HATEOAS</a> ), which would be a huge price to pay.<p>Other than that, this reminds me a bit of:<p>&quot;Hey man, this relational stuff is really hard! There must be a better way...&quot;<p>&quot;I know a better way! Let&#x27;s rather just stick all of our data into these JSON objects...&quot;
评论 #10137638 未加载
geonikover 9 years ago
When it comes to APIs, every now and then someone say &quot;X is dead, Y is the future&quot;.<p>APIs are not a one-size-fits-all problem, and while general trends and paradigms are a nice thing to have, developers should not be restricted by whatever is the hottest buzzword today.<p>A nice and clean API will always be pleasant to use, and this has nothing to do with RESTful awesomeness or SOAP verbosity.
innerspiritover 9 years ago
&quot;...it has served us well for two decades. [...] is probably one of the worst ideas ever widely adopted in web software&quot;