Project chat  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
reportIndex of sourcesxhtml
importsSummary of import usagexhtml
imports-diagProject wide module imports as html mermaid class diagramhtml5
imports-diag.mmdProject wide module imports as a mermaid class diagramtext
annotationsSummary of XQuery annotation usexhtml
xqdoca.xmlxqDocA run configuration report (XML)xml
xqdoc-validatevalidate generated xqdoc filesxml

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 username
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')