Add previous record info to /times/worldrecord #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be very nice if /times/worldrecord could include the previous record as part of the response. A common use case I have is displaying world records/globals. I can load 100 world records with 1 API call, but in order to load what the previous world record was, it will be 1 API call per record. It's very nice to be able to show what the previous world record was at a glance so people can have a better idea of how good a world record is and just for additional context.
How about the top 5 in a list of objects that looks like this:
Will nuke the wr endpoint and make it
topor somethingThat looks great to me! Make sure date still gets included, but yeah this is basically what I was looking for.
Adding onto this, I noticed that the WR endpoint doesn't support sorting. I figured that there's probably a technical reason for that, but it would be nice to have.
Given the previous structure, beyond most recent WR, what sorting options are you imagining?
The same sorts that /times/ has, date asc/desc and time asc/desc. Being able to see the oldest WRs is nice as well as the shortest and longest ones.