Changes

Jump to navigation Jump to search
1 byte added ,  15:38, 22 March 2012
→‎Module Declarations: update to recent changes in restxq.xqm
<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
editor, reviewer
115

edits

Navigation menu