From d6b9eb1a8562740adbcb41e1f2d544d8c9daa923 Mon Sep 17 00:00:00 2001 From: Xebax Date: Mon, 13 Jun 2016 14:24:09 +0200 Subject: [PATCH] REST API: enable the Restler API Explorer. --- htdocs/api/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/api/index.php b/htdocs/api/index.php index 660c90d3476..fc4f8bb8dfd 100644 --- a/htdocs/api/index.php +++ b/htdocs/api/index.php @@ -58,7 +58,10 @@ if (empty($conf->global->MAIN_MODULE_API)) $api = new DolibarrApi($db); -$api->r->addAPIClass('Luracast\\Restler\\Resources'); //this creates resources.json at API Root +// Enable the Restler API Explorer. +// See https://github.com/Luracast/Restler-API-Explorer for more info. +$api->r->addAPIClass('Luracast\\Restler\\Explorer'); + $api->r->setSupportedFormats('JsonFormat', 'XmlFormat'); $api->r->addAuthenticationClass('DolibarrApiAccess','');