Files API
Get files from a bukcet
GET https://files.freddie.pw/api/files
Headers
Name
Type
Description
Authentication
string
Authentication token
{
"path": "./files/1",
"name": "1",
"children": [
{
"path": "files\\1\\Newspaper Template.net.url",
"name": "Newspaper Template.net.url",
"size": 118,
"extension": ".url",
"type": "file"
}
],
"size": 118,
"type": "directory"
}Upload a new file
POST https://files.freddie.pw/api/files/upload
Path Parameters
Name
Type
Description
bucket
string
path
string
Path/location to store the file in the bucket
Headers
Name
Type
Description
Authentication
string
Delete a file from a bucket
DELETE https://files.freddie.pw/api/files
Path Parameters
Name
Type
Description
path
string
Path of the file to delete
bucket
string
ID of the bucket the file is in
Headers
Name
Type
Description
Authentication
string
Last updated
Was this helpful?