~/talk

Building and Testing API Endpoints with Phoenix

Talkat ElixirDaze 2016 · on Friday, 2016-03-04· [elixir-and-erlang, testing]
slides:none on file

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

  1. 0:00Intro
  2. 2:50Overview
  3. 4:50JustSerializer
  4. 7:23Password Encryption
  5. 8:30Authentication
  6. 9:23Authentication Strategies
  7. 10:24Authorization Pipeline
  8. 11:08Rolling Based Authorization
  9. 12:11Composable Queries
  10. 14:21Inquisitor
  11. 20:17Relationship API
  12. 22:39Authentication Authorization
  13. 23:13Octet Support
  14. 28:01ValidField
  15. 31:27Ecto Fixtures
~/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.