GET
/v1/enrolments/
curl \
--request GET 'https://classmanager.test/v1/enrolments/'
Response examples (200)
{
"data": [
{
"enrolment": {
"id": "enr_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"classId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"studentId": "stu_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"startAt": "2023-12-05",
"endAt": "2023-12-05"
},
"adjustments": [
{
"id": "enad_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"classId": "cls_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"studentId": "stu_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"reason": "make-up-lesson",
"type": "addition",
"startAt": "2023-12-05",
"endAt": "2023-12-05",
"time": "23:15"
}
]
}
],
"pagination": {
"total": 15,
"count": 10,
"perPage": 10,
"currentPage": 1,
"totalPages": 2
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}