Documenting your API
summary
Converts an undocumented CakePHP API into an OpenAPI YAML schema and live docs using Swagger UI and ReDoc, plus client generation and Postman import. Demonstrates auto-generated paths, inferred request/response schemas from models and validators, pagination params, JSON and JSON‑LD output, and a switchable exception renderer that surfaces validation errors. Ships a tool called cakephp-swagger-bake to bake OpenAPI from code and an alpha project MixerApi providing auto‑routing and extra response formats; the demo proves the pipeline works end‑to‑end.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:11Meet the speaker Chris Nizzardini
- 2:34Developer survey on API documentation
- 5:26Why API documentation matters
- 8:20Introducing OpenAPI specification
- 13:00OpenAPI schema and components
- 16:32OpenAPI tools and generators
- 18:18Automating OpenAPI with frameworks
- 20:03Introducing CakePHP Swagger Bake
- 23:11Introducing Mixer API project
- 24:38Live demo of Mixer API
- 29:45Conclusion and Q&A
