API endpoints to calculate ELO rating for a set of fussball matches
- Can be deployed to Heroku
python server.py [port-number]
Simplified scoreboard
empty
JSON list of ELO ratings
{
"Alice": 1216,
"Bob": 1216,
"Clyde": 1184,
"Dave": 1184
}
empty
JSON list of logged matches
{
"matches": [
{
"a_off": "Alice",
"a_def": "Bob",
"a_score": 10,
"b_off": "Clyde",
"b_def": "Dave",
"b_score": 0
}
]
}
A new match.
{
"a_off": "Alice",
"a_def": "Bob",
"a_score": 10,
"b_off": "Clyde",
"b_def": "Dave",
"b_score": 0
}
{
"result": {}
}