What we’ve learned designing the new Sylius API
summary
Chooses REST with API Platform instead of a GraphQL-first rewrite, already covering about 100% of shop functionality and 70% overall, and replaces FOSRest. Implements state transitions as new resources (POST a cancellation request that can be polled) rather than verb-suffixed endpoints. Uses Symfony serializer dynamic fields with a second class to document custom IRIs instead of forcing DB-mapped fields or heavy read-model plumbing. Splits shop and admin into separate endpoints (72 shop, 128 admin) and ships a "/v2" URL version while planning Sunset headers.
AI-written summary · about
