type_paging - BenjaminFourmaux/ServiceDown-api GitHub Wiki

Type : Paging

Represents pagination

Fields

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

Exemple

An example of pagination response

{
	"data": [
		...
	],
	"paging": {
		"totalDataCount": 235,
		"dataPerPage": 10,
		"currentPage": 1,
		"hasPrev": false,
		"hasNext": true,
		"totalPage": 24
	}
}
⚠️ **GitHub.com Fallback** ⚠️