You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2019. It is now read-only.
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