Restler icon indicating copy to clipboard operation
Restler copied to clipboard

Explorer does not show data

Open erwinpalma opened this issue 3 years ago • 0 comments

I have installed the Luracast and configured the explorer, but it does not show any data.

image
<?php
//headers
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, PATCH, DELETE');
//require_once __DIR__.'/../vendor/autoload.php';
require_once '{My_restler_path}/api/vendor/autoload.php';
require_once '{My_restler_path}/api/restler.php';
 // [...]
require_once 'Authors.php';
 // [...]
use Luracast\Restler\Restler;
use Luracast\Restler\Defaults;
//set the defaults to match your requirements
Defaults::$throttle = 20; //time in milliseconds for bandwidth throttling
//setup restler
$r = new Restler();
//$r->addAPIClass('Authors');
 // [...]
$r->addAPIClass('Resources');
$r->addAPIClass('Explorer'); //from restler framework for API Explorer
$r->addFilterClass('RateLimit'); //Add Filters as needed
$r->handle(); //serve the response

On the other side, how can I configure the logs?

erwinpalma avatar Apr 17 '22 18:04 erwinpalma