HTTP responses.
Note that various details of the specification some extensions presented in this documentation are BaseX-specific; they may be subject to change due to the early state integratedin future versions of the APIRESTXQ draft. Next, with With {{Version|7.7}}, various features have been added to our RESTXQ implementation: * by default, RESTXQ is now available on top level via {{Code|http://localhost:8984/}}* the RESTXQ namespace prefix has been changed from to {{Code|restxqrest}} to * RESTXQ functions may also be specified in main modules (extension: {{Code|.xq}})* multipart types are now supported, including {{Code|multipart/form-data}}* a new {{Code|%rest:error}}.annotation can be used to catch XQuery errors* servlet errors can be redirected to other RESTXQ pages* a [[RESTXQ Module]] provides some helper functions
=Usage=
Since {{Version|7.7}}, the RESTXQ service is by default available on top level at via {{Code|http://localhost:8984/}} (before: <code><nowiki>http://localhost:8984/restxq</nowiki></code>).
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|rest}} prefix (before {{Version|7.7}}: {{Code|restxq}}). 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.