(:~ : This module contains some basic examples for RESTXQ annotations. : @author BaseX Team :) module namespace page = 'http://basex.org/examples/web-page'; (:~ : Generates a welcome page. : @return HTML page :) declare %rest:GET %rest:path('') %output:method('xhtml') %output:omit-xml-declaration('no') %output:doctype-public('-//W3C//DTD XHTML 1.0 Transitional//EN') %output:doctype-system('http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd') function page:start( ) as element(Q{http://www.w3.org/1999/xhtml}html) { BaseX HTTP Services

BaseX HTTP Services

Welcome to the BaseX HTTP Services. They allow you to:

Find more information on the Web Application page in our documentation.

The following sample applications give you a glimpse of how applications can be written with BaseX:

DBA: Database Administration

The Database Administration interface is completely written in RESTXQ.
The source code helps to understand how complex web applications can be built with XQuery.

WebSocket Chat

The chat application demonstrates how bidirectional communication is realized with BaseX.
For a better experience when testing the chat, consider the following steps:

  1. Create different database users first (e.g. via the DBA).
  2. Open two different browsers and log in with different users.
};