<pre class="brush:xquery">
declare %rest:path("helloform/")
%rest:POST
%rest:form-param("content","{$message}", "'no message delivered'")
</pre>
If you posted something (e.g. using curl or the embedded formular at http://localhost:8984/restxq/ )
<pre class="brush:shell">
curl -i -X POST --data "content='Here comes the post'" http://admin:admin@localhost:8984/restxq/helloform
</pre>
You would recieve