Convert to Paged List
1 min
Splits a given JSON List into pages based on page size. If the list has 12 rows and the page_index is 5, then the output will have 3 lists. First one will have the first 5 items, second one will have 5 items and the third will hold the remaining 2.
The function can be used to convert a large list to be used in a paged list.
API Definition
Convert to Paged List API
Call the following API:
POST
https://orca.pathfix.com/functions/list/topages
{
"page_size":5,
"input": [
{
"item": 1
},
{
"item": 2
},
{
"item": 3
},
{
"item": 4
},
{
"item": 5
},
{
"item": 6
},
{
"item": 7
},
{
"item": 8
},
{
"item": 9
},
{
"item": 10
},
{
"item": 11
},
{
"item": 12
}
]
}