How to accomplish pagination with "rel = next"

sam nick 286 Reputation points
2022-01-02T20:49:24.403+00:00

For a REST api endpoint, the client data feed, gives us the pagination value in the header. Please can you advise on how to accomplish this.

The relative URL for the dataset is

https://clientname.com/api/v2/tickets?updated_since=2019-01-19

When the above is executed (for testing) in Postman, i get the next page in the Headers under Link as
<https://clientname.com/api/v2/tickets?updated_since=2019-01-19&page=2>;rel="next"

I currently have my pagination parameters as
161707-image.png

Any recommendation on how to resolve this please.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,606 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 31,061 Reputation points Microsoft Employee
    2022-01-03T09:23:00.62+00:00

    Hello @sam nick ,
    Thank you for using Microsoft Q&A platform.

    By seeing your query, it seems you are getting a response header under the property called "link" and having value as "https://clientname.com/api/v2/tickets?updated_since=2019-01-19&page=2". If that is true, then kindly do your pagination setting as below.

    161886-image.png

    Kindly check below link to get complete idea of using pagination rules based on different requirements.
    https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory#pagination-support

    Hope this will help. Please let us know if there is any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators