id of each group is the skill_log_id that POST /api/v1/professional/classroom/students/{log_code}/skills/sign takes. Served by ClassroomController::studentSkills().App\Http\Controllers\Api\V1\Professional\ClassroomController::studentSkills()api.v1.professional.classroom.student.skillsAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/classroom/students/{log_code}/skills| 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": [
{
"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": "<ul> <li>Example skill step.</li> </ul>",
"diver_signed": false,
"instructor_signed": false
}
]
},
{
"id": 930002,
"log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
"skill_type_id": 2,
"skill_type_name": "Open Water",
"user_completed": null,
"start": "2025-01-10 18:07:33",
"end": null,
"skills": [
{
"id": 5002,
"name": "Example skill two",
"description": "<p>Example skill description.</p>",
"diver_signed": false,
"instructor_signed": false
},
{
"id": 5003,
"name": "Example skill three",
"description": "",
"diver_signed": false,
"instructor_signed": false
}
]
}
]
}data is a SkillProgressResource collection, docs/api/diver/_resources.md -> "Skill progress entry". It is empty ([]) when the course log has no skill log.| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data[].id | integer | No | Yes | Skill log id. The skill_log_id of the sign endpoint |
data[].log_code | string(32) | No | Yes | Course log code |
data[].skill_type_id | integer | No | Yes | Skill group id |
data[].skill_type_name | string | Yes | Yes | Skill group name |
data[].user_completed | TO VERIFY | Yes | Yes | Only null was observed |
data[].start | string | Yes | Yes | YYYY-MM-DD HH:MM:SS |
data[].end | string | Yes | Yes | YYYY-MM-DD HH:MM:SS. null until the diver signs |
data[].skills[].id | integer | No | Yes | Skill id. The key of the skills map of the sign endpoint |
data[].skills[].name | string | No | Yes | Skill name |
data[].skills[].description | string | Yes | Yes | HTML fragment, empty string when the skill has no content |
data[].skills[].diver_signed | boolean | No | Yes | The diver signed the skill (user_skills) |
data[].skills[].instructor_signed | boolean | No | Yes | The instructor signed the skill (instructor_skills) |
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.status = 1) of the course, the skill group and the course log's version.log_code answers 403, not 404.docs/api/professional/classroom/GET_student_skills.mdcurl --location 'https://test.diveraid.com/api/v1/professional/classroom/students//skills' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": [
{
"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
}
]
}
]
}