log_code. Served by CertificationController::historySkills(). Same shape as the skills entry of GET /api/v1/professional/certifications/{log_code}/history.{log_code} is a plain string, not route-model-bound. A log_code no certification carries returns 404. If none of the certifications with that log_code was issued by auth()->id(), 403.App\Http\Controllers\Api\V1\Professional\CertificationController::historySkills()api.v1.professional.certifications.history.skillsAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/certifications/{log_code}/skills| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Certification log code, as returned by GET /api/v1/professional/certifications |
200 OKlog_code with 1 skill log record. Abbreviated to 1 skill. Names and ids are examples.{
"success": true,
"status": "success",
"message": "OK",
"data": [
{
"id": 160001,
"log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
"skill_type_id": 2,
"skill_type_name": "Open Water",
"user_completed": [8, 0, 8, 100, 1],
"start": "2023-12-13 19:35:25",
"end": "2023-12-14 23:59:59",
"skills": [
{
"id": 1279,
"name": "Example skill",
"description": "<p>Example skill description.</p>",
"diver_signed": true,
"instructor_signed": true
}
]
}
]
}data comes back [] for a log_code with no skill log records.docs/api/diver/_resources.md -> "Skill progress entry" for the full field shape.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 certification carrying that log_code was issued by the caller. The second case uses the standard envelope:{
"success": false,
"status": "error",
"message": "Forbidden"
}404 Not Found{log_code} does not resolve to any certification.{
"success": false,
"status": "error",
"message": "Resource not found"
}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 and are not filtered by instructor. After a level-up certified by another instructor they can include skills that other instructor signed.docs/api/professional/certifications/GET_history_skills.mdcurl --location 'https://test.diveraid.com/api/v1/professional/certifications//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
}
]
}
]
}