Skip to content

Commit

Permalink
Merge pull request #1469 from vtexdocs/md-pagination-add-callout
Browse files Browse the repository at this point in the history
add callout to master data pagination guide
  • Loading branch information
julia-rabello authored Sep 27, 2024
2 parents f983b73 + e4d62e6 commit 234fafe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Pagination in the Master Data API"
slug: "pagination-in-the-master-data-api"
hidden: true
hidden: false
createdAt: "2024-09-06T18:10:15.623Z"
updatedAt: "2024-09-06T18:10:15.623Z"
---
Expand All @@ -28,6 +28,8 @@ To paginate your results using the search endpoint, include the `REST-Range` hea

For example, `resources=0-100` would return the first 100 documents from index 0 to 99. Note that you are limited to retrieving 100 documents per query.

>ℹ When paginating, the `_sort` parameter is recommended. The API does not guarantee a specific order by default; therefore, omitting the `_sort` parameter may lead to duplicate documents or return unexpected pages.
### Retrieving subsequent pages

To retrieve the next set of results, adjust the `x` and `y` values accordingly. For example, to get the next 100 documents after the first set, your `REST-Range` header would look like this: `resources=100-200`.
Expand Down

0 comments on commit 234fafe

Please sign in to comment.