Back to course

Creating a REST API

Symfony 0 to Hero: The Complete 2026 Guide

Exposing Entities

Just add the #[ApiResource] attribute to your entity, and you have a full CRUD API with documentation!