Changes

Jump to navigation Jump to search
29 bytes removed ,  04:10, 27 August 2012
All RESTXQ [[XQuery 3.0#Annotations|Annotations]] are assigned to the {{Code|http://exquery.org/ns/restxq}} namespace, which is statically bound to the {{Code|restxq}} prefix. A ''Resource Function'' is an XQuery function that has been marked up with RESTXQ annotations. When an HTTP request comes in, a resource function will be invoked that matches the constraints indicated by its annotations.
All files with the extension {{Code|*.xqm}}, placed inside the directory specified by {{Code|HTTPPATHRESTXQPATH}} (refer to see [[Web Application#Configuring Database Access|HTTP Server Configuration]]for more) will be treated as RESTXQ modules. These will be parsed for RESTXQ annotations and cached. If the timestamp of a module is modifiedchanges, it will be parsed again at runtime.
A simple RESTXQ module is shown below, it is part of a clean installation and available at http://localhost:8984/restxq/ .
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu