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.

Learn REST in 18 Slides

36 pointsby surajguptaalmost 11 years ago

4 comments

lsh123almost 11 years ago
There is an advantage in separating "protocol" from "binding" (in this case, "HTTP binding"). While REST is typically explained as an HTTP-only protocol, this is not the only possible "binding". I've successfully designed and implemented REST-style APIs using non-HTTP based RPC methods in the past. The main benefits in REST are not coupled with using HTTP GET/POST/PUT/DELETE but with the clearly defined model of resources, operations, client/server and limitations (e.g. statelessness) to make it a simple (but powerful) model.
评论 #7885210 未加载
steschalmost 11 years ago
A lot of people request a certain reply format by adding an extension like .json or .xml to the request. Seems easier that using Accept.<p>With Accept you need to parse the &quot;;q=X&quot; part as well.<p>See Accept when I access a website with Firefox: text&#x2F;html,application&#x2F;xhtml+xml,application&#x2F;xml;q=0.9,<i>&#x2F;</i>;q=0.8<p>Your REST API needs to understand this, according to these slides.
评论 #7885462 未加载
评论 #7885406 未加载
ivan_ahalmost 11 years ago
Direct link anyone?<p>I can&#x27;t GET this file.
评论 #7885327 未加载
programminggeekalmost 11 years ago
Holy wall of text slides Batman!
评论 #7885231 未加载
评论 #7885191 未加载