<pre class="brush:xquery">
declare variable $x as xs:integer external;
declare variable $y as xs:integer external;$x * $y
</pre>
Variables:
Set :Assign the values of the variables variable with: <code>&$x=21&$y=2</code>
Complete request (compact notation, omitting the explicit variable declarations):<br/>:http://admin:admin@localhost:8984/rest?query=$x*$y&$x=21&$y=2
===POST Requests===