Building and Testing API Endpoints with Phoenix
summary
Phoenix replaces Rails as the backend for Ember apps, using the JSON API spec and concrete libs: JSerializer for content negotiation and param handling, Inquisitor for composable Ecto queries that shrink ~100-line tests to under 10, and Vorhees plus ectofixtures and test helpers to collapse verbose JSON API assertions and fixture wiring. Authentication uses a polymorphic strategy and role pipeline that halts unauthorized requests. The claim is practical: extracted libraries reduce boilerplate and make the API and tests measurable and reproducible.
AI-written summary · about
chapters (15)
- 0:00Intro
- 2:50Overview
- 4:50JustSerializer
- 7:23Password Encryption
- 8:30Authentication
- 9:23Authentication Strategies
- 10:24Authorization Pipeline
- 11:08Rolling Based Authorization
- 12:11Composable Queries
- 14:21Inquisitor
- 20:17Relationship API
- 22:39Authentication Authorization
- 23:13Octet Support
- 28:01ValidField
- 31:27Ecto Fixtures
related talks
47mHolistically built and tested APIs
47mElixir for curing product development pains
47mElixir for curing product development pains?
01h 00mPhoenix: an Intro to Elixir's Web Framework
39mPainless Test Driven Development with Elixir and Phoenix
44mRise of The Phoenix - Building an Elixir Web Framework
01h 00mPhoenix a Web Framework for the New Web
32mWhy I choose Phoenix
