2 ------ ------------------------------ -------------------------------------
3 GET / Site root will redirect to a landing page
4 GET /ctdl/f/ returns a JSON-encoded list of accessible floors
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>/info.txt Returns the room info banner for this room
10 GET /ctdl/r/<roomname>/msgs.all JSON array of message list in room
11 GET /ctdl/r/<roomname>/msgs.new JSON array of message list in room (new messages)
12 GET /ctdl/r/<roomname>/mailbox JSON dictionary of a mailbox summary in this room
13 GET /ctdl/r/<roomname>/stat JSON dictionary of the server STAT command (room name and modification time)
14 GET /ctdl/r/<roomname>/<msgnum> Retrieve the content of an individual message
15 GET /ctdl/r/<roomname>/<msgnum>/json Retrieve an individual message in a room, encapsulated in JSON
16 GET /ctdl/r/<roomname>/<msgnum>/<part> Retrieve a MIME component of a message, specified by partnum
17 DELETE /ctdl/r/<roomname>/<msgnum> Deletes a message from a room
18 MOVE /ctdl/r/<roomname>/<msgnum> Moves a message to another room (requires Destination)
20 PUT /ctdl/r/<roomname>/<xxx> DAV operation to insert a new message into a room
22 wefw List of message references
24 The returned ETag will be the new message number.
26 GET /ctdl/r/<roomname>/slrp Set the "Last Read Pointer" for the room
28 last The number of the most recently seen message
30 GET /ctdl/c/info Returns a JSON representation of the output of an INFO server command
31 POST /ctdl/a/login Send it a your credentials and it will log you in
33 GET /ctdl/a/biff Check for new mail
34 GET /ctdl/u/<username>/userpic Returns an image containing the photo/avatar of the specified user
35 GET /ctdl/s/ Static content (html, css, js, images...)
36 GET /.well-known/ Static content (RFC5785 compliant paths)
37 POST /ctdl/p Handler for uploading attachments and other file items
38 GET /ctdl/p/<id> Fetch a specific item that was uploaded
39 DELETE /ctdl/p/<id> Delete a specific item that was uploaded