Get Feature List
Memperoleh daftar feature dari resource.
URI
GET/api/v1/features
Security
Type: Bearer Token
Query Parameter
| Name | Type | Field | Description |
|---|---|---|---|
page | string | optional | Berisi nomor halaman (page & limit harus terisi untuk mengaktifkan pagination). |
limit | string | optional | Berisi jumlah data per halaman (page & limit harus terisi untuk mengaktifkan pagination). |
keyword | string | optional | Berisi kata kunci pencarian. |
sort_by | string | optional | Berisi nama kolom dari resource untuk sortir data. |
sort_method | string | optional | Berisi metode sortir data. |
Examples
- URI
- Response
`{base_url}/api/v1/features?page=1&limit=10`
{
"message": "Data tersedia",
"data": [
{
"id": 1,
"code": "scan",
"feature": "Scan QR",
"category": "addon",
"description": "Scan QR code",
"status": 1,
"is_deleted": 0,
"created_at": null,
"updated_at": null,
"created_by": null,
"updated_by": null,
"value": {
"kuota": 10,
"max_scan": 1,
"certifier_id": "",
"max_undangan": 10
}
},
{
"id": 3,
"code": "print",
"feature": "Print Out",
"category": "addon",
"description": "Print the image or struct",
"status": 1,
"is_deleted": 0,
"created_at": null,
"updated_at": null,
"created_by": null,
"updated_by": null,
"value": {
"fields": [
"name",
"prodi"
],
"paper_size": "80",
"custom_rows": []
}
},
...
],
"meta": {
"page": 1,
"limit": 10,
"total_item": 7,
"total_page": 1
}
}