symfony-api-platform-dto-resources

star 151

Map entities to API DTOs in API Platform v4 with the Symfony Object Mapper (#[Map], stateOptions) for decoupled input/output contracts

MakFly By MakFly schedule Updated 6/16/2026

name: symfony:api-platform-dto-resources allowed-tools: - Read - Write - Edit - Bash - Glob - Grep description: Deliver robust API Platform contracts in Symfony with explicit operations, mapping, and policy-safe behavior. Use for api platform dto resources tasks.

Api Platform Dto Resources (Symfony)

Use when

  • Designing or evolving API Platform contracts and operations.
  • Aligning serialization, validation, and security behavior.

Default workflow

  1. Define operation-level contract and payload boundaries.
  2. Implement resource/DTO/provider/processor changes with explicit mapping.
  3. Apply operation-specific validation and security constraints.
  4. Validate functional behavior across happy and negative paths.

Guardrails

  • Keep API contract explicit and version-aware.
  • Avoid exposing internal entity fields implicitly.
  • Prevent drift between docs and actual serialization.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • API artifacts changed (resource/DTO/provider/processor).
  • Contract/security decisions and rationale.
  • Functional verification results.

References

  • reference.md
  • docs/complexity-tiers.md
Install via CLI
npx skills add https://github.com/MakFly/superpowers-symfony --skill symfony-api-platform-dto-resources
Repository Details
star Stars 151
call_split Forks 15
navigation Branch main
article Path SKILL.md
More from Creator