aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/routing_rest.yml
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-15 16:46:42 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-15 16:46:42 +0200
commitf1c3f68e909e51f071f3f4b2ef9430163bbfd7a4 (patch)
tree20a6ebbd686d76d1907dc17af8eeeb963d7a27e9 /app/config/routing_rest.yml
parent61477368687e048f3001336327923f5c87fa2592 (diff)
downloadwallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.tar.gz
wallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.tar.zst
wallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.zip
ApiDoc & Route annotation were conflicted
The generated error was “Unable to guess how to get a Doctrine instance from the request information.”. I haven’t checked deeper in Doctrine (I know it was coming from the DoctrineParamConverter). Anyway, I check for FosRest possiblity to add extra format without allowing them for every route (like it was done in the first place). I finally found a way but it then seems all request goes to the FormatListener of FosRest so I needed to add a custom rules to match all request to be sure we don’t get a 406 error from FosRest. Should be ok now …
Diffstat (limited to 'app/config/routing_rest.yml')
-rw-r--r--app/config/routing_rest.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml
index 52d395dd..29f4ab14 100644
--- a/app/config/routing_rest.yml
+++ b/app/config/routing_rest.yml
@@ -1,4 +1,3 @@
1Rest_Wallabag: 1Rest_Wallabag:
2 type : rest 2 type : rest
3 resource: "@WallabagApiBundle/Resources/config/routing_rest.yml" 3 resource: "@WallabagApiBundle/Resources/config/routing_rest.yml"
4