Fetching file data from Effis

Fetch file data from bucket

GET /<bucket>/<id>/data

Fetch the file data of the file with the provided id from the provided bucket.

Returns

The FileData object of the file with the provided id from the provided bucket.

Fetch attachment file data

GET /<id>/data

This route acts as a shorthand for GET /attachments/<id>/data, the same logic applies.

Example

curl \
  https://effis.tooty.xyz/370617076959762069670199317/data
{
  "id": "370617076959762069670199317",
  "name": "kaas",
  "bucket": "attachments",
  "spoiler": true,
  "metadata": {
    "type": "image",
    "width": 128,
    "height": 128
  }
}