Offset Pagination With Multiple Keys

Hello,

For a sytem I am forced to use a start and end key. So for example, the first call must be:
GET {url}/product?start=0&end=10

The second call must be:
GET {url}/product?start=10&end=20

Without the end key it doesn’t work.

As far as I can see, this is not possible with the current offset pagination options.

Is it possible to add this feature?

Gr. Dennis

Hi @dennisvandaalen, Could you please let us know the system’s name?

Hi @dennisvandaalen,

A possible way to make this work would be to use an input transformer on the incoming configuration. You can make “start” and “end” variables which you can save in a storage. Then, create a transformer on the incoming configuration that adds values to these variables (for example +10 as in your calls). You can then use a scheduler to run this every minute.

Do you get a max. number of items in your response? In that case, you can use a conditional transformer inside of the transformer on the incoming configuration to make sure you stop when “end” >= the max. number.

Hope it helps.