repo.or.cz
/
asis23-votoe-server.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Helper to get amount of votes for a given id
[asis23-votoe-server.git]
/
README.md
blob
806e389a7ce5492c42d09786417a86d17fdd6bdd
1
VOTAR REST API
2
--------------
3
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
```