Pagination
The current version uses page-based pagination.
Request Example
http
GET /wlte/v1/devices?page=1&pageSize=20Response Example
json
{
"code": "SUCCESS",
"message": "OK.",
"requestId": "req_001",
"data": {
"devices": [],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 0,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
}pagination Fields
| Field | Type | Description |
|---|---|---|
page | integer | Current page number, starting from 1 |
pageSize | integer | Current page size |
total | integer | Total number of items matching the current filter (not pages) |
totalPages | integer | Total number of pages, ceil(total / pageSize), minimum 1 |
hasNext | boolean | Whether a next page exists |
hasPrev | boolean | Whether a previous page exists |
Rules
pagestarts from1- Default
page=1 - Default
pageSize=20 pageSizerange is1to100- Out-of-range values return
400 INVALID_REQUEST - Custom sorting is not supported in the current version
- Device lists are ordered by
deviceIdascending by default - Empty pages return an empty array (e.g.
devices: [])
