{{define "api-endpoints"}}

📋 API endpoints

POST/upload

Description: Upload a file

cURL example:

curl -X POST -F "file=@/path/to/your/file.txt" {{.BaseURL}}/upload

GET/uploads/{fileID}/{filename}

Description: Download a file using the ID and filename from upload response

cURL example:

curl -O {{.BaseURL}}/uploads/{fileID}/{filename}

GET/storage

Description: Check storage usage and capacity

cURL example:

curl {{.BaseURL}}/storage

GET/health

Description: Check service health

cURL example:

curl {{.BaseURL}}/health
{{end}}