Developing an API without API Platform
summary
Starts from a plain Symfony app (composer require api) and reconstructs API Platform features with a few dozen lines: View listener to serialize controller results, value resolver to deserialize and validate JSON into API models, and a custom ValidationException handled by an EXCEPTION listener that formats violations. Adds a tiny CORS listener, hand‑written SDK, user manual and a React+TypeScript+Redux admin. v0.1 implements the POST/GET review API (about 80% feature parity); it works but maintenance and boilerplate motivate using modern API Platform with pagination, SDK generation and Mercure.
AI-written summary · about
chapters (15)
- 0:00Introduction and background
- 2:35Defining the API requirements
- 5:31First attempt with API Platform
- 7:59Switching to NelmioApiDocBundle
- 9:49Simplifying controller logic
- 10:53ViewListener for serialization
- 12:02Value resolver for request handling
- 14:22Exception handling for validation
- 16:49CORS listener implementation
- 18:16Initial API v0.1 completion
- 19:02User manual and SDK requests
- 21:13Admin interface development
- 22:18Project outcomes and reflections
- 23:47API Platform today vs four years ago
- 25:36Closing remarks and Q&A
related talks
34mAPI Platform: From Rest & GraphQL APIs to state-of-the-art standards in seconds
42mThe future of API (Platform) architecture
43mSecure and Practical Authentication in API Platform
57mBuilding first-class REST APIs with Symfony
39mSuitable serialization with API Platform and Symfony
41mBuilding Restful APIs with Symfony Components
02h 36mProductive development with Site API
35mBuilding Your API for Longevity
