App\Http\Controllers\Api\V1\Diver\CourseController::skillsProgress()api.v1.diver.courses.skillsAuthorization: Bearer {token}log_code and the authenticated user id.GET/api/v1/diver/courses/{log_code}/skills| Parameter | Type | Description |
|---|---|---|
log_code | string(32) | Opaque enrolment code. Not a primary key |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": [
{
"id": 212256,
"log_code": "a6b952760c2b672d2f45da6989b1a8c1",
"skill_type_id": 1,
"skill_type_name": "Confined Water or Pool",
"user_completed": null,
"start": "2025-04-02 18:07:22",
"end": null,
"skills": [
{
"id": 2429,
"name": "Assemble, test, use and disassemble a continuous flow oxygen system",
"description": "The candidate will assemble, test, use (in a simulated scenario) and disassemble, an oxygen delivery system suitable for delivering continuous flow at variable rates",
"diver_signed": false,
"instructor_signed": false
},
{
"id": 2430,
"name": "Assemble, test, use and disassemble a demand oxygen system",
"description": "The candidate will assemble, test, use (in a simulated scenario) and disassemble, an oxygen delivery system suitable for delivering oxygen on demand",
"diver_signed": false,
"instructor_signed": false
}
]
}
]
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data[].id | integer | No | Yes | Skill log id. Send it to the skill signing endpoint |
data[].log_code | string(32) | No | Yes | The enrolment this belongs to |
data[].skill_type_id | integer | No | Yes | 1 confined water, 2 open water |
data[].skill_type_name | string | Yes | Yes | English label, for example Confined Water or Pool |
data[].user_completed | string | Yes | Yes | Timestamp when the diver completed the set, null while in progress |
data[].start | string | Yes | Yes | Y-m-d H:i:s |
data[].end | string | Yes | Yes | Y-m-d H:i:s, null while in progress |
data[].skills[].id | integer | No | Yes | Skill id |
data[].skills[].name | string | No | Yes | |
data[].skills[].description | string | Yes | Yes | May contain HTML |
data[].skills[].diver_signed | boolean | No | Yes | Signed by the diver |
data[].skills[].instructor_signed | boolean | No | Yes | Signed by the instructor |
401 Unauthorized404 Not Foundlog_code for this diver. Resolved manually, so the message does not include the looked-up value.status = 1. The frozen version is read from the course log while the course runs, and from the certification once it has been certified: about 88 % of skill logs resolve through the certification, since most courses are finished. Skills added to a later version of the course do not appear for a diver frozen on an earlier one."data": [].docs/api/diver/courses/GET_skills_progress.mdcurl --location 'https://test.diveraid.com/api/v1/diver/courses//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
}
]
}
]
}