eZ Community » Forums » Extensions » REST API - 500 error - No routes are...
expandshrink

REST API - 500 error - No routes are defined in the router

REST API - 500 error - No routes are defined in the router

Tuesday 10 September 2013 3:43:57 pm - 1 reply

Hi guys!

I have an "multiple image editing"- extension with an ApiProvider that doesn't work. When I try to use it with XX.com/api/saimage/v1/image/2134 it gives me 500 (Internal Server Error) on both POST and GET methods. And my error log says: "Unexpected error, the message was : No routes are defined in the router. in /XXX/XXX/XXX/XXX/lib/ezc/MvcTools/src/router.php on line 78".

When i try the Ezprestapiprovider extension (https://github.com/ezsystems/ezprestapiprovider) it works with XXX.com/api/ezp/content/node/2/list so I don't think it has anything to do with the virtualhost setup and rewrite rules. But I'm wondering if it is the [RouteSettings] -> SkipFilter[] I'm doing wrong. 

This is my rest.ini.append.php file in the my extension:

 [ApiProvider]
ProviderClass[saimage]=saImageRestApiProvider
 
[Authentication]
RequireAuthentication=disabled
DefaultUserID=
 
[RouteSettings]
SkipFilter[]=saImageRestController_doView;1

 

Can someone point me in the right direction?

Modified on Tuesday 10 September 2013 3:49:10 pm by Jeanette S.

Wednesday 11 September 2013 1:03:35 pm

For anyone experiencing the same, try updating the autoload array...  It works for me now.. Stupid mistake!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from