id of each group is the skill_log_id that POST /api/v1/professional/students/{log_code}/skills/sign takes. Served by StudentController::skillsProgress().App\Http\Controllers\Api\V1\Professional\StudentController::skillsProgress()api.v1.professional.students.skillsAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/students/{log_code}/skills| 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": [
{
"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
}
]
}
]
}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 | Skill text. It may contain HTML, such as <br /> |
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 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.status = 1) of the course, the skill group and the course log's version.log_code answers 403, not 404.docs/api/professional/students/GET_skills.mdcurl --location 'https://test.diveraid.com/api/v1/professional/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
}
]
}
]
}