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.

REST APIs –  Back to Basics

2 pointsby codeinchaosalmost 8 years ago

1 comment

dozziealmost 8 years ago
The most basic of everything is that REST assumes that you won&#x27;t ever try to call an <i>operation</i> on the resource, apart maybe from creating or destroying it (and God forbid running an operation that is not tied to any resource at all, or works on multiple resources at the same time). So your REST service is basically a passive data store. Once you go outside of this realm (and more often than not you should do so), you have remote procedures, and REST, being a <i>pattern</i> instead of <i>protocol</i> and working on <i>individual object</i>, gives you nothing useful.