api-platform-dto-resou…
Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper (#[Map], stateOptions) for decoupled…
Evolve API Platform APIs via deprecation (deprecationReason/sunset, RFC 8594/9745), the recommended alternative to versioning; plus path/header strategies
Claude Code
$ npx -y skills add dev-toolings/superpowers-symfony --skill api-platform-versioning --agent claude-code
Codex
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a codex -y
Cursor
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a cursor -y
Gemini CLI
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a gemini-cli -y
GitHub Copilot
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a github-copilot -y
OpenCode
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a opencode -y
Windsurf
$ npx skills add dev-toolings/superpowers-symfony --skill api-platform-versioning -a windsurf -y
name: api-platform-versioning description: Evolve API Platform APIs via deprecation (deprecationReason/sunset, RFC 8594/9745), the recommended alternative to versioning; plus path/header strategies capabilities: [read, search, edit, shell] tags: [api-platform] # projected by `bun run build` — do not edit by hand allowed-tools: - Read - Glob - Grep - Write - Edit - Bash
1. Try deprecation first: set `deprecationReason` on the resource, the operation, or `#[ApiProperty]`. 2. Add `sunset:` with a date, and on v4 add `headers` carrying `Deprecation` (RFC 9745) and a `Link` with `rel="successor-version"`. 3. Before v4, emit those headers from a `KernelEvents::RESPONSE` listener. 4. Only if still breaking, expose parallel `uriTemplate` values (`/v1`, `/v2`) with distinct groups, or output DTOs with one provider per version. 5. Mark the old operation as deprecated in OpenAPI, document the changes per version, and test every active version.
Superpowers Symfony gives coding agents deep, version-accurate Symfony expertise: from Doctrine schema design and API Platform REST/GraphQL APIs to test-driven development, async Messenger workflows, caching, rate limiting, and clean architecture.
Map entities to API DTOs in API Platform (v5, 4.4, 4.3) with the Symfony Object Mapper (#[Map], stateOptions) for decoupled…
Implement API Platform filters - Parameters API (QueryParameter, v5/4.4/4.3) and the #[ApiFilter] attribute deprecated since 4.4…
Configure API Platform resources (v5, 4.4, 4.3) with explicit operations, pagination, and typed OpenAPI for clean, versioned…
Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control
Control API Platform serialization with groups, #[Context], IRI links (readableLink/writableLink), and custom context builders
Master API Platform State Providers and Processors (v5, 4.4, 4.3) (ProviderInterface/ProcessorInterface) to decouple data…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.