2019-10-25 14:13:11 +02:00
|
|
|
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
|
2019-11-05 12:16:16 +01:00
|
|
|
fos_rest:
|
|
|
|
# param_fetcher_listener: true
|
|
|
|
# allowed_methods_listener: true
|
|
|
|
# routing_loader: true
|
2019-11-05 16:31:27 +01:00
|
|
|
# view:
|
|
|
|
# view_response_listener: true
|
2019-11-05 12:16:16 +01:00
|
|
|
# exception:
|
|
|
|
# codes:
|
|
|
|
# App\Exception\MyException: 403
|
|
|
|
# messages:
|
|
|
|
# App\Exception\MyException: Forbidden area.
|
2019-11-05 17:31:07 +01:00
|
|
|
routing_loader:
|
|
|
|
default_format: json
|
2019-11-05 12:16:16 +01:00
|
|
|
format_listener:
|
|
|
|
rules:
|
|
|
|
- { path: '^/',
|
|
|
|
prefer_extension: true,
|
|
|
|
fallback_format: json,
|
|
|
|
priorities: [ json, html ] }
|