Wow! Posting a message to the server worked on the first try, even using the existin...
[citadel.git] / webcit-ng / api.txt
1
2 Method          URI                             Function
3 ------          ------------------------------  -------------------------------------
4 GET             /ctdl/a/landing.html            Site root redirects to here
5 GET             /ctdl/r/                        returns a JSON-encoded list of accessible rooms
6 OPTIONS         /ctdl/r/ROOMNAME/               returns just what you'd expect
7 PROPFIND        /ctdl/r/ROOMNAME/               Show a bunch of crap
8 GET             /ctdl/r/ROOMNAME/               Returns information about the room (name, view, etc.) in JSON format
9 GET             /ctdl/r/ROOMNAME/msgs.all       JSON array of message list in room
10 GET             /ctdl/r/ROOMNAME/msgs.new       JSON array of message list in room (new messages)
11 GET             /ctdl/r/ROOMNAME/MSGNUM         Retrieve the content of an individual message (message headers are HTTP headers)
12 PUT             /ctdl/r/ROOMNAME/xxx            DAV operation to insert a new message into a room
13 GET             /ctdl/r/ROOMNAME/MSGNUM/json    Retrieve an individual message in a room, encapsulated in JSON
14 GET             /ctdl/c/info                    Returns a JSON representation of the output of an INFO server command
15 POST            /ctdl/a/login                   Send it a your credentials and it will log you in
16 GET             /ctdl/a/whoami
17 GET             /ctdl/u/USERNAME/userpic        Returns an image containing the photo/avatar of the specified user