=Module Declarations=
A regular module contains a declaration to the RESTXQ namespace {{Mono|http://exquery.org/ns/rest/annotation}}. RESTXQ annotations are introduced with the XQuery 3.0 annotation character <code>%</code>, followed by the declared RESTXQ prefix assigned to the RESTXQ namespace. These annotations define when a modules which function will be invoked by an HTTP request and which values will be bound to its arguments. For instance, a A simple RESTXQ module may look as followsis shown below:
<pre class="brush:xquery">(:~ A simple module with REST-annotations :)