JSON API
summary
JSON API is a concrete specification for JSON REST endpoints that claims to prevent bike-shedding by forcing one canonical document shape: root data with type/id, attributes, and relationships, plus an included array for related resources and sparse fieldsets to trim payloads. It emphasizes backward-compatible, additive-only releases (one release on May 29), targets Ember Data interoperability, lists implementations like jsonapi-resources and Rails/ActiveModelSerializers (AMS not yet v1.0 compatible), and supports bulk ops, link-based relationships, and extension negotiation.
AI-written summary · about
chapters (15)
- 0:00Introduction by Marco
- 1:07What is JSON API
- 2:33Why a JSON API spec
- 5:49Bikeshedding and API design
- 7:13History of JSON API
- 9:24Goals of JSON API
- 11:13JSON API format overview
- 12:40Resource objects explained
- 14:31Relationships and hypermedia
- 17:08Including related resources
- 18:55CRUD operations in JSON API
- 21:48Advanced features
- 23:16Bulk operations
- 23:59Ruby implementations
- 24:41Summary and conclusion
related talks
11mBuilding Efficient APIs with JSON-API
19mJSON API in the Ruby world
21mThe API of the API
32mFast, Testable and SANE APIs
24mBuild The API First
40mWriting APIs the Easy Way with Rails API and AMS
38mGetting Your Content Where You Need It with JSON API
13mJSON: The Lingua Franca of APIs (and Everything Else)
