~/talk

Content Negotiation for REST APIs

Talkat Platform Summit 2014 · 2014-10-20..10-22· [api-design, web-platform]
slides:none on file

Argues that REST APIs should serve resources, not file-encoded representations, by using built-in HTTP content negotiation so the same URI can return PNG, SVG, video, or JSON based on client capability. Shows concrete tools: Accept header, the q (quality) parameter to rank formats, and Accept-Language for locales. Cites real changes (Travis CI serving SVG at old .png URLs), notes formats keep appearing (webp, webm, GIFV) and that SoundCloud handles massive uploads (~12 hours of audio per minute).

AI-written summary · about

  1. 0:00Introduction
  2. 1:38The shift from SOAP to REST
  3. 4:10Why REST is superior
  4. 6:52The problem with extensions
  5. 8:51Content negotiation headers
  6. 14:03Practical content negotiation
  7. 17:41Evolving APIs over time
  8. 24:01Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.