kekupload-server

A backend providing a HTTP REST like interface for uploading files written in rust.

View on GitHub

KekUpload API


GET ~/d/{id}

Download an uploaded file. See workflow for more information.

Params

id The id which you get from the finish route. See workflow for more information.


Request

cURL
curl --request POST \
    --data ""
    --url ~/d/{id}


Responses

200 - Ok Returns the actual file content.


404 - Not Found
{
    "generic": "NOT_FOUND",
    "field": "ID",
    "error": "File with id not found"
}


500 - Internal Server Error
{
    "generic": "FS_OPEN",
    "field": "FILE",
    "error": "Error while opening file: {error}"
}
{
    "generic": "DB_QUERY",
    "field": "QUERY",
    "error": "Error while selecting files: {error}"
}