Build RESTful APIs easily with Symfony
summary
Concrete recipes and working configs for building JSON APIs with FOSRestBundle, object serialization via JMS serializer, and hypermedia using the HATEOAS project. Shows content‑type negotiation, a request body converter that maps incoming JSON to domain objects, automatic validation producing a ConstraintViolationList, and a wrapper for consistent error payloads. Demonstrates Bazinga HATEOAS output with _links and _embedded plus pagination metadata, and using Guzzle for service‑to‑service calls, all wired and tested in real examples.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:21Who am I?
- 0:50What is REST?
- 2:10Layered System (4/6)
- 2:31Uniform interface (5/6)
- 3:07Code on demand (optional) (6/6)
- 3:39HTTP Methods
- 5:48Levels
- 8:00Configuration
- 8:30Usage
- 10:00Exclusion strategy
- 11:28Serializer Handler
- 14:56Other features
- 16:18Controller
- 18:17Content type negotiation
- 19:17Request Body Converter
- 20:29Validation (with the Symfony Validator Component)
- 24:51Error handling
- 27:45HATEOAS
- 33:56Result
- 35:48Representation
- 37:10Guzzle Bundle
- 38:21Authentication
- 39:48Authorisation
- 44:11Some references
related talks
57mBuilding first-class REST APIs with Symfony
39mBuilding RESTful APIs with Symfony Components
41mBuilding first-class REST APIs with Symfony
41mBuilding Restful APIs with Symfony Components
53mHigh Quality APIs with API Platform
21mBuilding Flexible APIs with Spring HATEOAS
34mAPI Platform: From Rest & GraphQL APIs to state-of-the-art standards in seconds
31mTesting API's written in PHP using the Behat feature testing tool
