~/talk

Fast, Testable and SANE APIs

Talkat Ancient City Ruby 2014 · 2014-04-03..04-04· [ruby, api-design]
github:benlovell
slides:none on file

Covers adopting the JSON API spec for compound documents, side‑loading and sparse fieldsets, and using rails-api to strip middleware so Rails runs fewer layers of Ruby for speed. Recommends active_model_serializers for conventional JSON output, notes built‑in caching was removed and needs careful handling, and explains conditional GETs with ETag/Last‑Modified to avoid work. Tests use rack‑test to assert status codes and serialized contracts; versioning must be additive to remain compatible.

AI-written summary · about

  1. 0:00Introduction and context
  2. 4:37API design principles
  3. 6:21JSON API standards
  4. 8:51Anecdotal intermission
  5. 10:23Advanced JSON API features
  6. 12:51HTTP semantics and consistency
  7. 14:33Optimizing Rails for APIs
  8. 18:05Micro-framework considerations
  9. 20:28Active Model Serializers
  10. 24:52Caching and performance
  11. 27:26Testing and conclusions
~/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.