ClassroomController::studentProgress().App\Http\Controllers\Api\V1\Professional\ClassroomController::studentProgress()api.v1.professional.classroom.student.progressAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/classroom/students/{log_code}| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Course log code of a student, as returned by GET /api/v1/professional/classroom/{classroom}. Not a primary key |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"student": {
"id": 700001,
"raid_id": "IT26-300-003",
"name": "Example Student",
"email": "student@example.com"
},
"status": null,
"is_repetition": false,
"repetition": null,
"quizzes": [
{
"id": 910001,
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"module_id": 801,
"total": 5,
"correct": 5,
"wrong": 0,
"score": 100,
"passed": true,
"date": "2025-01-12",
"start": "2025-01-12 18:06:06",
"end": "2025-01-12 18:11:40",
"questions": [
{
"id": 6001,
"text": "Example question?",
"missing": false,
"answers": [
{ "id": 24001, "text": "Example answer one", "is_correct": false, "selected": false },
{ "id": 24002, "text": "Example answer two", "is_correct": true, "selected": true }
]
}
]
}
],
"exams": [
{
"id": 920001,
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"total": 15,
"correct": 11,
"wrong": 4,
"score": 73,
"passed": false,
"date": "2025-01-12",
"start": "2025-01-12 18:38:16",
"end": "2025-01-12 18:48:06",
"questions": [
{
"id": 6002,
"text": "Example question?",
"missing": false,
"answers": [
{ "id": 24003, "text": "Example answer one", "is_correct": true, "selected": false },
{ "id": 24004, "text": "Example answer two", "is_correct": false, "selected": true }
]
}
]
}
],
"skills": [
{
"id": 930001,
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"skill_type_id": 1,
"skill_type_name": "Confined Water or Pool",
"user_completed": null,
"start": "2025-01-10 18:07:33",
"end": null,
"skills": [
{
"id": 5001,
"name": "Example skill one",
"description": "<p>Example skill description.</p>",
"diver_signed": false,
"instructor_signed": false
}
]
}
]
}
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data.log_code | string(32) | No | Yes | Course log code, echoing the path |
data.student.id | integer | Yes | Yes | User id of the student |
data.student.raid_id | string | Yes | Yes | RAID ID of the student, public and immutable |
data.student.name | string | Yes | Yes | Full name of the student |
data.student.email | string | Yes | Yes | Email of the student |
data.status | TO VERIFY | Yes | Yes | Course log status. Only null was observed; the set of values was not captured |
data.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.repetition | object | Yes | Yes | null unless is_repetition is true |
data.repetition.confirmed_at | string | Yes | When repetition is set | ISO 8601, when the assigned instructor confirmed the in-water dive. null until confirmed |
data.repetition.confirmed_by | object | Yes | When repetition is set | id, full_name of the instructor who confirmed. null until confirmed |
data.quizzes | array | No | Yes | One entry per quiz attempt of the log_code, shaped as in GET /api/v1/professional/classroom/students/{log_code}/quiz/{quiz}. Empty ([]) when there is none |
data.exams | array | No | Yes | One entry per exam attempt, shaped as in GET /api/v1/professional/classroom/students/{log_code}/exam/{exam}. Empty ([]) when there is none |
data.skills | array | No | Yes | One entry per skill group, a SkillProgressResource collection, shaped as in GET /api/v1/professional/classroom/students/{log_code}/skills |
student.id, student.raid_id, student.name and student.email are null-safe reads in the controller: they are null when the user record no longer exists. A null was not observed.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 no course log with that log_code belongs to a classroom of the caller, or that log_code does not exist. The second case uses the standard envelope:{
"success": false,
"status": "error",
"message": "Forbidden"
}429 Too Many Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.is_correct flag alongside selected, for every quiz and exam attempt.log_code answers 403, exactly like a log_code owned by someone else: the endpoint does not tell the two apart, and never answers 404.id of each quiz and exam is the {quiz} and {exam} parameter of the two detail routes.docs/api/professional/classroom/GET_student_progress.mdcurl --location 'https://test.diveraid.com/api/v1/professional/classroom/students/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"log_code": "string",
"student": {
"id": 0,
"raid_id": "string",
"name": "string",
"email": "string"
},
"status": "string",
"is_repetition": true,
"repetition": {
"confirmed_at": "2019-08-24T14:15:22.123Z",
"confirmed_by": {
"id": 0,
"full_name": "string"
}
},
"quizzes": [
{
"id": 0,
"log_code": "string",
"module_id": 0,
"total": 0,
"correct": 0,
"wrong": 0,
"score": 0,
"passed": true,
"date": "2019-08-24",
"start": "2019-08-24T14:15:22.123Z",
"end": "2019-08-24T14:15:22.123Z",
"questions": [
{
"id": 0,
"text": "string",
"missing": true,
"answers": [
{
"id": 0,
"text": "string",
"is_correct": true,
"selected": true
}
]
}
]
}
],
"exams": [
{
"id": 0,
"log_code": "string",
"total": 0,
"correct": 0,
"wrong": 0,
"score": 0,
"passed": true,
"date": "2019-08-24",
"start": "2019-08-24T14:15:22.123Z",
"end": "2019-08-24T14:15:22.123Z",
"questions": [
{
"id": 0,
"text": "string",
"missing": true,
"answers": [
{
"id": 0,
"text": "string",
"is_correct": true,
"selected": true
}
]
}
]
}
],
"skills": [
{
"id": 0,
"log_code": "string",
"skill_type_id": 0,
"skill_type_name": "string",
"user_completed": true,
"start": "2019-08-24T14:15:22.123Z",
"end": "2019-08-24T14:15:22.123Z",
"skills": [
{
"id": 0,
"name": "string",
"description": "string",
"diver_signed": true,
"instructor_signed": true
}
]
}
]
}
}