Skip to content

Restler 3: Removing .json or .xml from API explorer documentation

swbullis edited this page Feb 16, 2013 · 1 revision

We are using safer defaults that will work for everyone, but made it completely configurable.

if you prefer .json to be added at the end, add the following to index.php (gateway)

 use Luracast\Restler\Resources;
 Resources::$placeFormatExtensionBeforeDynamicParts = false;

If you prefer not to add .json extension, add the following to index.php

  use Luracast\Restler\Resources;
  Resources::$useFormatAsExtension = false;

http://stackoverflow.com/questions/12837449/losing-the-json-in-the-api-explorer-documentation