~/talk

Building Efficient APIs with JSON-API

Talkat GORUCO 2018 · on Saturday, 2018-06-16· [web-platform, ruby-on-rails]
slides:none on file

Claim: the JSON-API spec reduces round trips and payload size by standardizing document shape and side‑loading related records. Evidence: a v1 spec since 2015, implementations in Ruby/Rails and JavaScript, and the JSON API Resources framework for Rails to auto-serialize and customize responses. Examples: sparse fieldsets, relationship endpoints, and error objects. Tradeoff: fewer moving parts than GraphQL and less infrastructure cost, with optimizes HTTP requests and JSON API Resources shown as practical choices.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01What are APIs
  3. 1:25JSONAPI
  4. 2:10Content Type
  5. 2:37Request Type
  6. 3:07Resource Objects
  7. 3:48Related Data
  8. 4:12Links
  9. 4:51fetching data
  10. 5:12relationships
  11. 6:08sorting
  12. 6:42updating relationships
  13. 7:51JSONAPI vs GraphQL
  14. 9:42Why use JSONAPI
  15. 10:10Outro
~/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.