===Paths===
<codepre class="brush:xquery">%rest:path("/a/path/{$with}/some/{$variable}")</codepre>
If a URL matches the given pattern, variables (in curly brackets) will be assigned. The variables serve as input arguments for the function. The type will be converted, as defined by the function.
* Simple Method Annotations
<pre class="brush:xquery">
%rest:GET
%rest:HEAD
%rest:DELETE
</pre>
<!-- TODO add some descripton -->
* Content Method Annotations
<pre class="brush:xquery">
%rest:POST
%rest:POST("{$post-body}")
%rest:PUT
%rest:PUT("{$put-body}")
</pre>
<!-- TODO add some descripton -->
===Media Content Types===
* '''HTTP Content Type<br/><code>%restTypes''':consumes()</code> one One or more media-types may be specified as string. strings, e.g.:<br/><codepre class="brush:xquery">%rest:consumes("application/xml", "text/xml")</pre>* '''HTTP Accept<br/><code>%rest''':produces()</code> one One or more media-type types may be specified as string. strings, e.g. :<br/><codepre class="brush:xquery">%rest:produces("application/atom+xml")</codepre>
These default to <code>*/*</code>, if no media-type annotations are given.
==Parameters==