Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Pass offset param to target URL

The target endpoint accepts limit and offset as query param in the request.

The limit specifies the number of records to be returned on each hit and offset Specifies the starting row for the result set. Used by the limit parameter.

In the initial request for the first page of results, omit the offset parameter or set it to zero.

When we hit the target endpoint from apigee first time we set offset to zero and when I change the offset to some value it gives me error as

error: Requests with offsets need to be run after an initial request without an offset

 

 

 
It means that the request is treated a new request each time and expect offset as zero.
 
I am not sure if there is something related to cache and we do not have cache management enabled. 
 
Is there a way out to resolve this issue ?
 
0 2 994
2 REPLIES 2