FreeLearningController::available(). Not paginated - returns every eligible course in one response.App\Http\Controllers\Api\V1\Diver\FreeLearningController::available()api.v1.diver.free-learnings.availableAuthorization: Bearer {token}GET/api/v1/diver/free-learnings/available200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": [
{
"id": 83,
"name": "Wreck Instructor Trainer",
"group": "trainer",
"description": "RAID WRECK INSTRUCTOR TRAINER This programme requires application directly to RAID Head Office..."
},
{
"id": 106,
"name": "Performance Instructor Trainer",
"group": "trainer",
"description": ""
}
]
}| Field | Type | Nullable | Notes |
|---|---|---|---|
id | integer | No | Course id — pass this as course_id to POST /api/v1/diver/free-learnings/enroll |
name | string | No | |
group | string | Yes | Enum value |
description | string | No | Empty string, not null, when the course has no description. May contain raw HTML — captured examples include <p> tags |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}Course::available(onlyCourses: true) (status active, credit_id not null, course_type = 'course', is_renew = false) with is_free_learning = true, ordered by name. There is no role filter.TO VERIFY: response size at scale if the free-learning catalogue grows significantly.docs/api/diver/free-learnings/GET_available.mdcurl --location 'https://test.diveraid.com/api/v1/diver/free-learnings/available' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": [
{
"id": 0,
"name": "string",
"group": "string",
"description": "string"
}
]
}