BannerFeature
List Banner Features
List all banner features with pagination and filtering options.
Authorization
default AuthorizationBearer <token>
You can retrieve your token by logging in.
In: header
Query Parameters
page?|
Page number for pagination. Must be at least 1.
per_page?|
Number of items per page. Must be at least 1.
search?|
Search term for filtering by feature key.
sort?|
Sort column (e.g. created_at).
key_by?|
Key response by column.
includes?|
Include related data.
filter?object
filter.banner_id?|
Filter by banner ID. Must match an existing stored value.
filter.roles*array<>
Header Parameters
X-API-Version*string
API contract version to target. See the Changelog for what changed in each version.
Default
"2.0.0"Value in
"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.flavours.sa/dev/api/v2/banners/features?page=1&per_page=20&search=dashboard&sort=created_at&key_by=id&includes=feature&filter.banner_id=uuid&filter.roles=USER_CUSTOMER" \ -H "X-API-Version: 2.3.0"{
"meta": {
"code": 200,
"status": "success",
"message": "Data Loaded Successfully"
},
"data": {
"current_page": 1,
"data": [
{
"id": "c99ce7b9-adba-4b25-ac54-54ecb26ca0c0",
"banner_id": "540ed563-0063-454e-916f-3fb184bde315",
"role": "USER_SUBSCRIBER",
"feature_key": "ACCOUNTING_PURCHASE"
},
{
"id": "6ccead4c-290b-4c5a-b8b1-b6dfb3c4775d",
"banner_id": "724e55e3-a143-411c-baba-2241e0ef2d81",
"role": "USER_SUBSCRIBER",
"feature_key": "ACCOUNTING_RESUPPLY"
},
{
"id": "00adb1ce-2712-46fb-b64f-3d4b736f442f",
"banner_id": "0c902889-e760-42de-920e-48b145a60907",
"role": "USER_SUBSCRIBER",
"feature_key": "ACCOUNTING_SUPPLIER"
}
],
"first_page_url": "http://localhost:8000/api/v2/banners/features?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/v2/banners/features?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://localhost:8000/api/v2/banners/features?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/v2/banners/features",
"per_page": 20,
"prev_page_url": null,
"to": 3,
"total": 3
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}