From 7e7558fcab74258ebdda7887241c2efa5525b0bd Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 4 Feb 2015 16:08:30 -0500 Subject: [PATCH] Remove old ApiDoc page --- CRM/Admin/Page/APIDoc.php | 68 --------------------------- CRM/Core/xml/Menu/Misc.xml | 11 ----- CRM/Utils/REST.php | 18 -------- templates/CRM/Core/APIDoc.tpl | 87 ----------------------------------- 4 files changed, 184 deletions(-) delete mode 100644 CRM/Admin/Page/APIDoc.php delete mode 100644 templates/CRM/Core/APIDoc.tpl diff --git a/CRM/Admin/Page/APIDoc.php b/CRM/Admin/Page/APIDoc.php deleted file mode 100644 index ddf46d20c5..0000000000 --- a/CRM/Admin/Page/APIDoc.php +++ /dev/null @@ -1,68 +0,0 @@ -CRM_Core_Page_AJAX_Attachment::attachFile access CiviCRM;access AJAX API - - civicrm/ajax/doc - CRM_Utils_REST::ajaxDoc - access CiviCRM - civicrm/api/explorer CRM_Admin_Page_APIExplorer @@ -100,12 +95,6 @@ CRM_Admin_Page_APIExplorer::getExampleFile access CiviCRM - - civicrm/api/doc - CRM_Utils_REST::APIDoc - CRM_Admin_Page_APIDoc - access CiviCRM - civicrm/ajax/rest CRM_Utils_REST::ajax diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index eed5607576..670de8012e 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -455,24 +455,6 @@ class CRM_Utils_REST { CRM_Utils_System::civiExit(); } - /** - * Return smarty-generated API Documentation. - * - * @return string - */ - public static function APIDoc() { - - CRM_Utils_System::setTitle("API Parameters"); - $template = CRM_Core_Smarty::singleton(); - return CRM_Utils_System::theme( - $template->fetch('CRM/Core/APIDoc.tpl') - ); - } - - public static function ajaxDoc() { - return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/api/explorer')); - } - /** * used to load a template "inline", eg. for ajax, without having to build a menu for each template */ diff --git a/templates/CRM/Core/APIDoc.tpl b/templates/CRM/Core/APIDoc.tpl deleted file mode 100644 index 3fbec8f814..0000000000 --- a/templates/CRM/Core/APIDoc.tpl +++ /dev/null @@ -1,87 +0,0 @@ - -API Documentation - - - -You can see the list of parameters for each entity by clicking on its name.
-You can explore and try the api directly on your install. - -{crmAPI entity="Entity" action="get" var="entities" version=3} -{foreach from=$entities.values item=entity} -

{$entity} -{/foreach} - - -- 2.25.1