docs/api/diver/courses/GET_quiz_results.md. Served by FreeLearningController::quizResults().App\Http\Controllers\Api\V1\Diver\FreeLearningController::quizResults()api.v1.diver.free-learnings.quiz.resultsAuthorization: Bearer {token}GET/api/v1/diver/free-learnings/{log_code}/quiz/{quiz}| Parameter | Type | Description |
|---|---|---|
{log_code} | string(32) | Opaque free learning log code |
{quiz} | integer | Quiz attempt id, route-model-bound |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"id": 1582847,
"log_code": "9be9084934f36b03bbbb70c38acb9d50",
"module_id": 548,
"total": 5,
"correct": 2,
"wrong": 3,
"score": 40,
"passed": false,
"date": "2026-09-17",
"start": "2026-09-17 14:00:00",
"end": "2026-09-17 14:05:00",
"questions": [
{
"id": 7954,
"text": "Why does ice float?",
"missing": false,
"answers": [
{ "id": 30829, "text": "Because water cannot be displaced.", "is_correct": false, "selected": false },
{ "id": 30830, "text": "Because it expands during the freezing process and changes its physical characteristics and traps some air in the ice.", "is_correct": true, "selected": false }
]
}
]
}
}_resources.md → "Quiz result".401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}403 Forbidden{quiz} exists but its log_code or user_id doesn't match — same inline ownership check pattern as the courses endpoint.{
"success": false,
"status": "error",
"message": "Forbidden"
}404 Not Found{
"message": "No query results for model [App\\Models\\CourseLog\\Quiz] 999999999"
}docs/api/diver/courses/GET_quiz_results.md for the same shape and caveats (reveals every answer's is_correct regardless of selection).docs/api/diver/free-learnings/GET_quiz_results.mdcurl --location 'https://test.diveraid.com/api/v1/diver/free-learnings//quiz/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"id": 0,
"log_code": "string",
"module_id": 0,
"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
}
]
}
]
}
}