upload.c: skeleton code for load_attachments_from_message()
[citadel.git] / webcit-ng / api.txt
index f148f53c5e03fa790ff0b5f87cf0f08f2f30fd14..378b5b59a252040d870726ec05ed4fce041270c9 100644 (file)
@@ -44,5 +44,7 @@ POST            /ctdl/p                            Handler for uploading attachm
                                                        "contentlength" : 56222252
                                                      }
                                                    ]
-GET             /ctdl/p/<id>                       Fetch a specific item that was uploaded
-DELETE          /ctdl/p/<id>                       Delete a specific item that was uploaded
+GET             /ctdl/p/<ref>                      Fetch a specific item that was uploaded ("ref" was returned by the upload)
+DELETE          /ctdl/p/<ref>                      Delete a specific item that was uploaded ("ref" was returned by the upload)
+GET             /ctdl/p/<msgnum>                   Load the attachments from message <msgnum> in, as if they were uploaded
+                                                   by the client.  Returns the same JSON as "POST /ctdl/p".