# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
fos_rest:
  param_fetcher_listener:  true
  allowed_methods_listener:  true
  routing_loader: false
  view:
    view_response_listener:  true
  format_listener:
    rules:
      - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }
      - { path: ^/admin, prefer_extension: true, fallback_format: html, priorities: [ html ] }
      - { path: ^/, priorities: [ 'html', '*/*'], fallback_format: html, prefer_extension: true }