Skip to content

Filesystem quickstart

Wabe stores files and directories on each disk. Access them over HTTP, through the shell, or with the JavaScript fs API.

Create the demo disk and a project API key in the quickstart. Use the key in both requests.

Terminal window
curl --fail-with-body -X PUT "https://api.wabe.sh/v1/disks/demo/files/notes.txt" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--data-binary 'Hello'

The response reports five bytes and the file metadata. PUT replaces the entire file.

Terminal window
curl --fail-with-body "https://api.wabe.sh/v1/disks/demo/files/notes.txt" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY"

The response body is Hello.

See the file HTTP API, directory HTTP API and JavaScript API.