From dda5d4dffb18729a377d2907cdd7dc5a631f899c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 30 Dec 2011 11:54:40 +0000 Subject: [PATCH] Adjustments to the API page --- application/config/config.php | 4 ++-- application/config/database.php | 2 +- application/views/api/help.php | 8 ++------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index a69ce5ba..1b15e921 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -13,7 +13,7 @@ $config['app_name'] = "Cloudlog"; $config['app_version'] = "0.1"; -$config['directory'] = "mylog"; +$config['directory'] = "logbook"; /* |-------------------------------------------------------------------------- @@ -65,7 +65,7 @@ $config['auth_level'][99] = "Administrator"; | path to your installation. | */ -$config['base_url'] = 'http://localhost/mylog'; +$config['base_url'] = 'http://localhost/logbook'; /* |-------------------------------------------------------------------------- diff --git a/application/config/database.php b/application/config/database.php index c12e0560..8a646908 100644 --- a/application/config/database.php +++ b/application/config/database.php @@ -37,7 +37,7 @@ // The following values will probably need to be changed. $db['default']['username'] = "root"; $db['default']['password'] = ""; -$db['default']['database'] = "mylog"; +$db['default']['database'] = "2e0sql_log"; // The following values can probably stay the same. $db['default']['hostname'] = "localhost"; diff --git a/application/views/api/help.php b/application/views/api/help.php index 5bf7637b..f48fd690 100644 --- a/application/views/api/help.php +++ b/application/views/api/help.php @@ -81,12 +81,8 @@
  • Key with Read & Write Access
  • Key with Read Only Access
  • - -
    - There are a number of API calls you can make from other applications. - -

    search

    +

    API Guide

    Description

    Query the logbook

    Syntax

    @@ -94,6 +90,6 @@ Query the logbook

    Example

    Search for entries with a call beginning with M0 and a locator beginning with I or J, show the callsign and locator fields, order it by callsign and limit the results to 10.
  • /search/query[Call~M0*(and)(Locator~I*(or)Locator~J*)]/limit[10]/fields[distinct(Call),Locator]/order[Call(asc)]
    -
  • Run it! +
  • Run it!