===HTTP Methods===
The HTTP method annotations relate to some of the [http://en.wikipedia.org/wiki/HTTP#Request_methods HTTP request methods] (GET, HEAD, DELETE, POST, PUT). Depending on the request method of the request, a function is invoked.
<!-- TODO [AG] does constraints mean: %rest:GET and %rest:HEAD makes no sense? -->
* ====Simple Method Annotations====All available simple method annotations:
<pre class="brush:xquery">
%rest:GET
%rest:DELETE
</pre>
<!-- TODO add some descripton -->
* ====Content Method Annotations====The variable declaration, for processing the content in a XQuery function, is optional. All available content method annotations:
<pre class="brush:xquery">
%rest:POST
%rest:PUT("{$put-body}")
</pre>
<!-- TODO add some descripton -->
===Content Types===