-
Notifications
You must be signed in to change notification settings - Fork 0
type_paging
Benjamin Fourmaux edited this page Sep 22, 2022
·
1 revision
Represents pagination
| Name | Description | Type |
|---|---|---|
| data | List of objects | List <Object> |
| paging | Node for pagination | object<Object> |
| totalDataCount | Count of all objects in data | number |
| dataPerPage | Number of object per page (per request in data array) |
number |
| currentPage | Index of current page | number |
| hasPrev | If the current page has previous pages | boolean |
| hasNext | If the current page has next pages | boolean |
| totalPage | Total number of page in this pagination | number |
An example of pagination response
{
"data": [
...
],
"paging": {
"totalDataCount": 235,
"dataPerPage": 10,
"currentPage": 1,
"hasPrev": false,
"hasNext": true,
"totalPage": 24
}
}