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.

Explorer not showing when using useUrlBasedVersioning and AuthenitcationClass - 200 : OK ../resources.json #16

Description

@codemonkeyneo

This one is driving me nuts and maybe its just me, but at least I can recreate the issue.

Explorer is giving me the following error;

200 : OK ../resources.json

I have worked out that its because of Authenitcation class and set useUrlBasedVersioning both included in the index.php. If you try each of the items separately then explorer works as expected. I do want both to work so I can show both versions in explorer.

Code used

Defaults::$useUrlBasedVersioning = true;  // comment out to work and leave auth line

$r = new Restler();
$r->setAPIVersion(2);
$r->setSupportedFormats('JsonFormat', 'XmlFormat');

$r->addApiClass('Resources'); // this produces the needed resources.json

$r->addAPIClass('BMI');
$r->addAuthenticationClass('SimpleAuth'); // comment out to work and leave url line
$r->handle();

is this a bug or does it need to be refactored differently.

Cheer

Codemonkeyneo

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