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.

CHAPTER 5: Representational State Transfer (REST)

34 pointsby collintabout 14 years ago

3 comments

collintabout 14 years ago
I've about had it reading discussion after discussion on the topic of REST between people who haven't read the damned paper.<p>Here is my takeaway:<p>There isn't much to do with URLs in here. One URL, One resource (collection counts as a resource). Talk about URLs all you want, there can bee good resource identifiers and bad ones. But REST doesn't care as long as you don't break the golden rule.<p>REST is an RPC system. You call remote procedures, GET, PUT, DELETE etc. on remote resources. You are probably not smart enough to do better than what naturally emerged as HTTP. Behemoths and industries have tried. But HTTP won, and it will win again.
评论 #2339893 未加载
评论 #2339922 未加载
评论 #2340028 未加载
kenjacksonabout 14 years ago
So in reading that chapter it seems like REST can be boiled down to these statements:<p>1) Client-server<p>2) Stateless<p>3) Cacheable or noncacheable constraints<p>4) Uniform interface<p>5) Abstracted so that you can only see the layers directly in front of you.<p>6) Client side code, e.g., Javascript<p>7) (Potentially) Late binding of reference to representation<p>8) "The connector interface is similar to procedural invocation, but with important differences in the passing of parameters and results. The in-parameters consist of request control data, a resource identifier indicating the target of the request, and an optional representation. The out-parameters consist of response control data, optional resource metadata, and an optional representation."<p>But a lot of what is described as REST imposes additional constraints that I don't see in this description. Did I miss something?
评论 #2339377 未加载
评论 #2339516 未加载
LilValleyBigEgoabout 14 years ago
Shouldn't that be RST?