Labs/Bespin/ServerAPI: Difference between revisions

Line 11: Line 11:
* POST /register/new/username returns a JSON object with the "project" attribute. The body of the POST should include the user's password and email address, encoded the same as form inputs (password, email).
* POST /register/new/username returns a JSON object with the "project" attribute. The body of the POST should include the user's password and email address, encoded the same as form inputs (password, email).
* POST (or GET) /register/logout/  
* POST (or GET) /register/logout/  
* GET /register/userinfo/ for debugging, it will tell you who it thinks you are logged in as and will also give you the name of the user project (this is in JSON format)
* GET /register/userinfo/ for debugging, it will tell you who it thinks you are logged in as and will also give you the name of the user project (this is in JSON format). The user's quota and amountUsed are provided in bytes.


== Editing ==
== Editing ==
canmove, Confirmed users, Bureaucrats and Sysops emeriti
1,093

edits