X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=config%2Fconfig.yaml;h=d0d7baf956579f6dbe742623c8cf704f39a1cb0c;hb=282545e599d54ea03ce33bac6e9087d9bf29245a;hp=f7f08b19c7abcf66837c760a19368d42d6698b64;hpb=dec6d0310680edbf06e4564590d6e4a3ffde8a6e;p=Project_proches_de_moi-server.git diff --git a/config/config.yaml b/config/config.yaml index f7f08b1..d0d7baf 100644 --- 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 + mime_types: + json: ['application/json', 'application/json;version=1.0', 'application/json;version=2.0'] serializer: serialize_null: true format_listener: rules: - - { path: '^/', priorities: ['json'], fallback_format: 'json' } + - { path: '^/api', priorities: ['json'], fallback_format: 'json' } param_fetcher_listener: force + routing_loader: + include_format: false + versioning: + enabled: true + resolvers: + media_type: # Accept header + enabled: true + regex: '/(v|version)=(?P[0-9\.]+)/' sensio_framework_extra: - view: { annotations: false } request: { converters: true }