The Meraki Community
Register or Sign in
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • About SilviaBao
SilviaBao

SilviaBao

Just browsing

Member since Feb 8, 2023

‎02-12-2023

Community Record

2
Posts
0
Kudos
0
Solutions
Latest Contributions by SilviaBao
  • Topics SilviaBao has Participated In
  • Latest Contributions by SilviaBao

Re: First page has prev link in pagination

by SilviaBao in Developers & APIs
‎02-09-2023 07:47 PM
‎02-09-2023 07:47 PM
Thanks for your answer. I believe it was not working in the way it's now. When I started to play around their pagination, getting the first page not giving me the 'prev' link. I have tested the other endpoint 'vpn/statues', request for the 'prev' from the first page is returning a full list of all the statues no matter what is the number 'perPage' is set, instead of returning an empty result. I believe it is a bug. ... View more

First page has prev link in pagination

by SilviaBao in Developers & APIs
‎02-08-2023 06:06 PM
‎02-08-2023 06:06 PM
Hi,   First page shouldn't return prev in the link header. This is how I replicate it. E.g.  1. Get networks, 1st page, return expected results https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3 receive this link header <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=L_0>; rel=first, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=N_601793500207574641>; rel=next, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=N_a&perPage=3>; rel=last​   2. Get 2nd page, return expected result     https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=N_601793500207574641 receive this link header <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=L_0>; rel=first, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=N_601793500207574642&perPage=3>; rel=prev, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=N_a&perPage=3>; rel=last​   3. Go back to previous page, 1st page, return same results as the first request but in descending order   https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=N_601793500207574642&perPage=3 and there's a prev in the link header, which I believe it shouldn't be there <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=L_0>; rel=first, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=L_601793500207426230&perPage=3>; rel=prev, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?perPage=3&startingAfter=N_601793500207574641>; rel=next, <https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=N_a&perPage=3>; rel=last       4. as I receive the prev in the link, send that request  https://n69.meraki.com/api/v1/organizations/601793500207405326/networks?endingBefore=L_601793500207426230&perPage=3 it returns empty result ... View more
Powered by Khoros
custom.footer.
  • Community Guidelines
  • Cisco Privacy
  • Khoros Privacy
  • Privacy Settings
  • Terms of Use
© 2023 Meraki