Forum Discussion

API_User's avatar
API_User
Equinix Employee
4 years ago
Solved

pagination interpreted as offset?

We've noticed a change in the API response since the introduction of pagination.
When requesting the configured services (using /ecx/v3/l2/buyer/connections?pageNumber={page}&pageSize=1) we receive the same service multiple times. When we move to a next page the advance the pointer to the next record which makes us believe this is actually the "offset".
So pageNumber points to the n-th record and pageSize determines how many they return, this means that size=100 on page 1 (start from 0) you get only 1 new record and 99 old ones.
ex. if you want record 100, with page size 100, you don't need page 1, you need page 100.

I'm guessing this counts as a bug in the API, no?

  • we deployed a patch and its working now. sorry for inconvenience.

1 Reply

  • API_User's avatar
    API_User
    Equinix Employee
    we deployed a patch and its working now. sorry for inconvenience.

Featured Places

  • Node avatar for Discussions

    Discussions

    Engage with industry experts, share insights, ask questions, and grow your network.
  • Node avatar for Ideas

    Ideas

    We're listening! Submit your ideas to shape the future of Equinix!
  • Node avatar for Groups

    Groups

    Ready to collaborate? Join a Group or upcoming beta program.
  • Node avatar for What's New

    What's New

    Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.
  • Node avatar for Events

    Events

    Your Guide to Upcoming Events - Online, Hybrid, and In-Person!