Get first 10 records:
curl -X 'GET' \
'http://localhost:8080/v1/scan/college?maxRecords=10' \
-H 'accept: application/json' | jq
In the response nextToken
contains the digest to the last key.
To get next 10 records pass the nextToken
value as query parameter from
:
curl -X 'GET' \
'http://localhost:8080/v1/scan/college?maxRecords=10&from=<nextToken>' \
-H 'accept: application/json' | jq
Catch: getToken=true
should be sent in order to receive nextToken
in the response. Otherwise the pagination details in the response will not have nextToken
.
To get first 10 records
curl -X 'POST' \
'http://localhost:8080/v1/query/college/students?includeBinData=true&maxRecords=10&sendKey=true&compress=true&getToken=true' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{}' | jq
To get next 10 records
curl -X 'POST' \
'http://localhost:8080/v1/query/college/students?includeBinData=true&maxRecords=10&sendKey=true&compress=true&getToken=true' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"from": "<nextTokenFromPrevousResponse>"}' | jq