DiveLogController::show().{diveLog} is route-model-bound to App\Models\Users\DiveLog by its primary key. Ownership is checked inside the controller through DiveLogPolicy::viewOwn() (no role bypasses it: an administrator token cannot read another diver's dive log), unlike PATCH_update.md, which enforces it via the FormRequest's authorize() instead — the two use different mechanisms and, as a result, different 403 response shapes (see PATCH_update.md's Errors section).App\Http\Controllers\Api\V1\Diver\DiveLogController::show()api.v1.diver.dive-logs.showAuthorization: Bearer {token}GET/api/v1/diver/dive-logs/{diveLog}| Parameter | Type | Description |
|---|---|---|
{diveLog} | integer | Dive log primary key, route-model-bound |
200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"id": 671940,
"uuid": "48553191-fd1f-4fbc-93fe-c15c15b3529e",
"number": 401,
"date": "2026-09-17 00:00:00",
"dive_type": "shore",
"purpose_type": "fun_dive",
"location": "Example Site",
"country": "US",
"lat": null,
"lon": null,
"dive_config": "open_circuit",
"gas": "air",
"gas_mix": { "helium": 0, "nitrogen": 79, "oxygen": 21 },
"max_depth": 19,
"average_depth": 10,
"depth_unit": "meters",
"dive_time": 40,
"abt": 0,
"rnt": 0,
"tbt": 0,
"tts": 0,
"pressure_start": null,
"pressure_end": null,
"pressure_unit": "bar",
"water_temperature": null,
"weather_temperature": null,
"temperature_unit": "celsius",
"weather": null,
"water": null,
"current": null,
"visibility": null,
"weights": null,
"weights_unit": "kilogram",
"buddy": null,
"verified_by": null,
"wetsuit": null,
"sac_rate": null,
"safety_stop": false,
"has_decompression": false,
"decompression_note": null,
"mod": null,
"end": null,
"group_in": null,
"group_out": null,
"comments": "Updated via docs capture.",
"log_code": null,
"course_id": null,
"skill_log_id": null,
"skill_id": null,
"instructor_id": null,
"is_signed": false,
"signed_at": null,
"cylinder_count": null,
"bottom_cylinder_volume": null,
"dive_condition_notes": null
}
}_resources.md → "Dive log". Same shape as one entry of GET_list.md's collection, not wrapped in pagination.gas_mixgas_mix is always returned as {oxygen, nitrogen, helium}, whichever way the dive log was created, as in the example above. Dive logs created in the web application are stored internally as {o, n, h}; the API translates them. The order of the keys inside gas_mix is not significant. A dive log without a recorded mix returns "gas_mix": null.401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}403 Forbidden{
"success": false,
"status": "error",
"message": "Forbidden"
}404 Not FoundDELETE_destroy.md answers the same way. Laravel's default route-model-binding 404. Unlike the manually-resolved 404s elsewhere in this area (e.g. courses/{log_code}), route-model binding's NotFoundHttpException includes the id that was looked up.{
"message": "No query results for model [App\\Models\\Users\\DiveLog] 999999999"
}docs/api/diver/dive-logs/GET_show.mdcurl --location 'https://test.diveraid.com/api/v1/diver/dive-logs/' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"id": 0,
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"number": 0,
"date": "2019-08-24",
"dive_type": "string",
"purpose_type": "string",
"location": "string",
"country": "string",
"lat": 0,
"lon": 0,
"dive_config": "string",
"gas": "string",
"gas_mix": {
"oxygen": 0,
"nitrogen": 0,
"helium": 0
},
"max_depth": 0,
"average_depth": 0,
"depth_unit": "string",
"dive_time": 0,
"abt": 0,
"rnt": 0,
"tbt": 0,
"tts": 0,
"pressure_start": 0,
"pressure_end": 0,
"pressure_unit": "string",
"water_temperature": 0,
"weather_temperature": 0,
"temperature_unit": "string",
"weather": "string",
"water": "string",
"current": "string",
"visibility": "string",
"weights": 0,
"weights_unit": "string",
"buddy": "string",
"verified_by": "string",
"wetsuit": "string",
"sac_rate": 0,
"safety_stop": true,
"has_decompression": true,
"decompression_note": "string",
"mod": 0,
"end": "2019-08-24T14:15:22.123Z",
"group_in": "string",
"group_out": "string",
"comments": "string",
"log_code": "string",
"course_id": 0,
"skill_log_id": 0,
"skill_id": 0,
"instructor_id": 0,
"is_signed": true,
"signed_at": "2019-08-24T14:15:22.123Z",
"cylinder_count": 0,
"bottom_cylinder_volume": 0,
"dive_condition_notes": "string"
}
}