-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
Vishal Pawar edited this page Mar 20, 2026
·
1 revision
The EduManage backend uses a set of PHP-based API endpoints located in the /api directory to handle dynamic actions and data processing.
Handles all administrative and instructor actions related to courses.
-
POST
action=add: Creates a new course record with image upload support. -
POST
action=edit: Updates an existing course record. -
POST
action=delete: Permanently removes a course.
An administrative tool to shuffle assignments for testing.
- GET: Safely reassigns all active courses to a random pool of active instructors.
Supports bulk data operations via CSV files.
- POST: Validates CSV structure, sanitizes input, and performs bulk inserts into the database.
Manages the relationship between students and academic content.
- POST: Validates student session, checks for duplicate enrollment, and records the new entry.
Every endpoint is protected by:
-
Role Verification: Calls to
requireRole()ensure only authorized users can trigger API actions. -
Input Sanitization: All incoming data is passed through the
sanitize()helper to prevent XSS and tag injection. - Prepared Statements: All data persistence is handled via PDO to prevent SQL injection.
Β© 2026 EduManage CMS | Premium Course Management Platform
Maintained by Vishal Pawar