Php Restler API Explorer 404:未找到../resources.json问题

Php Restler API Explorer 404:未找到../resources.json问题,php,restler,Php,Restler,我有API和explorer,我的index.php文件如下 require_once '../vendor/restler.php'; ORM::configure('mysql:host=localhost;dbname=thedatabasename'); ORM::configure('username', 'ilhan'); ORM::configure('password', 'password123'); ORM::configure('driver_options', array

我有API和explorer,我的index.php文件如下

require_once '../vendor/restler.php';
ORM::configure('mysql:host=localhost;dbname=thedatabasename');
ORM::configure('username', 'ilhan');
ORM::configure('password', 'password123');
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
use Luracast\Restler\Restler;
$r = new Restler();
$r->addAPIClass('Luracast\\Restler\\Resources');
$r->addAPIClass('Users');
$r->handle();
但是,我得到了这里显示的错误消息

注意,我对共享主机没有任何管理权限,比如编辑Apache配置文件和SSH。我的PHP版本是

有一个类似的问题,但通过httpd.conf文件解决了它。我没有编辑该文件的权限


我不知道在哪里可以找到这个resources.json文件。

我也遇到了同样的问题,我通过将这一行添加到index.php中解决了这个问题:

$restler->addApiClass('Resources')//这将生成所需的resources.json

您可以在此处找到更多信息: