DiveLogController::index().App\Http\Controllers\Api\V1\Diver\DiveLogController::index()api.v1.diver.dive-logs.indexAuthorization: Bearer {token}GET/api/v1/diver/dive-logsper_page is not accepted — see Notes.200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"data": [
{
"id": 384110,
"uuid": "6560b3f5-6d71-4f25-a769-6d593c024844",
"number": 400,
"date": "2022-09-05 00:00:00",
"dive_type": "shore",
"purpose_type": "fun_dive",
"location": "Example Site",
"country": null,
"lat": null,
"lon": null,
"dive_config": "open_circuit",
"gas": "air",
"gas_mix": { "oxygen": 21, "nitrogen": 79 },
"max_depth": 20,
"average_depth": 12,
"depth_unit": "meters",
"dive_time": 52,
"abt": null,
"rnt": 0,
"tbt": null,
"tts": 0,
"pressure_start": null,
"pressure_end": null,
"pressure_unit": "bar",
"water_temperature": 13,
"weather_temperature": 13,
"temperature_unit": "celsius",
"weather": "sunny",
"water": "calm",
"current": "no_current",
"visibility": "poor",
"weights": null,
"weights_unit": "kilogram",
"buddy": "Example Buddy",
"verified_by": "EB",
"wetsuit": "Sidemount",
"sac_rate": null,
"safety_stop": false,
"has_decompression": false,
"decompression_note": null,
"mod": null,
"end": null,
"group_in": null,
"group_out": null,
"comments": "Example dive notes.",
"log_code": null,
"course_id": null,
"skill_log_id": null,
"skill_id": null,
"instructor_id": null,
"is_signed": false,
"signed_at": null,
"cylinder_count": 1,
"bottom_cylinder_volume": 15,
"dive_condition_notes": "Good"
}
],
"meta": {
"current_page": 1,
"last_page": 20,
"per_page": 20,
"total": 400
}
}
}_resources.md → "Dive log". The pagination envelope is data.data for the collection and data.meta for page info — there is no links key.401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}per_page is hardcoded to 20 (->paginate(20)) and not accepted as a query parameter. Allowing it, capped at 100, is a decided but unimplemented change — see the plan's out-of-scope note. Do not implement it as part of this documentation pass.last_page is 20.docs/api/diver/dive-logs/GET_list.mdcurl --location 'https://test.diveraid.com/api/v1/diver/dive-logs?page=&per_page=' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"current_page": 0,
"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"
}
],
"per_page": 0,
"total": 0,
"last_page": 0
}
}