Skip to content

Commit

Permalink
fix: cursor pagination example (#73)
Browse files Browse the repository at this point in the history
Looks like there was some copy-pasta 🍝 in the base64 cursor values from
the previous example. All 3 cursors refer to different pages and should
be unique.

Signed-off-by: Evan Gilbert <[email protected]>
  • Loading branch information
eggilbert authored Nov 16, 2023
1 parent d355092 commit 1ba7b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standards/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ RESPONSE
"paging": {
"limit": 2,
"next": {
"cursor": "bmV4dF91c2VySWQ6Mw==", # base64.encode("next_userId:5"), if the limit is adjusted manually in the subsequent request, that will obviously impact the before/after
"url": "https://api.spscommerce.com/v1/example?limit=2&cursor=bmV4dF91c2VySWQ6Mw=="
"cursor": "bmV4dF91c2VySWQ6NQ==", # base64.encode("next_userId:5"), if the limit is adjusted manually in the subsequent request, that will obviously impact the before/after
"url": "https://api.spscommerce.com/v1/example?limit=2&cursor=bmV4dF91c2VySWQ6NQ=="
},
"previous": {
"cursor": "cHJldl91c2VySWQ6Mw==", # base64.encode("prev_userId:3"), if the limit is adjusted manually in the subsequent request, that will obviously impact the before/after
Expand Down

0 comments on commit 1ba7b52

Please sign in to comment.