Labs/Bespin/ServerAPI

< Labs‎ | Bespin
Revision as of 22:27, 17 December 2008 by Bgalbraith (talk | contribs) (New page: This aims to document the Bespin server API. It is taken from the original Python prototype server and has been updated for the subsequent Java server. == Errors == * "You're not logged ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This aims to document the Bespin server API. It is taken from the original Python prototype server and has been updated for the subsequent Java server.

Errors

  • "You're not logged in, and this request requires you to be" errors will be HTTP 401 status codes
  • Other errors will be HTTP 400, with an explanation string

Authentication

  • POST (or GET) /register/login/username -- no password necessary
  • POST (or GET) /register/logout/
  • GET /register/ for debugging, it will tell you who it thinks you are logged in as