Go REST
F

X-Pagination-Limit Problem

Faia test over 3 years ago 4402 views 2 replies

hello, I changed the header by adding x-pagination-limit with a value of 20, but the result still shows only 10 lists. is the pagination header not working?

2 replies
Z
zeevy over 3 years ago

Hi, can you please check it showing 10 only for me

Z
zeevy over 3 years ago
curl -i https://gorest.co.in/public/v2/users

HTTP/2 200 
date: Thu, 29 Sep 2022 04:32:32 GMT
content-type: application/json; charset=utf-8
cache-control: max-age=0, private, must-revalidate
etag: W/"368fb1a68c03a55decb0335374a1efac"
referrer-policy: strict-origin-when-cross-origin
vary: Origin
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-links-current: https://gorest.co.in/public/v2/users?page=1
x-links-next: https://gorest.co.in/public/v2/users?page=2
x-links-previous: 
x-pagination-limit: 10
x-pagination-page: 1
x-pagination-pages: 353
x-pagination-total: 3528
x-permitted-cross-domain-policies: none
x-request-id: 7b53e8fa-61e1-4af6-a07c-5db7de3229be
x-runtime: 0.017747
x-xss-protection: 0
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=TflSuqypqV4Ltvh6IowV%2BtstMcsqurn4uf3fZCHAIcuvIYjE6rt8mz7xmbyn4fkvFg3Wotpw9xkCD2oZmMkl2BJAZxgxhr0qmyn%2FJAjPP1ke1cFCDxQ0%2BlnnruEym6w%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 7521fedcee7dc918-HYD
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

Your reply

Markdown supported