~/talk

Building first-class REST APIs with Symfony

Talkat SymfonyLive London 2018 · 2018-09-27..09-28· [api-design, php]
slides:none on file

Shows how to build REST APIs with Symfony components using DTOs via ParamConverter to keep controllers under five lines, an overrideable exception controller that returns structured JSON errors (use 201, 422/validation payloads, 429 rate-limit), and Fractal transformers for output plus link-aware pagination. Demonstrates repository-based filtering/sorting, a "disable total" query trick to avoid expensive counts, and recommends API Platform or the FOS-style bundle when wanting autogenerated routes, docs and formats.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:50What is REST and its principles
  3. 10:00Using HTTP verbs and response codes correctly
  4. 13:56Consistent error handling in APIs
  5. 17:34Data Transfer Objects and parameter converters
  6. 24:46Formatting API output with transformers
  7. 29:23Pagination and hypermedia links
  8. 36:47Tools for building REST APIs
  9. 39:36Recap and key takeaways
~/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.