GET
/api/v1/courses/by-department/{id}
curl \
--request GET 'https://api.echoplain.social/api/v1/courses/by-department/{id}'
Response examples (200)
{
"message": "string",
"total": 42.0,
"courses": {
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"id": "string",
"departments": {
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"id": "string",
"name": "string",
"instituteid": "string"
},
"name": "string",
"description": "string"
}
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}