symfonyapi-platform-serialization
Control API output with serialization groups, custom normalizers, and context-aware serialization in API Platform
When & Why to Use This Skill
This Claude skill provides expert assistance in managing data serialization for Symfony API Platform projects. It helps developers precisely control API outputs using serialization groups, custom normalizers, and context-aware logic to ensure secure, optimized, and well-structured data delivery.
Use Cases
- Configuring serialization groups to manage field-level visibility and prevent sensitive data exposure based on user roles.
- Developing custom normalizers to handle complex data transformations and ensure consistent API response formats for non-standard objects.
- Implementing context-aware serialization to dynamically adjust API payloads based on the request context, improving performance by reducing unnecessary data transfer.
| name | symfony:api-platform-serialization |
|---|---|
| description | Use when symfony api platform serialization |
symfony:api-platform-serialization (Micro)
Use when
- Use when symfony api platform serialization
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md