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.
1. Write a file
Section titled “1. Write a file”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.
2. Read the file
Section titled “2. Read the file”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.