New file user_functions.c contains skeleton code for the /ctdl/u/... calls
[citadel.git] / webcit-ng / api.txt
index f750caf0b20c8dbe2724089cc0e249e4c3bd5f5f..4621f9bec94d1d02263eceb3a64e2efc26de81a4 100644 (file)
@@ -2,6 +2,7 @@
 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
@@ -10,3 +11,4 @@ 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
 GET            /ctdl/a/whoami
+GET            /ctdl/u/USERNAME/userpic        Returns an image containing the photo/avatar of the specified user