SkillsReviewed · dev-toolings

API Platform Versioning (Symfony)

API Platform Versioning is an assistant skill for Symfony developers changing API Platform APIs, but its examples need project-specific integration and compatibility checks. It guides deprecation, removal dates and parallel API representations when breaking changes require them.

Researched 16 Nov 2026

In short.

API Platform Versioning is an assistant skill for Symfony developers evolving API Platform APIs, but its code examples are incomplete and their framework compatibility is unverified. It favors deprecation metadata and removal headers before parallel routes, with examples for version-specific response objects, header-based version selection and tests. Specific limitations include an outdated sample removal date, inconsistent migration documentation and missing header assertions in the supplied tests. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises exactly content/skills/api-platform-versioning/SKILL.md and content/skills/api-platform-versioning/reference.md at commit 83522d88f20313c1db6f042a5a49c0e9e0b258b1, plus the associated repository-root LICENSE outside that folder. Other skills, repository installation and build code, commit history and framework documentation are excluded. Nothing was executed; installation, assistant-host compatibility, framework compatibility, HTTP behavior and test outcomes remain unassessed.

The overview

Identity

The resource is the api-platform-versioning skill folder in dev-toolings/superpowers-symfony. It contains SKILL.md, which provides assistant instructions, and reference.md, which supplies explanations and PHP examples.

The original folder is [https://github.com/dev-toolings/superpowers-symfony/tree/main/content/skills/api-platform-versioning]. The supplied files represent commit 83522d88f20313c1db6f042a5a49c0e9e0b258b1; the main-branch address can change.

Assessment

The skill provides a useful starting structure for planning API changes: first consider deprecation, communicate a removal schedule, and introduce parallel representations when compatibility requires them. Its concrete examples make the trade-offs easier to understand than a checklist alone.

The evidence supports its usefulness as guidance, but does not establish a working integration or correctness on the framework releases it names. The snippets require adaptation, and no installation, commands or tests were run.

Intended users

The strongest fit is a developer maintaining a Symfony application with API Platform consumers who need time to migrate. Relevant changes include renaming fields, retiring operations and changing response formats.

Beginners receive a decision sequence and examples, but will need familiarity with PHP attributes, Symfony routing, serialization and application tests. Experienced developers can use the patterns to organize a migration, while supplying their own domain model, service configuration and compatibility decisions.

Capabilities

The instructions cover deprecating resources, operations and properties; announcing removal dates with Sunset; and supplying Deprecation and successor-version links. They also call for documenting changes and testing each active version.

The reference illustrates separate versioned paths, serialization groups that select exposed fields, version-specific data transfer objects that define response shapes, and providers that construct those responses. A separate example selects the representation through X-API-Version.

Using it

Requirements

Applying the examples requires a Symfony application using API Platform. Using the resource as an assistant skill also requires a host that can load its instructions and companion reference; supported hosts and installation locations are not documented in the supplied files.

SKILL.md declares file reading, searching, writing, editing and shell tools. An assistant granted those capabilities could modify the application and invoke commands. The examples additionally depend on project-specific entities, DTOs, providers and test fixtures whose complete implementations are not supplied.

How it works

SKILL.md supplies the decision sequence and expected deliverables, while reference.md supplies implementation patterns. The sequence starts with deprecationReason, adds sunset dates and migration headers, and reserves parallel versions for changes that deprecation and serialization groups cannot express.

For separate versions, the reference shows either multiple resource declarations with different paths and groups or distinct output DTOs and providers. For older API Platform versions, it proposes a Symfony response listener to attach migration headers. These are source-provided patterns rather than verified compatibility guarantees.

Setup

Keep SKILL.md and reference.md together so the relative reference remains available. Host-specific installation instructions are unknown. Before adapting examples, establish the installed Symfony and API Platform versions and connect the sample DTOs and providers to the application's actual classes and services.

The reference suggests php bin/console debug:router, php bin/console api:openapi:export and ./vendor/bin/phpunit --filter=Version to inspect routes, export API documentation and run matching tests. These are suggested validation commands; none was executed.

Example

The product migration illustrates a concrete breaking change: v1 returns price as an integer number of cents, while v2 returns an object containing amount and currency. The v2 response object also includes sku and metadata.

With the shown /api routing prefix, the examples expose /api/v1/products/{id} and /api/v2/products/{id}. The sample tests expect a v1 price of 1999 and a v2 price containing amount 1999 and currency EUR. These are illustrative assertions, not observed test results.

Assessment & evidence

Limitations

The response-listener example hard-codes a removal date of 1 January 2025, already past when the source was captured. The migration-guide comment also says priceInCents was removed, although the earlier v1 DTO names the field price. Both details need correction for an actual migration.

The header-based provider sends missing and unrecognized version values to v2. It does not show an unsupported-version error path or cache variation by X-API-Version. The supplied tests check two successful GET response shapes, without asserting deprecation headers or header-based version selection.

The snippets omit parts of a complete application, including some imports, domain classes, service wiring and fixture definitions. Their presence does not establish that copying them into a project will work.

Fit and trade-offs

The practical attraction of the deprecation-first approach is that clients can receive migration information while the API retains one evolving surface. This suggests a good fit for scheduled removals and transitions that can preserve existing responses during a migration window.

For incompatible response shapes, separate DTOs make differences explicit, but each active representation adds code and tests to maintain. The resource illustrates this trade-off; it provides no measured evidence of reduced migration failures, development time or operating cost.

Alternative approaches

Within the resource, the alternatives are different API evolution strategies. It recommends serialization groups for minor additive changes and deprecation metadata with a removal window before introducing another version.

For breaking changes, it presents versioned paths with groups, separate DTOs and providers, or header-based representation selection. Paths expose the requested version in the URL; the header example keeps selection in X-API-Version. The material does not compare other skills or frameworks.

Source evidence

The original instruction file is available at [https://raw.githubusercontent.com/dev-toolings/superpowers-symfony/83522d88f20313c1db6f042a5a49c0e9e0b258b1/content/skills/api-platform-versioning/SKILL.md].

The companion implementation reference is available at [https://raw.githubusercontent.com/dev-toolings/superpowers-symfony/83522d88f20313c1db6f042a5a49c0e9e0b258b1/content/skills/api-platform-versioning/reference.md].

The associated license is available at [https://raw.githubusercontent.com/dev-toolings/superpowers-symfony/83522d88f20313c1db6f042a5a49c0e9e0b258b1/LICENSE]. These files establish the resource's content and permissions, but supply no execution results or independently captured framework documentation.

Access & freshness

Costs

The supplied files provide no purchase price, subscription terms, model-provider requirement or usage measurements. Assistant charges, integration effort and ongoing maintenance costs are unknown.

The guidance recommends limiting active versions to two or three, but supplies no measurements showing how much maintenance that would save.

Rights and reuse

The repository-root LICENSE supplies an MIT license with a 2024 copyright notice. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.

The license disclaims warranties and liability. No separate license terms appear in the supplied skill files.

Freshness and compatibility

The supplied snapshot was captured on 16 November 2026 at 21:28:26.225 UTC, at commit 83522d88f20313c1db6f042a5a49c0e9e0b258b1. Later changes are outside this evidence.

The reference says it targets API Platform 5.0 on Symfony 7.4 LTS or 8.x and also supports API Platform 4.4, with older-version differences discussed separately. These compatibility statements and its description of deprecation as the official recommendation are source assertions, not independently verified facts.

SKILL.md specifically flags operation-level migration headers as a v4-era feature requiring confirmation on the installed version. Actual compatibility and the minimum PHP version remain unknown.

Practical next steps

Before use, confirm the relevant metadata and header options against documentation for the installed API Platform release. Choose the migration strategy around the actual response change, replace example dates and paths, and reconcile the field names in the migration documentation.

Add application-level tests for each supported representation, actual Deprecation, Sunset and successor-link headers, and the intended handling of missing or unsupported version values. If using header-based selection with caches, establish how responses vary by that header. These checks remain unperformed.

Retain the companion reference when installing the skill and preserve the MIT copyright and permission notices when redistributing its files.

Evidence for this report

LICENSEnotice · checked 2026-11-16