Hello, should perm force authentication and only the user "admin" would be authorised? Best regards Frank
module namespace page = 'http://basex.org/test'; declare %rest:path("basex-rest/test/check-rest-perm") %perm:allow("admin") %rest:GET %output:method("xml") function page:test-check-rest-perm() as element(response) { let $response := element response { 'Response' } return $response };
<response>Response</response>