Overview of FOSRestBundle features
3.xFOSRestBundle is a Symfony bundle designed for rapid RESTful API development. It provides several core capabilities:
- View Layer: Enables controllers to remain agnostic of the output format.
- Format Negotiation: Handles
Acceptheader negotiation, including support for custom mime types. - RESTful Decoding: Automatically decodes HTTP request bodies and
Acceptheaders. - Exception Mapping: Maps exception codes directly to appropriate HTTP response status codes.
- RFC 7807 Error Rendering: Provides a serializer error renderer that returns exceptions and errors in a format compatible with RFC 7807, utilizing either the Symfony Serializer or the JMS Serializer.