Examples
This covers basic usage examples for the backend using curl.
curl -sS -X POST \
-H "Authorization: Bearer $MASTER" \
-d "username=testuser" \
"$HOST/create_user"
curl -sS -X POST \
-H "Authorization: Bearer $USER_TOKEN" \
-F "file=@./example.txt" \
"$HOST/upload"
curl -sS -X POST \
-H "Authorization: Bearer $USER_TOKEN" \
-F "file=@./example.txt" \
"$HOST/upload?expires=7d"
curl -sS \
-H "Authorization: Bearer $USER_TOKEN" \
"$HOST/uploaded"
curl -sS "$HOST/f/0ca93f6b7707754b/example.txt"
curl -sS \
-H "Authorization: Bearer $USER_TOKEN" \
"$HOST/delete/0ca93f6b7707754b/example.txt"