Complete REST API with HTTP Basic Authentication
username:password
Get complete camera dashboard with online/offline counts
curl -u admin:password http://localhost:8000/api/dashboard
Get camera statistics for specific user
curl -u admin:password http://localhost:8000/api/users/salwan/cameras
Get current server capacity status
Get capacity alert history
Get cameras running on specific server
Get camera status summary (online/offline/initializing counts)
Get detailed list of offline cameras with reasons
Get current FPS for camera by internal_camera_id (includes restart count)
Get current FPS for all cameras
Get cameras with restart count >= N (e.g., ?min_count=2)
Check API and database health (public)
Visit /docs for interactive Swagger UI (requires auth)
From Browser: Login popup will appear automatically
From curl: curl -u username:password URL
From Python: requests.get(url, auth=('username', 'password'))
From JavaScript: Use Authorization header with base64 encoded credentials