thewca / wca-live

Platform for running WCA competitions and sharing live results with the world
https://live.worldcubeassociation.org
70 stars 23 forks source link

Add API for entering individual attempts #195

Closed jonatanklosko closed 11 months ago

jonatanklosko commented 11 months ago

Introduces personal competition-specific scoretaking tokens and an API endpoint for entering an individual attempt result. For more details see the wiki page.

jonatanklosko commented 11 months ago

(totally not a blocker, but) Have you thought at all about access tokens for an organization/party, that is, something not tied to a specific human being?

I forgot to reply. Currently we track which user entered each result (or more precisely made the last edit), so a personal token is easiest to maintain this behaviour. With external devices this information isn't necessarily as meaningful anymore, but if this turns out to be the direction, we will likely need more changes to better accommodate this use case. I went with the simplest viable solution, that allows people to test "scorecardless" projects without hacking around some bot-based data entry (first such competition is expected next month) :)