Ask Your Question
0

What are the (keywords/parameters) we can pass with the http url to retrieve offset records in http client origin?

asked 2020-11-18 03:21:51 -0600

Manimars gravatar image

updated 2020-11-18 03:33:46 -0600

Hi all, We have been trying to retrieve all the records from one of the API. Passing as parameters in the url header. Example: https://foo.com/api/v2/db/_table/contact?limit=10&offset=0 We have tried pagination options such as "By page number" & "By offset number" and have called the ${startAt} value as a variable by using (offset,fetch,since,until,start,page,limit, etc..) In this case the API is generating the first 10 records by default and those 10 records are getting duplicated everytime and pipeline doesn't stop forever. Are there any other keywords considered to retrieve all the records? Can someone please help me here.

edit retag flag offensive close merge delete

Comments

@jeff, @metadaddy, @iamontheinet, @Maithri, - Please any suggestions here.

Manimars gravatar imageManimars ( 2020-11-18 03:49:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-25 00:51:44 -0600

Manimars gravatar image

To let everyone know, skip & take parameters resolved my issue defining the offset under pagination. skip=${startAt}&take=150 is an example. Here in http client origin under pagination mode - offset value is set to 0 and by calling this value at ${startAt} in URL made my work easy in retrieving the records from API. C:\fakepath\SS1.PNG image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-11-18 03:21:51 -0600

Seen: 318 times

Last updated: Nov 25