API
API Documentation
REST API cho FDT Education - Dành cho mobile app và tích hợp bên thứ ba
🔐 Authentication
POST /api/auth/login
Content-Type: application/json
{ "email": "user@fdt.edu.vn", "password": "..." }
→ { "success": true, "token": "eyJ...", "user": {...} }
Dùng token trong header: Authorization: Bearer <token>
📚 Courses
GET /api/search?q=từ khóa → Tìm kiếm khóa học
POST /api/enroll → Đăng ký khóa học (cần auth)
POST /api/lesson-progress → Cập nhật tiến độ (cần auth)
📝 Quiz & Exam
POST /api/quiz-submit → Nộp bài quiz (cần auth)
POST /api/exam-submit → Nộp bài thi (cần auth)
🎓 Certificate
GET /verify/:code → Xác minh chứng chỉ online
GET /download-certificate/:code → Tải PDF chứng chỉ
🔔 User
GET /api/me → Thông tin user (cần JWT)
GET /api/notifications → Danh sách thông báo
GET /api/skill-assessment → Đánh giá năng lực
POST /api/wishlist → Thêm/xóa yêu thích