group is trainer, ordered by certification_date descending. Always limited to certifications where instructor_id is the authenticated user: another instructor's certifications never appear. Served by CertificationController::trainer().courses.group = trainer (App\Enums\CourseGroup::trainer).App\Http\Controllers\Api\V1\Professional\CertificationController::trainer()api.v1.professional.certifications.trainerAuthorization: Bearer {token}role:professional. A user without the professional role receives 403.GET/api/v1/professional/certifications/trainer200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": []
}App\Http\Resources\Api\V1\IssuedCertificationResource: the same resource / data wrapper and the same keys as GET /api/v1/diver/certifications (see docs/api/diver/certifications/GET_list.md, including certification_date, course_group and is_specialty), with two differences. course_level is the name of the certified level, or null when the certification has no level. diver is appended. data is [] when no certification matches.| Field | Type | Nullable | Description |
|---|---|---|---|
data.course_level | string | Yes | Name of the certified level; null without a level |
data.certification_date | string (Y-m-d) | No | Date the certification was issued |
data.diver | object | Yes | The certified diver: id (integer), full_name (string), raid_id (string). null when the account no longer exists |
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 Forbiddenrole:professional middleware when the authenticated user does not have the professional role. The body of this response was not captured.429 Too Many Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.GET /api/v1/professional/certifications.course, level, dive_center, distributor, user, instructor, upgrade, levelingSource.course and previousCertificationRecord.course: the query count does not grow with the number of rows.docs/api/professional/certifications/GET_trainer.mdcurl --location 'https://test.diveraid.com/api/v1/professional/certifications/trainer' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": [
{
"resource": "Certification",
"data": {
"log_code": "string",
"course": "string",
"course_level": "string",
"distributor": "string",
"dive_center": "string",
"instructor": "string",
"order_id": "string",
"is_associated": true,
"associated_log": "string",
"is_renewed": true,
"will_expire": true,
"expire_date": "2019-08-24",
"is_crossover": true,
"leveling_up": true,
"leveling_up_from": "string",
"leveling_id": 0,
"is_upgrade": true,
"upgrade_course": "string",
"previous_certification": "string",
"certification_date": "2019-08-24",
"course_group": "string",
"is_specialty": true,
"diver": {
"id": 0,
"full_name": "string",
"raid_id": "string"
}
}
}
]
}