Changes

Jump to navigation Jump to search
152 bytes added ,  22:28, 9 July 2012
The <code>request</code> annotation is specific to BaseX: servlet request data can be bound
to this annotation and then processed via the [[Request Module|Request Functions]]. The followingexample returns the current session id:
<pre class="brush:xquery">
import module namespace request = "http://exquery.org/ns/restxq/Request";
declare
%rest:path("/id")
%rest:request("{$req}")
function page:testid($req) { ... request:session-id($req)};
</pre>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu