[aur-dev] [PATCH 1/1] refer to the wiki for api documentation

elij elij.mx at gmail.com
Tue Apr 5 13:03:22 EDT 2011


---
 web/html/rpc.php |   20 +++++---------------
 1 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/web/html/rpc.php b/web/html/rpc.php
index 240cad1..cab8262 100644
--- a/web/html/rpc.php
+++ b/web/html/rpc.php
@@ -10,22 +10,12 @@ if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) {
         echo $rpc_o->handle($_GET);
     }
     else {
-        // dump a simple usage output for people to use.
-        // this could be moved to an api doc in the future, or generated from
-        // the AurJSON class directly with phpdoc. For now though, just putting it here.
         echo '<html><body>';
-        echo 'The methods currently allowed are: <br />';
-        echo '<ul>';
-        echo '<li>search</li>';
-        echo '<li>info</li>';
-        echo '<li>msearch</li>';
-        echo '</ul><br />';
-        echo 'Each method requires the following HTTP GET syntax:<br />';
-        echo '   type=<i>methodname</i>&arg=<i>data</i> <br /><br />';
-        echo 'Where <i>methodname</i> is the name of an allowed method, and <i>data</i> is the argument to the call.<br />';
-        echo '<br />';
-        echo 'If you need jsonp type callback specification, you can provide an additional variable <i>callback</i>.<br />';
-        echo 'Example URL: <br />   http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103';
+        echo '<div align="center" style="font-size:larger">';
+        echo 'For information on usage see the ';
+        echo '<a href="https://wiki.archlinux.org/index.php/AurJson">AurJson</a> ';
+        echo 'wiki page.';
+        echo '</div>';
         echo '</body></html>';
     }
 }
-- 
1.7.4.1



More information about the aur-dev mailing list