~/talk

Introducing Brainstem, your companion for rich Rails APIs

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails, javascript]
speakerdeck:tectonic
slides:none on file

A Rails library named Brainstem appears on GitHub as a released API presentation layer that serializes ActiveRecord via presenters, versions those presenters, and exposes predictable JSON with sideloaded associations so complex graphs return in one network request. It adds filters, sorts, pagination, and reuses model scopes, and ships an adapter brainstem.js that provides an identity map for Backbone so client code loads relational models without repeated requests. Mavenlink uses it for internal and external APIs and it works in production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:53What do you want in an API
  3. 5:13Fast API
  4. 7:10Motivation
  5. 11:57Presenters
  6. 15:13Filters Sorts
  7. 23:34Relational Models
  8. 24:23Design Decisions
  9. 27:12Filters
  10. 30:52Summary
~/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.