Skip to content
This repository was archived by the owner on Jun 9, 2019. It is now read-only.
This repository was archived by the owner on Jun 9, 2019. It is now read-only.

404 : Not Found ../resources.json #22

Description

@engharb

Hello,

My application is based on Symfony3 framework. And I installed restler using the composer then the related api explorer.
I copied the explorer folder under /web (my public folder)

My /web/index.php looks:

$loader = require __DIR__.'/../app/autoload.php';
require_once '../../../vendor/restler.php';
use Luracast\Restler\Restler;
use Luracast\Restler\Defaults;

// [http://projectstestingserver.com/crime/Restler3/public/]
//set the defaults to match your requirements
Defaults::$throttle = 20; //time in milliseconds for bandwidth throttling

$r = new Restler();
$r->addAPIClass('Luracast\\Restler\\Resources'); //this creates resources.json at API Root
$r->setSupportedFormats('JsonFormat', 'XmlFormat', 'CsvFormat');
$r->addAPIClass('Say'); // repeat for more
$r->addFilterClass('RateLimit'); //Add Filters as needed
$r->handle(); //serve the response

/web/.htaccess looks:

DirectoryIndex index.php
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /explorer
    RewriteRule ^$ index.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule mod_php5.c>
    php_flag display_errors On
</IfModule>

by calling url: (http://localhost/explorer/index.html) I get '404 : Not Found ../resources.json'.

Did I missed something in the configuration.

It would be appreciated to get some answers.

regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions