API: configuration

This commit is contained in:
Simon Vieille 2016-11-23 20:17:01 +01:00
parent 9caaa58296
commit ab634b971e

View file

@ -7,11 +7,8 @@ fos_rest:
param_fetcher_listener: true param_fetcher_listener: true
body_listener: true body_listener: true
format_listener: format_listener:
rules:
- priorities: [json, xml]
- fallback_format: json
view: view:
view_response_listener: 'force' view_response_listener: true
formats: formats:
xml: true xml: true
json : true json : true