Changes

Jump to navigation Jump to search
41 bytes removed ,  23:14, 12 January 2013
no edit summary
By default, the RESTXQ service is activated and available at {{Code|http://localhost:8984/restxq/}}.
=Module Declarations=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 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. By default, all files files in the webapp directory with the extension {{Code|*.xqm}} will be parsed for RESTXQ annotations and cached. If the timestamp of a module changes, it will be parsed again. The RESTXQ module directory can be changed via the {{Code|RESTXQPATH}} option (see [[Web Application#Configuration|Web Application: Configuration]] for more details).
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