X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fapi.txt;h=f148f53c5e03fa790ff0b5f87cf0f08f2f30fd14;hb=a603728a26fcc593a57b421229b7575e29716ea4;hp=35de78ef313e60d70aebe3a495019c78762438fb;hpb=4e325d4224363a720b150bf831b1f49e775d89e4;p=citadel.git diff --git a/webcit-ng/api.txt b/webcit-ng/api.txt index 35de78ef3..f148f53c5 100644 --- a/webcit-ng/api.txt +++ b/webcit-ng/api.txt @@ -35,5 +35,14 @@ GET /ctdl/u//userpic Returns an image containing t GET /ctdl/s/ Static content (html, css, js, images...) GET /.well-known/ Static content (RFC5785 compliant paths) POST /ctdl/p Handler for uploading attachments and other file items + The JSON returned wil contain one or more uploads in an array like this: + [ + { + "uploadfilename" : "Track 01.wav", + "contenttype" : "audio/wav", + "ref" : "cdarzowkk", + "contentlength" : 56222252 + } + ] GET /ctdl/p/ Fetch a specific item that was uploaded DELETE /ctdl/p/ Delete a specific item that was uploaded