Skip to content

Instantly share code, notes, and snippets.

@mjlassila
Last active January 3, 2016 20:49
Show Gist options
  • Save mjlassila/8517208 to your computer and use it in GitHub Desktop.
Save mjlassila/8517208 to your computer and use it in GitHub Desktop.
For testing single file revisioning in the server.
module namespace testaus= "http://testausta.coj/";
import module namespace functx = "http://www.functx.com" at "functx-1.0-nodoc-2007-01.xqm";
(: URL routing :)
declare
%restxq:GET
%restxq:path("testaus")
%restxq:produces("application/xml")
%output:method("xml")
function testaus:response()
{
let $resp:=<foo>
<bar>baz</bar>
<baz>bar</baz>
</foo>
return $resp
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment