{
    "system": "EduPack Institutional OS API",
    "domain": "edupack.org",
    "live_server": "https://api.edupack.org/v1/",
    "base_url": "https://api.edupack.org/v1/",
    "version": "1.0.0",
    "php_version": "8.2.35",
    "database_connected": true,
    "database": "medupack_edupack",
    "database_stats": {
        "tables_count": 18,
        "tables": [
            "attendances",
            "audit_logs",
            "auth_tokens",
            "classes",
            "departments",
            "device_push_tokens",
            "exam_questions",
            "exam_submissions",
            "exams",
            "fee_ledgers",
            "fee_settings",
            "school_memberships",
            "schools",
            "student_results",
            "students",
            "subjects",
            "timetables",
            "users"
        ],
        "staff_count": 2,
        "student_count": 25,
        "class_count": 18
    },
    "auth_policy": {
        "token_type": "Bearer",
        "lifetime_seconds": 21600,
        "lifetime_human": "6 Hours",
        "master_role": "proprietor (Universal Access)"
    },
    "live_endpoints": {
        "POST /v1/auth/login.php": "Proprietor login (6-hour token)",
        "GET /v1/auth/me.php": "Proprietor active profile & session info",
        "POST /v1/auth/refresh.php": "Extend session by 6 hours",
        "POST /v1/auth/logout.php": "Revoke token session",
        "GET /v1/dashboard/stats.php": "Executive KPIs & financial ledger",
        "GET /v1/staff/list.php": "Faculty & staff directory",
        "POST /v1/staff/create.php": "Enroll new staff member",
        "POST /v1/staff/update.php": "Update staff record",
        "POST /v1/staff/delete.php": "Delete staff record",
        "POST /v1/staff/toggle_status.php": "Toggle Active / On Leave",
        "GET /v1/students/list.php": "Students roster (grouped/flat)",
        "GET /v1/students/dossier.php?id={id}": "Full student dossier & grades",
        "GET /v1/classes/list.php": "Class cohorts and arms",
        "GET /v1/subjects/list.php": "Curriculum directory",
        "GET /v1/schools/my_schools.php": "List institutions for logged in user",
        "POST /v1/schools/create.php": "Register a new school (auto-grants proprietor)",
        "POST /v1/schools/add_staff.php": "Add/invite staff member to institution",
        "GET /database/setup.php": "Run DB schema migration & seeder"
    },
    "legacy_endpoints": {
        "POST /api/auth/login.php": "Legacy alias for /v1/auth/login.php",
        "GET /api/dashboard/stats.php": "Legacy alias for /v1/dashboard/stats.php"
    }
}