Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (34 loc) · 1.19 KB

File metadata and controls

49 lines (34 loc) · 1.19 KB

API Reference

Register user

  POST /api/user/register
Parameter Type Description
form string Required. Form data encoded with application/x-www-form-urlencoded
  • If successful redirects to login page, else returns error.

Log-in user

  POST /api/user/login
Parameter Type Description
form string Required. Form data encoded with application/x-www-form-urlencoded
  • Attaches HTTP Cookie with session token on successful authorization. If not returns error.

Logout user

  GET /api/user/logout
  • Revokes the session token and removed the HTTP Cookie. Returns error if unauthenticated.

Deletes user

  GET /api/iser/delete
  • Revokes the session and deletes the user account and the associated data.

Reserve ticket

  POST /api/ticket/new
Parameter Type Description
route id Required. Route ID