# File System

File System API

> Upload

POST {{host}}/fs/{{bucket_name}}

Headers

Authorization: Bearer {{user_token}}

Body (Multipart Form Data)

file: file_to_upload

Response 201

{
    "data": {
        "path": "{{bucket_name}}/abc12354-0753-4cdc-8952-ad0f2f31cc8d-UGxhY2Vob2xkZXJfZGVzaWdubWFtYmE=.jpg"
    }
}

Note: Bucket name works as folder.

> Serve File

GET {{host}}/fs/{{bucket_name}}/abc12354-0753-4cdc-8952-ad0f2f31cc8d-UGxhY2Vob2xkZXJfZGVzaWdubWFtYmE=.jpg

Response 200

File as binary stream