App\Http\Controllers\Api\V1\Diver\StoreController::index()api.v1.diver.store.indexAuthorization: Bearer {token}GET/api/v1/diver/store200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": [
{
"id": 137,
"name": "Action Camera",
"code": "ACS_pSeXL1izBrxIx9",
"description": "<p>ACTION CAMERA SPECIALTY</p><p>Action cameras such as the GoPro or MUVI have become very well established...</p>",
"price": 135,
"currency": "USD",
"course_type": "course"
}
]
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data[].id | integer | No | Yes | Catalogue course id |
data[].name | string | No | Yes | |
data[].code | string | Yes | Yes | The course SKU |
data[].description | string | Yes | Yes | Contains HTML, often several paragraphs |
data[].price | number | No | Yes | Major units, not cents. A course priced at 135 dollars is 135 |
data[].currency | string | No | Yes | Always USD |
data[].course_type | string | No | Yes | CourseType enum value: course or recognition. Every item captured live was course |
401 Unauthorizedmessage is one of Unauthenticated, Invalid token, Token expired.USD and is not derived from the diver. The user profile carries its own currency, derived from their country, which is a display preference and not what they will be charged in. The diver and professional stores price in US dollars only.description is HTML, not plain text, and is returned in full for every item. Measured live: 93 items in one response, several kilobytes each. Unpaginated and uncapped, this is the heaviest listing in the diver area.docs/api/diver/store/GET_list.mdcurl --location 'https://test.diveraid.com/api/v1/diver/store' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": [
{
"id": 0,
"name": "string",
"code": "string",
"description": "string",
"price": 0,
"currency": "USD",
"course_type": "string"
}
]
}