Get User List
Memperoleh daftar User dari resource.
URI
GET/api/v1/users
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/users?page=1&limit=10`
{
"message": "Data tersedia",
"data": [
{
"id": 17,
"name": "Admin",
"email": "admin@invitation.com",
"phone": "628596374574",
"created_at": "2026-09-02T09:02:33.000Z",
"created_by": 0,
"role": {
"id": 1,
"name": "Administrator"
},
"client": {
"id": null,
"name": null
}
},
{
"id": 32,
"name": "Operator Poltekpel Surabaya",
"email": "operator@poltekpel-sby.ac.id",
"phone": "6285967675432",
"created_at": "2024-04-02T23:48:32.000Z",
"created_by": 17,
"role": {
"id": 3,
"name": "Operator"
},
"client": {
"id": 14,
"name": "Poltekpel Surabaya"
}
},
{
"id": 38,
"name": "Monitoring",
"email": "monitoring@poltekpel-sby.ac.id",
"phone": "085963957631",
"created_at": "2024-03-27T08:11:52.000Z",
"created_by": 17,
"role": {
"id": 4,
"name": "Monitor"
},
"client": {
"id": 14,
"name": "Poltekpel Surabaya"
}
},
...
],
"meta": {
"page": 1,
"limit": 10,
"total_item": 14,
"total_page": 2
}
}