You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by Apache Wiki <wi...@apache.org> on 2013/06/10 05:10:58 UTC

[Steve Wiki] Update of "SteveRESTAPI" by ChrisMattmann

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Steve Wiki" for change notification.

The "SteveRESTAPI" page has been changed by ChrisMattmann:
https://wiki.apache.org/Steve/SteveRESTAPI

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

/steve/vote/board
POST
input: <user's unique hash>
        <ballot characters>
output:
  code:
   HTTP 200 OK on success
   HTTP 500 on error
  payload:
    JSON formatted
     {
       msg: ""
     }

/steve/vote/member
POST
input: <user's unique hash>
        <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"},
             {},{}]