sf-api-example/app/config/rest.yml
2016-11-23 20:11:32 +01:00

26 lines
596 B
YAML

fos_js_routing:
routes_to_expose:
fos_rest:
serializer:
serialize_null: true
param_fetcher_listener: true
body_listener: true
format_listener:
rules:
- priorities: [json, xml]
- fallback_format: json
view:
view_response_listener: 'force'
formats:
xml: true
json : true
templating_formats:
html: false
force_redirects:
html: true
failed_validation: HTTP_BAD_REQUEST
default_engine: twig
routing_loader:
default_format: json