Commit | Line | Data |
---|---|---|
1 | # Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html | |
2 | fos_rest: ~ | |
3 | # param_fetcher_listener: true | |
4 | # allowed_methods_listener: true | |
5 | # routing_loader: true | |
6 | # view: | |
7 | # view_response_listener: true | |
8 | # exception: | |
9 | # codes: | |
10 | # App\Exception\MyException: 403 | |
11 | # messages: | |
12 | # App\Exception\MyException: Forbidden area. | |
13 | # format_listener: | |
14 | # rules: | |
15 | # - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] } |