X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fapi.txt;h=dc5ebc00d9100152720fa27479b0bfadb505b6ac;hb=acb889b256303945ce8155849822c3e4d1f22d79;hp=f750caf0b20c8dbe2724089cc0e249e4c3bd5f5f;hpb=1de34ae393d0f8bf9c1fb9131765ee50449f4806;p=citadel.git diff --git a/webcit-ng/api.txt b/webcit-ng/api.txt index f750caf0b..dc5ebc00d 100644 --- a/webcit-ng/api.txt +++ b/webcit-ng/api.txt @@ -2,11 +2,13 @@ Method URI Function ------ ------------------------------ ------------------------------------- GET /ctdl/a/landing.html Site root redirects to here +GET /ctdl/r/ returns a JSON-encoded list of accessible rooms OPTIONS /ctdl/r/ROOMNAME/ returns just what you'd expect PROPFIND /ctdl/r/ROOMNAME/ Show a bunch of crap GET /ctdl/r/ROOMNAME/ Returns information about the room (name, view, etc.) in JSON format GET /ctdl/r/ROOMNAME/msgs.all JSON array of message list in room GET /ctdl/r/ROOMNAME/msgs.new JSON array of message list in room (new messages) GET /ctdl/c/info Returns a JSON representation of the output of an INFO server command -POST /ctdl/a/login +POST /ctdl/a/login Send it a your credentials and it will log you in GET /ctdl/a/whoami +GET /ctdl/u/USERNAME/userpic Returns an image containing the photo/avatar of the specified user