mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Provide more examples on the RPC info page
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
b5d5687517
commit
114edd9ff8
1 changed files with 9 additions and 2 deletions
|
@ -18,7 +18,7 @@ else {
|
|||
// here.
|
||||
?>
|
||||
<html><body>
|
||||
<p>The methods currently allowed are:</p>
|
||||
<h2>Allowed methods</h2>
|
||||
<ul>
|
||||
<li><tt>search</tt></li>
|
||||
<li><tt>info</tt></li>
|
||||
|
@ -29,7 +29,14 @@ else {
|
|||
<pre>type=<em>methodname</em>&arg=<em>data</em></pre>
|
||||
<p>Where <em>methodname</em> is the name of an allowed method, and <em>data</em> is the argument to the call.</p>
|
||||
<p>If you need jsonp type callback specification, you can provide an additional variable <em>callback</em>.</p>
|
||||
<p>Example URL: <tt>http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103</tt></p>
|
||||
<h2>Examples</h2>
|
||||
<dl>
|
||||
<dt><tt>search</tt></dt><dd><tt>http://aur-url/rpc.php?type=search&arg=foobar</tt></li></dd>
|
||||
<dt><tt>info</tt></dt><dd><tt>http://aur-url/rpc.php?type=info&arg=foobar</tt></dd>
|
||||
<dt><tt>multiinfo</tt></dt><dd><tt>http://aur-url/rpc.php?type=multiinfo&arg[]=foo&arg[]=bar</tt></dd>
|
||||
<dt><tt>msearch</tt></dt><dd><tt>http://aur-url/rpc.php?type=msearch&arg=john</tt></li></dd>
|
||||
<dt>Callback</dt><dd><tt>http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103</tt></dd>
|
||||
</dl>
|
||||
</body></html>
|
||||
<?php
|
||||
// close if statement
|
||||
|
|
Loading…
Add table
Reference in a new issue