GETrequest to the following URL:
pageparameter to the URL:
axiospackage to the project:
/content/resources/find. This will allow us to seamlessly load additional resources, creating the effect of infinite scrolling.
continuationproperty to the response:
/content/resources/findbefore the user reaches the end of the list of resources. The value of this property will also be included in the body of that request.
"2". This is because we've loaded the first page of results and we would like to load the second page. But this value does not have to be a page number. The only requirement is that this value is a string.
continuationproperty is included in a response, that same
continuationproperty will be made available in the body of the next
POSTrequest that's sent to
null. This is because there isn't a previous response. But if you trigger another request by scrolling through the resources, the value of
"2"will be logged. You can use this behavior to load unique resources for each request.
optionsobject, create a
currentPagevariable that contains the value of the request body's
continuationproperty will be
nullon the initial request, provide a fall-back value of
pageparameter in the
optionsobject to use this
continuationproperty in all responses as
response.sendmethod, create a variable that:
continuationproperty in the response: