===Query Parameters===
The value of the ''first parameter'', if found in the [http://en.wikipedia.org/wiki/Query_string query string], will be assigned to the variable specified as ''second parameter''. If no value is specified in the HTTP request, all additional parameters, if available, will be bound to the variable(if no additional parameter is given, an empty sequence will be bound):
<pre class="brush:xquery">
declare %rest:path("/params") %rest:query-param("parameterid", "{$valueid}", "default") %rest:query-param("answeradd", "{$answeradd}", 42, 43, 44)%rest function page:query-paramparams($value as xs:string?, $answer as xs:integer+){ <result id="search{ $id }", sum="{sum($search-paramadd) }")/>};
</pre>