Skip to content

Explorer does not show data #680

@erwinpalma

Description

@erwinpalma

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?

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