Examples
Upload An Object
curl -X POST \
--data-binary @./sample.txt \
-H "Content-Type: text/plain" \
http://localhost:8080/upload/my-bucket/docs/sample.txt
Create A Presigned Download URL
curl http://localhost:8080/presign/my-bucket/docs/sample.txt
Example response:
{"url":"/download/my-bucket/docs/sample.txt?expires=...&signature=..."}
Download The Latest Version
curl "http://localhost:8080/download/my-bucket/docs/sample.txt?expires=...&signature=..."
Inspect Replication Progress
SELECT id, status, attempt_count, next_run_at, last_error
FROM replication_jobs
ORDER BY id DESC
LIMIT 20;
Invalid Object Path
curl -X POST \
--data-binary @./sample.txt \
http://localhost:8080/upload/my-bucket/docs/../../secret.txt
Expected result:
400 Bad Request