diff -U 3 -H -d -r -N -- Desktop/aur/web/html/rpc.php workspace/aur/web/html/rpc.php
--- Desktop/aur/web/html/rpc.php 2008-03-23 09:16:29.000000000 +0100
+++ workspace/aur/web/html/rpc.php 2008-05-24 06:27:14.000000000 +0200
@@ -26,6 +26,21 @@
echo '
';
echo 'If you need jsonp type callback specification, you can provide an additional variable callback.
';
echo 'Example URL:
http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103';
+ echo '
';
+ echo 'When searching you can also specify what fields to get by passing the variable "fields".
';
+ echo 'The list of valid fields is:
';
+ echo '- ID: This is an ID of the package that you can use to make an info call.
';
+ echo '- Name: Name of the package.
';
+ echo '- Version: Version of the package.
';
+ echo '- Description: Description of the package.
';
+ echo '- URL: URL to the official page of the package.
';
+ echo '- URLPath: URL to the tar.gz containing the PKGBUILD.
';
+ echo '- License: Type of license of the package.
';
+ echo '- NumVotes: Number of votes the package got from aur users.
';
+ echo '- OutOfDate: Specifies if the packages has been flagged out of date.
';
+ echo 'You have to separe fields with a comma character ",".
';
+ echo 'Example URL:
http://aur-url/rpc.php?type=search&arg=foobar&fields=Name,Version,Description
';
+ echo 'The default fields are: Name,ID
';
echo '