Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer does not show data #680

Open
erwinpalma opened this issue Apr 17, 2022 · 0 comments
Open

Explorer does not show data #680

erwinpalma opened this issue Apr 17, 2022 · 0 comments

Comments

@erwinpalma
Copy link

erwinpalma commented Apr 17, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant