Support returning PaginationWithTotal from /times/worldrecord #4

Open
opened 2025-06-28 20:29:15 +00:00 by fiveman1 · 1 comment

It would be very nice if /times/worldrecord supported returning the total items/pages in the response, particularly if a user ID specified.

/times always returns the total items/pages.

Some things this would help support:
For a given user...

  • Total WRs
  • Total WRs by game
  • Total WRs by style
  • Displaying a list of WRs

...also can /maps/ return total pages? If I am given the total pages after making the first request, then I can make the rest of the requests I need at the same time. Otherwise, in order to load all the data I need, I have to wait for each page response and check if it's empty each time.

tl;dr: it would be very nice for most endpoints to return total pages/items

It would be very nice if /times/worldrecord supported returning the total items/pages in the response, particularly if a user ID specified. /times always returns the total items/pages. Some things this would help support: For a given user... * Total WRs * Total WRs by game * Total WRs by style * Displaying a list of WRs ...also can /maps/ return total pages? If I am given the total pages after making the first request, then I can make the rest of the requests I need at the same time. Otherwise, in order to load all the data I need, I have to wait for each page response and check if it's empty each time. tl;dr: it would be very nice for most endpoints to return total pages/items
Owner

Yeah, all of them should show the full pagination like times does. Times has it since the existing internal API returned it but the others don't.

Yeah, all of them should show the full pagination like times does. Times has it since the existing internal API returned it but the others don't.
itzaname added the Kind/Enhancement
Priority
Medium
3
labels 2025-07-06 03:30:59 +00:00
Sign in to join this conversation.