# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html fos_rest: # param_fetcher_listener: true # allowed_methods_listener: true # view: # view_response_listener: true # exception: # codes: # App\Exception\MyException: 403 # messages: # App\Exception\MyException: Forbidden area. routing_loader: true format_listener: rules: - { path: '^/', prefer_extension: true, fallback_format: json, priorities: [ json, html ] }