StudentController::progress().App\Http\Controllers\Api\V1\Professional\StudentController::progress()api.v1.professional.students.progressAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/students/{log_code}| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Course log code, as returned by GET /api/v1/professional/students. Not a primary key |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
"student": {
"id": 700001,
"raid_id": "IT26-300-003",
"name": "Example Student",
"email": "student@example.com"
},
"course": {
"id": 301,
"name": "Explorer 30"
},
"status": null,
"start_date": null,
"expire_date": "2019-04-09",
"is_repetition": false,
"repetition": null,
"quizzes": [
{
"id": 910001,
"log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
"module_id": 801,
"total": 10,
"correct": 10,
"wrong": 0,
"score": 100,
"passed": true,
"date": "2018-10-27",
"start": "2018-10-27 10:23:19",
"end": "2018-10-27 10:25:25",
"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": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
"total": 13,
"correct": 11,
"wrong": 2,
"score": 84,
"passed": true,
"date": "2018-10-27",
"start": "2018-10-27 21:22:32",
"end": "2018-10-27 21:24:56",
"questions": [
{
"id": 6002,
"text": "Example question?",
"missing": false,
"answers": [
{ "id": 24003, "text": "Example answer one", "is_correct": true, "selected": true },
{ "id": 24004, "text": "Example answer two", "is_correct": false, "selected": false }
]
}
]
}
],
"skills": [
{
"id": 930001,
"log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
"skill_type_id": 2,
"skill_type_name": "Open Water",
"user_completed": null,
"start": "2025-04-02 18:07:13",
"end": null,
"skills": [
{
"id": 5001,
"name": "Example skill one",
"description": "Example skill description.",
"diver_signed": false,
"instructor_signed": false
},
{
"id": 5002,
"name": "Example skill two",
"description": "Example skill description.<br />",
"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 | No | Yes | User id of the student |
data.student.raid_id | string | Yes | Yes | RAID ID of the student, public and immutable. null when the user no longer exists |
data.student.name | string | Yes | Yes | Full name of the student |
data.student.email | string | Yes | Yes | Email address of the student. The instructor receives it in clear |
data.course.id | integer | No | Yes | Course id |
data.course.name | string | Yes | Yes | Course name |
data.status | TO VERIFY | Yes | Yes | Course log status. Only null was observed; the set of values was not captured |
data.start_date | string | Yes | Yes | YYYY-MM-DD. null in the capture |
data.expire_date | string | Yes | Yes | YYYY-MM-DD |
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/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/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/students/{log_code}/skills |
student.raid_id, student.name, student.email and course.name are null-safe reads in the controller: they are null when the user or the course 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 has the caller as instructor, 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.log_code answers 403, exactly like a log_code owned by another instructor: the endpoint does not tell the two apart, and never answers 404.is_correct flag alongside selected, for every quiz and exam attempt.id of each quiz and exam is the {quiz} and {exam} parameter of the two detail routes.docs/api/professional/students/GET_progress.mdcurl --location 'https://test.diveraid.com/api/v1/professional/students/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"log_code": "string",
"student": {
"id": 0,
"raid_id": "string",
"name": "string",
"email": "string"
},
"course": {
"id": 0,
"name": "string"
},
"status": "string",
"start_date": "2019-08-24",
"expire_date": "2019-08-24",
"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
}
]
}
]
}
}