~/talk

Documenting Laravel APIs

Talkat PHP UK Conference 2024 · 2024-02-15..02-16· [laravel, developer-experience]
slides:none on file

Demonstrates that Scribe generates human‑readable API docs straight from Laravel controllers, form requests and API resources, producing an OpenAPI YAML plus static HTML and example code snippets; shows extracting validation rules and examples from factories, adding query/body parameter annotations, documenting 200/401/422 responses and a 204 delete, and enabling try‑out snippets or hosting the output as static pages. Scribe generates docs from Laravel code and response samples from factories and form requests and the generated docs work end‑to‑end.

AI-written summary · about

  1. 0:00Introduction
  2. 3:22API documentation matters
  3. 8:20API documentation challenges
  4. 10:27OpenAPI and Scribe
  5. 13:18Scribe with Laravel Chirper
  6. 16:14Basic API docs
  7. 18:42Grouping endpoints
  8. 21:11Query params and responses
  9. 26:28Request body and validation
  10. 31:28Error responses and edge cases
  11. 36:58Scribe and OpenAPI config
  12. 41:38Scribe benefits
  13. 43:02Hosting API docs
  14. 45:12Q&A
  15. 46:36Q&A
  16. 50:38Q&A
~/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.