mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Cleanup RPC usage output a bit
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
21827dfb1c
commit
fa53ca68b0
1 changed files with 11 additions and 15 deletions
|
@ -18,22 +18,18 @@ else {
|
||||||
// here.
|
// here.
|
||||||
?>
|
?>
|
||||||
<html><body>
|
<html><body>
|
||||||
The methods currently allowed are: <br />
|
<p>The methods currently allowed are:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>search</li>
|
<li><tt>search</tt></li>
|
||||||
<li>info</li>
|
<li><tt>info</tt></li>
|
||||||
<li>multiinfo</li>
|
<li><tt>multiinfo</tt></li>
|
||||||
<li>msearch</li>
|
<li><tt>msearch</tt></li>
|
||||||
</ul> <br />
|
</ul>
|
||||||
Each method requires the following HTTP GET syntax: <br />
|
<p>Each method requires the following HTTP GET syntax:</p>
|
||||||
type=<i>methodname</i>&arg=<i>data</i>
|
<pre>type=<em>methodname</em>&arg=<em>data</em></pre>
|
||||||
<br /><br />
|
<p>Where <em>methodname</em> is the name of an allowed method, and <em>data</em> is the argument to the call.</p>
|
||||||
Where <i>methodname</i> is the name of an allowed method, and <i>data</i> is the argument to the call.
|
<p>If you need jsonp type callback specification, you can provide an additional variable <em>callback</em>.</p>
|
||||||
<br /><br />
|
<p>Example URL: <tt>http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103</tt></p>
|
||||||
If you need jsonp type callback specification, you can provide an additional variable <i>callback</i>.
|
|
||||||
<br />
|
|
||||||
Example URL: <br />
|
|
||||||
http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103
|
|
||||||
</body></html>
|
</body></html>
|
||||||
<?php
|
<?php
|
||||||
// close if statement
|
// close if statement
|
||||||
|
|
Loading…
Add table
Reference in a new issue