You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2015/03/22 22:54:32 UTC
svn commit: r1668490 - /steve/trunk/pysteve/REST_API_README.txt
Author: humbedooh
Date: Sun Mar 22 21:54:32 2015
New Revision: 1668490
URL: http://svn.apache.org/r1668490
Log:
update api doc
Modified:
steve/trunk/pysteve/REST_API_README.txt
Modified: steve/trunk/pysteve/REST_API_README.txt
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/REST_API_README.txt?rev=1668490&r1=1668489&r2=1668490&view=diff
==============================================================================
--- steve/trunk/pysteve/REST_API_README.txt (original)
+++ steve/trunk/pysteve/REST_API_README.txt Sun Mar 22 21:54:32 2015
@@ -185,6 +185,27 @@ Obtaining a voter ID for peeking:
"id": "oigwhhsgoih8ewr8gye58or"
}
+===============
+Tallying votes:
+===============
+
+/steve/admin/tally/$electionid/$issueid
+ POST
+ input:
+ none
+
+ output:
+ HTTP 200 Results ready
+ HTTP 404 Not Found if no such election
+ HTTP 500 on error
+ response payload:
+ JSON formatted
+ {
+ "yes": 10,
+ "no": 5,
+ "abstain": 2
+ }
+