Sylius Migration to API Platform 3
summary
Migration moves Sylius from API Platform 2.x to 3.x with concrete numbers and work: 50 commits, 1,700 files, ~30,000 lines changed and the API now exposes 73 shop endpoints, 188 admin endpoints. The core strategy is preserving stateless business logic via immutable command DTOs and using a serializer context builder enrichment to inject host, locale, auth and token into constructor args. Testing relies on BDD + contract tests as a safety net. Subresource handling, new metadata/operation/provider/processor APIs and OpenAPI documentation modifiers get implemented but some deep-nesting and creation edge cases remain.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 1:12About Sylius and API Platform
- 3:04Migration challenges overview
- 5:14API Platform 3 features impact
- 7:01Commands in Sylius architecture
- 9:50Request complexity in e-commerce
- 12:41Request enrichment with API Platform
- 14:25Benefits of immutable commands
- 14:47Testing strategies in Sylius
- 17:35Sub-resources in API design
- 20:28Deeply nested resource issues
- 22:55OpenAPI documentation challenges
- 24:44Documentation modifiers extension
- 25:46Key takeaways and recommendations
- 27:09Conclusion and Q&A
