By default, the RESTXQ service is available at {{Code|http://localhost:8984/restxq/}}.
All RESTXQ [[XQuery 3.0#Annotations|annotations]] are assigned to the {{Code|<nowiki>http://exquery.org/ns/restxq</nowiki>}} namespace, which is statically bound to the {{Code|restxq}} prefix (and since {{Version|7.7}}: {{Code|rest}}). 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.
Whenever a RESTXQ URL is requested, the [[Options#RESTXQPATH|RESTXQPATH]] module directory and its sub-directories will be scanned parsed for functions with annotations. RESTXQ functions may occur in library modules (detected by the extension {{Code|.xqm}}) and (since functions with RESTXQ annotations. Since {{Version|7.7}}) , also main modules (detected by {{Code|.xq}})will be parsed. All modules will be cached and parsed again when their timestamp changes.
A simple RESTXQ module is shown below. It is part of a clean installation and available at http://localhost:8984/restxq/ .