Helper to get amount of votes for a given id
[asis23-votoe-server.git] / README.md
blob806e389a7ce5492c42d09786417a86d17fdd6bdd
1 VOTAR REST API
2 --------------
4 ```
5 POST   /candidates {"name":string} -> {"id":number,"name":string}
6 DELETE /candidates/id
7 GET    /candidates -> [{"id":number,"name":string}]
8 DELETE /candidates
9 POST   /vote {"id":number}
10 GET    /report -> [{"id":number,"name":string,"votes":number}]
11 ```