curl --request GET \
--url https://api.example.com/api/microlearning/recommendations/:employeeId{
"success": true,
"message": "<string>",
"data.recommendations": [
{
"_id": "<string>",
"title": "<string>",
"description": "<string>",
"area": "<string>",
"content": {
"videoUrl": "<string>",
"audioUrl": "<string>",
"pdfUrl": "<string>",
"duration": 123
},
"certificationType": "<string>",
"passingScore": 123,
"isActive": true
}
]
}Get AI-powered personalized course recommendations for employees
curl --request GET \
--url https://api.example.com/api/microlearning/recommendations/:employeeId{
"success": true,
"message": "<string>",
"data.recommendations": [
{
"_id": "<string>",
"title": "<string>",
"description": "<string>",
"area": "<string>",
"content": {
"videoUrl": "<string>",
"audioUrl": "<string>",
"pdfUrl": "<string>",
"duration": 123
},
"certificationType": "<string>",
"passingScore": 123,
"isActive": true
}
]
}Authorization: Bearer YOUR_JWT_TOKEN
GET /api/microlearning/recommendations/:employeeId
Show course properties
participacion or aprobacionsrc/services/microLearningService.js:107) uses the following logic:
jobInfo.positiongeneral areaisActive = truecurl -X GET https://api.cuido.com/api/microlearning/recommendations/65a1b2c3d4e5f6a7b8c9d0e2 \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
{
"success": true,
"message": "Recomendaciones obtenidas",
"data": {
"recommendations": [
{
"_id": "65a1b2c3d4e5f6a7b8c9d0e1",
"title": "Manejo de Emergencias Cardíacas",
"description": "Aprende las técnicas esenciales para responder efectivamente a emergencias cardíacas en entornos rurales",
"area": "urgencias",
"content": {
"videoUrl": "https://cdn.cuido.com/videos/cardiac-emergencies.mp4",
"pdfUrl": "https://cdn.cuido.com/pdfs/cardiac-protocol.pdf",
"duration": 45
},
"certificationType": "aprobacion",
"passingScore": 75,
"isActive": true
},
{
"_id": "65a1b2c3d4e5f6a7b8c9d0e5",
"title": "Comunicación Efectiva con Pacientes",
"description": "Mejora tus habilidades de comunicación para brindar un mejor servicio",
"area": "general",
"content": {
"audioUrl": "https://cdn.cuido.com/audio/communication-skills.mp3",
"duration": 30
},
"certificationType": "participacion",
"passingScore": 70,
"isActive": true
},
{
"_id": "65a1b2c3d4e5f6a7b8c9d0e6",
"title": "Prevención de Infecciones Hospitalarias",
"description": "Protocolos esenciales para prevenir infecciones en entornos hospitalarios",
"area": "urgencias",
"content": {
"videoUrl": "https://cdn.cuido.com/videos/infection-prevention.mp4",
"pdfUrl": "https://cdn.cuido.com/pdfs/infection-protocol.pdf",
"duration": 60
},
"certificationType": "aprobacion",
"passingScore": 80,
"isActive": true
}
]
}
}
{
"success": false,
"message": "No autorizado. Token inválido o expirado."
}
{
"success": false,
"message": "Empleado no encontrado"
}
{
"success": false,
"message": "Error obteniendo recomendaciones"
}
src/routes/microLearningRoutes.js:27src/controllers/microLearningController.js:63src/services/microLearningService.js:107src/models/MicroCourse.js, src/models/CourseEnrollment.js