Project  RestXQ documentation

Summary

This document provides details of the RestXQ annotations. These provide mappings from Web endpoints to XQuery code.

Base path
///chat
Related documents
ViewDescriptionFormat
index.htmlIndex of sourcesxhtml
importsSummary of import usagexhtml
annotationsSummary of XQuery annotation usexhtml
mermaidProject wide module imports as a mermaid class diagramhtml5
xqdoca.xmlxqDocA run configuration report (XML)xml

Rest interface paths

2.1 /chat

ALL   /chat
RA

Description

Login or main page.

chat:chat#0
Output
Serialization: html
Annotations (2)
%rest:path('/chat')
%output:method('html')

2.2 /chat/login-check

POST   /chat/login-check
R

Description

Checks the user input, registers the user and reloads the chat.

chat:login-check#2
Query parameters
NameTypeDescriptionDefault
namexs:string user name
passxs:string password
Annotations (4)
%rest:POST()
%rest:path('/chat/login-check')
%rest:query-param('name','{$name}')
%rest:query-param('pass','{$pass}')

2.3 /chat/logout

ALL   /chat/logout
R

Description

Logs out the current user, notifies all WebSocket clients, and redirects to the login page.

chat:logout#0
Annotations (1)
%rest:path('/chat/logout')