As we get more Python in there, here's what I'd like to set up with Python Bottle:

/steve/vote/board/{election}
POST
input: 
  Path param {election}, e.g., 20130521
  voterId: user's unique hash,
  ballot: ballot characters

output:
  code:
   HTTP 200 OK on success
   HTTP 500 on error
  payload:
    JSON formatted
     {
       msg: ""
     }

/steve/vote/member/{candidate}
POST
input: 
        Path param {candidate} Apache uid e.g., mattmann
        voterId: user's unique hash
        ballot: yes|no|abstain
output:
   code:
     HTTP 200 OK on success
     HTTP 500 on error
   paylod:
      JSON formatted
        {
          msg: ""
        }

/steve/list/board/{candidate}
  GET
    input: Path param candidate Apache uid, e.g., gstein
          (if not provided, all candidates, along with statements listed)
    output:
      HTTP 200 OK on success
      HTTP 404 if candidate not found (if provided)
      HTTP 500 on error
    payload:
       JSON formatted
         {
           [{uid:"gstein",
             nominatedby:"mattmann",
             secondedby:["kelly", "fielding"],
             accepted:"yes",
             statement: "yes",
             statementTxt:"here is my statement text"},
             {},{}]

SteveRESTAPI (last edited 2013-06-10 04:37:42 by ChrisMattmann)