RESTful API for School Management & Report Card Generation
API Endpoints
Modules
Architecture
Register a new school account
Login to school account
Logout from current session
Check if school session is valid
Login to teacher account
Check if teacher session is valid
Generate unique admission number for new student
Create a new student record
Save or update student report card
Get student report card by ID
Get all students for current school
Delete a student report
Check if student exists by admission number
Get complete student profile with all reports
Get school profile information
Update school profile details
Upload/update school logo
Update school settings and preferences
Change school account password
Create a new teacher account
Get all teachers for current school
Assign a class to a teacher
Get classes assigned to current teacher
Get students for attendance marking
Mark daily attendance for students
Get attendance records for a specific date
Get dashboard analytics (top students, class performance, grade distribution)
Get available subscription plans
Initialize Paystack payment for subscription
Verify payment transaction with Paystack
Get current subscription status
Enable auto-debit after successful payment
Get auto-debit status and history
Update auto-debit settings
Process auto-debits (scheduled daily via cron)
Generate PDF report card
HTML view for PDF generation (used by Puppeteer)