from Hacker News

Learn REST in 18 Slides

by surajgupta on 6/12/14, 5:49 PM with 19 comments

  • by lsh123 on 6/12/14, 6:22 PM

    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.
  • by stesch on 6/12/14, 6:52 PM

    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.

    With Accept you need to parse the ";q=X" part as well.

    See Accept when I access a website with Firefox: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8

    Your REST API needs to understand this, according to these slides.

  • by ivan_ah on 6/12/14, 6:54 PM

    Direct link anyone?

    I can't GET this file.

  • by programminggeek on 6/12/14, 6:28 PM

    Holy wall of text slides Batman!