RenewalController::examResults(). Same ExamResultResource shape as the exams entries of GET /api/v1/professional/renewals/{log_code}.{log_code} is a plain string; {exam} is route-model-bound by primary key. 403 if no renewal with that log_code belongs to the caller, or if {exam}'s log_code does not match the route's.App\Http\Controllers\Api\V1\Professional\RenewalController::examResults()api.v1.professional.renewals.exam.resultsAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/renewals/{log_code}/exam/{exam}| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Renewal course log code, as returned by GET /api/v1/professional/renewals. Not a primary key. |
{exam} | integer | Exam attempt id, as returned in exams[].id by GET /api/v1/professional/renewals/{log_code} |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"id": 910001,
"log_code": "7c1e5d9a3b2f4a68901d2c3b4a5f6e70",
"total": 5,
"correct": 1,
"wrong": 4,
"score": 20,
"passed": false,
"date": "2026-03-07",
"start": "2026-03-07 22:13:54",
"end": "2026-03-07 22:15:00",
"questions": [
{
"id": 9804,
"text": "Example exam question",
"missing": false,
"answers": [
{
"id": 37845,
"text": "Example right answer",
"is_correct": true,
"selected": false
},
{
"id": 37846,
"text": "Example wrong answer",
"is_correct": false,
"selected": true
}
]
}
]
}
}docs/api/diver/_resources.md -> "Exam result".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 renewal with that log_code belongs to the caller, or {exam}'s log_code does not match the route's. The last two use the standard envelope:{
"success": false,
"status": "error",
"message": "Forbidden"
}404 Not Found{exam} id that does not exist returns 404 from route-model binding, before the controller runs. The body was not captured for this route.429 Too Many Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.is_correct flag alongside selected.log_code answers 403, not 404.docs/api/professional/renewals/GET_exam_results.mdcurl --location 'https://test.diveraid.com/api/v1/professional/renewals//exam/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"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
}
]
}
]
}
}