PHP Symfony Sonata

Tag REST

Symfony: Uid in API

Avoid exposing internal entity IDs in your API. In this article, we’ll see how to use UUID v7 with Symfony Uid, from generating and storing UUIDs to documenting them with NelmioApiDoc and querying them with Doctrine.

Sonata Admin: Path to Media Files in REST

Learn how to include the file path of Sonata Media Bundle files in a Symfony REST API response. This guide shows how to create a custom serializer that uses Sonata Media’s built-in `path` function and adds the media path only for the required serialization group.

© 2026 PHPNotes — Powered by WordPress

Theme by Anders Noren — Up ↑