Overview of API Platform features
API Platform is a framework used to create and expose APIs from an existing application. It provides several native features:
- RESTful API: Automatically generates a full CRUD based on Doctrine entities using standard HTTP verbs.
- Swagger/OpenAPI: Auto-generates interactive API documentation accessible via the browser.
- GraphQL: Supports exposing the API as a GraphQL service in addition to REST.
- CORS & Authentication: Native support for CORS via
nelmio/cors-bundleand JWT authentication vialexik/jwt-authentication-bundle. - JSON-LD & Hydra: Automatically includes machine-readable metadata. JSON-LD adds attributes like
@idand@type. Hydra implements HATEOAS principles, providing hypermedia controls such as pagination (hydra:totalItems,hydra:view,hydra:next, etc.) in collection responses.