Skip to content

Dashboard

Base URL: http://192.168.100.250/


Method Endpoint Description
GET /dashboard Get dashboard overview data

GET /dashboard
Accept: application/json

Response (200):

{
"success": true,
"data": {
"students": {
"total": 1250,
"male": 680,
"female": 560,
"other": 10,
"new_this_year": 320
},
"staff": {
"total": 85,
"teaching": 45,
"non_teaching": 40
},
"graduations": {
"total": 450,
"this_year": 120
},
"academic_year": {
"current": "2081/2082",
"start_date": "2081-01-01",
"end_date": "2082-12-30"
},
"enrollment_trend": [
{ "year": "2078/79", "count": 980 },
{ "year": "2079/80", "count": 1050 },
{ "year": "2080/81", "count": 1180 },
{ "year": "2081/82", "count": 1250 }
],
"faculty_distribution": [
{ "faculty": "Management", "count": 450 },
{ "faculty": "Science", "count": 320 },
{ "faculty": "Humanities", "count": 280 },
{ "faculty": "Education", "count": 200 }
]
}
}

  • Requires authenticated session
  • All counts are for the current academic year unless specified
  • Enrollment trend returns last 4 years