API

Folder

GET http://baconfile.com/username/myfolder.format
Format
json, xml, rss, atom
Try it
http://baconfile.com/leah/bacon.json

File

GET http://baconfile.com/username/myfolder/myfile.format
Format
json, xml
Try it
http://baconfile.com/leah/cat.jpg.json

Recent Files

GET http://baconfile.com/public.format
Format
json, xml, rss, atom
Try it
http://baconfile.com/public.json

New Folder

POST http://baconfile.com/username.format
Auth
HTTP basic authentication
Format
json, xml, rss, atom
Params
name - the name of the new folder

New File

POST http://baconfile.com/username.format
Auth
HTTP basic authentication
Format
json, xml
Params
file - the file to upload
Notes
It's a good idea to set the Content-Type header to ensure that Baconfile gets the correct file type.

Delete File or Folder

DELETE http://baconfile.com/username/myfile.format
Auth
HTTP basic authentication
Format
json, xml

Verify Auth

GET http://baconfile.com/verify.format
Auth
HTTP basic authentication
Format
json, xml
Notes
Use this method to check if the user is properly logged in.