log_code that every students/{log_code} route of the classroom area takes. Served by ClassroomController::progress().App\Http\Controllers\Api\V1\Professional\ClassroomController::progress()api.v1.professional.classroom.progressAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/classroom/{classroom}| Parameter | Type | Description |
|---|---|---|
{classroom} | integer | Classroom id, as returned by GET /api/v1/professional/classroom. Bound by route-model binding |
200 OKprogress, which is the body tests/Api/Professional/ClassroomProgressSummaryTest.php asserts in its first case. Names, emails and ids are examples.{
"success": true,
"status": "success",
"message": "OK",
"data": {
"classroom": {
"id": 4001,
"name": "CAVERN DIVER @ 2025-01-10",
"course": "Cavern"
},
"students": [
{
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"student_id": 700001,
"student_name": "Example Student",
"student_raid_id": "IT26-300-003",
"status": null,
"expire_date": "2025-07-10",
"is_repetition": false,
"repetition": null,
"progress": {
"quiz": {
"completed": 2,
"required": 3,
"percent": 66.67,
"complete": false,
"locked": false
},
"exam": {
"passed": false,
"score": null,
"enabled": false,
"admin_lock": false
},
"skills": {
"total": 4,
"percent": 50,
"complete": false
}
}
}
]
}
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data.classroom.id | integer | No | Yes | Classroom id |
data.classroom.name | string | No | Yes | Classroom name |
data.classroom.course | string | Yes | Yes | Course name, a plain string here, not the {id, name} object of the list. null when the course no longer exists |
data.students | array | No | Yes | One entry per course log of the classroom. Empty ([]) when nobody is enrolled |
data.students[].log_code | string(32) | No | Yes | Opaque course log code. Not a primary key. Pass it to the students/{log_code} routes |
data.students[].student_id | integer | No | Yes | User id of the student |
data.students[].student_name | string | Yes | Yes | Full name of the student. null when the user no longer exists |
data.students[].student_raid_id | string | Yes | Yes | RAID ID of the student, public and immutable. null when the user no longer exists |
data.students[].status | TO VERIFY | Yes | Yes | Course log status. Only null was observed; the set of values was not captured |
data.students[].expire_date | string | Yes | Yes | Course log expiry date, YYYY-MM-DD |
data.students[].is_repetition | boolean | No | Yes | true when the course log repeats a non-certifying course the student already holds (ADR-0029). A repetition needs no quiz, exam or skills, and the write routes refuse them |
data.students[].repetition | object | Yes | Yes | null unless is_repetition is true |
data.students[].repetition.confirmed_at | string | Yes | When repetition is set | ISO 8601, when the assigned instructor confirmed the in-water dive. null until confirmed |
data.students[].repetition.confirmed_by | object | Yes | When repetition is set | id, full_name of the instructor who confirmed. null until confirmed |
data.students[].progress | object | No | Yes | Progress summary of the student, the same values as the website classroom row. Last key of the item. A repetition gets the same summary: is_repetition tells the app what applies |
data.students[].progress.quiz.completed | integer | No | Yes | Quiz modules completed |
data.students[].progress.quiz.required | integer | No | Yes | Quiz modules required by the course |
data.students[].progress.quiz.percent | number | No | Yes | completed / required * 100, 2 decimals; 0 when the course has no modules. A whole number is sent without a fraction (50, 100) |
data.students[].progress.quiz.complete | boolean | No | Yes | true when completed >= required |
data.students[].progress.quiz.locked | boolean | No | Yes | true when the quiz is locked |
data.students[].progress.exam.passed | boolean | No | Yes | true when at least one exam is passed |
data.students[].progress.exam.score | number | Yes | Yes | Score of the latest passed exam. null when no exam is passed. A whole number is sent without a fraction (85) |
data.students[].progress.exam.enabled | boolean | No | Yes | true when the exam is enabled for the student |
data.students[].progress.exam.admin_lock | boolean | No | Yes | true when the exam is locked by an administrator |
data.students[].progress.skills.total | integer | No | Yes | Skills in the skill trace of the course log |
data.students[].progress.skills.percent | number | No | Yes | (signatures / 2) * 100 / total, 2 decimals; 0 when there are no skills. Signatures count the skills signed by the diver plus the skills signed by the instructor, so a skill signed by the diver only counts as half. A whole number is sent without a fraction (100) |
data.students[].progress.skills.complete | boolean | No | Yes | true when total > 0 and every skill is signed by both the diver and the instructor |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}message is Token expired or Invalid token when a bearer token was sent but is expired or unknown.403 Forbiddenprofessional role (role:professional middleware, body not captured), or the classroom exists but belongs to another instructor. The second case uses the standard envelope:{
"success": false,
"status": "error",
"message": "Forbidden"
}404 Not Found{classroom} id that does not exist returns 404 from route-model binding, before the controller runs. The body was not captured for this route.429 Too Many Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.students/{log_code} routes, an unknown classroom id answers 404, while a classroom of another instructor answers 403: the endpoint tells the two apart.progress summary (quiz, exam, skills) computed with the website rules, so the app no longer needs one call per student for the list. The per-student routes remain for the detail: for quizzes, exams and skills of one student use GET /api/v1/professional/classroom/students/{log_code}.expire_date has passed.docs/api/professional/classroom/GET_progress.mdcurl --location 'https://test.diveraid.com/api/v1/professional/classroom/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"classroom": {
"id": 0,
"name": "string",
"course": "string"
},
"students": [
{
"log_code": "string",
"student_id": 0,
"student_name": "string",
"student_raid_id": "string",
"status": "string",
"expire_date": "2019-08-24",
"is_repetition": true,
"repetition": {
"confirmed_at": "2019-08-24T14:15:22.123Z",
"confirmed_by": {
"id": 0,
"full_name": "string"
}
},
"progress": {
"quiz": {
"completed": 0,
"required": 0,
"percent": 0,
"complete": true,
"locked": true
},
"exam": {
"passed": true,
"score": 0,
"enabled": true,
"admin_lock": true
},
"skills": {
"total": 0,
"percent": 0,
"complete": true
}
}
}
]
}
}