Hey Guys,
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"},
{},{}]
I'll do the one for member candidates which would be
similar next. But yeah that's the type of Bottle stuff
I think would be cool b/c then peeps could build arbitrary
Steve UIs.
Not sure if we have a wiki so I went ahead and searched and
we do:
https://issues.apache.org/jira/browse/INFRA-5086
So I tried to create:
https://wiki.apache.org/Steve/SteveRESTAPI?action=edit
But I don't have perms, need them from gstein. Once I
get them I'll go ahead and add the above as a proposal
on the wiki.
In the meanwhile I'll see what I can do about at least
stubbing out some of the API and making it return dummy
data (we can swap out with real Steve API as it comes online).
Cheers,
Chris
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++