Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 1.19 KB

File metadata and controls

61 lines (38 loc) · 1.19 KB

API Documentation

Base URL: http://localhost:4000/api

Auth

POST /auth/login

{ "email": "admin@stadiumos.ai", "password": "StadiumOS2026!" }

Returns access token, refresh token, and user profile.

POST /auth/register

{ "name": "Visitor", "email": "visitor@example.com", "password": "StrongPass2026!", "role": "VISITOR" }

Operations

  • GET /health — returns API status.
  • GET /dashboard — returns realtime KPIs, incidents, crowd zones, parking, vendors, tickets, and AI insights.
  • GET /modules/:name — module-specific operating data.
  • GET /incidents?page=1&limit=20 — paginated incidents.

POST /incidents (JWT required)

Creates an incident and returns AI analysis.

{ "title": "Blocked exit", "location": "Gate C", "description": "Queue is blocking the accessible exit lane." }

POST /assistant

{ "message": "Where should section 126 enter?", "language": "en" }

POST /tickets/verify

{ "qrCode": "QR-EXAMPLE" }

GET /search?q=parking

Searches operational data.

WebSocket

Connect to ws://localhost:4000.

Message format:

{ "type": "snapshot", "data": {} }