DaFluffyPotato / hitbloq

a competitive beat saber service
MIT License
20 stars 4 forks source link

add more general leaderboard api endpoints #5

Closed DaFluffyPotato closed 3 years ago

DaFluffyPotato commented 3 years ago

add the following endpoints:

https://hitbloq.com/api/leaderboard/<leaderboard_id>
https://hitbloq.com/api/leaderboard/<leaderboard_id>/<page>
https://hitbloq.com/api/hash_to_id/<hash>
https://hitbloq.com/api/leaderboard_by_user/<leaderboard_id>/<user_id>
https://hitbloq.com/api/scoresaber_to_hitbloq_id/<scoresaber_id>

maybe add a SteamID conversion endpoint too?

DaFluffyPotato commented 3 years ago

Two endpoints implemented:

https://hitbloq.com/api/leaderboard/<leaderboard_id>
https://hitbloq.com/api/leaderboard/<leaderboard_id>/<page>

Although they were implemented as the following:

https://hitbloq.com/api/leaderboard/<leaderboard_id>/info
https://hitbloq.com/api/leaderboard/<leaderboard_id>/scores
https://hitbloq.com/api/leaderboard/<leaderboard_id>/scores/<page>
DaFluffyPotato commented 3 years ago

done