{
  "message": "QuizClash API - Production",
  "status": "running",
  "version": "1.0.0",
  "endpoints": [
    "GET /health - Health check",
    "GET /status - System status with table counts",
    "GET /api/status - API connection status for sidebar",
    "POST /auth/login - User authentication",
    "GET /users/me - User profile information",
    "GET /users/stats - User statistics",
    "GET /users/detailed-stats - Detailed user statistics with recent games",
    "GET /users/recent-games - Recent game history",
    "GET /users/{id}/stats - Individual user statistics for profile",
    "GET /users/{id}/activity - User activity timeline for admin",
    "GET /subjects - List all quiz subjects",
    "GET /subjects/{id}/topics - List topics for a subject",
    "GET /leaderboard - User rankings and leaderboard (supports ?subject_id=X)",
    "GET /tournaments - List tournaments",
    "POST /tournaments/ - Create new tournament (admin only)",
    "GET /tournaments/{id} - Get single tournament details",
    "PUT /tournaments/{id} - Update tournament (admin only)",
    "PUT /tournaments/{id}/status - Update tournament status (admin only)",
    "DELETE /tournaments/{id} - Delete tournament (admin only)",
    "POST /tournaments/{id}/register - Register for tournament",
    "POST /tournaments/{id}/start - Start tournament session",
    "POST /tournaments/{id}/sessions/{session_id}/answer - Submit tournament answer",
    "POST /tournaments/{id}/sessions/{session_id}/complete - Complete tournament session",
    "GET /tournaments/{id}/leaderboard - Get tournament leaderboard and rankings",
    "GET /tournaments/{id}/statistics - Get tournament analytics and statistics",
    "GET /tournaments/{id}/topics - Get tournament topics",
    "GET /tournaments/user-stats - User tournament statistics",
    "GET /tournaments/user/{id}/history - User tournament history for admin",
    "GET /achievements/user - User achievements",
    "POST /achievements/evaluate - Evaluate and unlock achievements after game",
    "GET /powerups/user - User powerups",
    "POST /questions/generate - Generate questions for gameplay",
    "GET /questions/random - Random questions for gameplay",
    "POST /game-sessions - Save completed game session and update user stats",
    "POST /game-answers - Save individual game answers for analytics",
    "POST /game/start - Start new game session",
    "POST /sync/offline-to-online - Sync offline data to online",
    "GET /sync/status - Check sync status",
    "GET /admin/questions - List questions with pagination and search",
    "POST /admin/questions - Create new question",
    "PUT /admin/questions/{id} - Update existing question",
    "DELETE /admin/questions/{id} - Delete question",
    "POST /admin/questions/bulk - Bulk operations on questions",
    "GET /admin/topics - List all topics with question counts",
    "POST /admin/topics - Create new topic",
    "PUT /admin/topics/{id} - Update existing topic",
    "DELETE /admin/topics/{id} - Delete topic",
    "GET /admin/subjects - List all subjects (including inactive) for admin panel",
    "POST /admin/subjects - Create new subject",
    "PUT /admin/subjects/{id} - Update existing subject",
    "DELETE /admin/subjects/{id} - Delete subject",
    "GET /admin/users - List all users with statistics",
    "POST /admin/users - Create new user",
    "PUT /admin/users/{id} - Update existing user",
    "PATCH /admin/users/{id}/status - Update user status",
    "POST /admin/update-levels - Update all user levels based on scores",
    "POST /admin/import-tournament-data - Import missing tournament data from offline",
    "POST /admin/create-tournament-tables - Create missing tournament tables",
    "GET /admin/debug-tournament-tables - Debug tournament table structure",
    "POST /admin/test-tournament-insert - Test manual tournament data insert",
    "POST /admin/bulk-import-all-data - Bulk import all tournament data with proper order"
  ]
}