repositories
/
Project_proches_de_moi-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable @Rest\View annotations.
[Project_proches_de_moi-server.git]
/
config
/
config.yaml
diff --git
a/config/config.yaml
b/config/config.yaml
index f7f08b19c7abcf66837c760a19368d42d6698b64..d0d7baf956579f6dbe742623c8cf704f39a1cb0c 100644
(file)
--- a/
config/config.yaml
+++ b/
config/config.yaml
@@
-10,13
+10,22
@@
fos_rest:
view:
formats: { json: true, xml: false, rss: false }
view_response_listener: true
view:
formats: { json: true, xml: false, rss: false }
view_response_listener: true
+ mime_types:
+ json: ['application/json', 'application/json;version=1.0', 'application/json;version=2.0']
serializer:
serialize_null: true
format_listener:
rules:
serializer:
serialize_null: true
format_listener:
rules:
- - { path: '^/', priorities: ['json'], fallback_format: 'json' }
+ - { path: '^/
api
', priorities: ['json'], fallback_format: 'json' }
param_fetcher_listener: force
param_fetcher_listener: force
+ routing_loader:
+ include_format: false
+ versioning:
+ enabled: true
+ resolvers:
+ media_type: # Accept header
+ enabled: true
+ regex: '/(v|version)=(?P<version>[0-9\.]+)/'
sensio_framework_extra:
sensio_framework_extra:
- view: { annotations: false }
request: { converters: true }
request: { converters: true }