API
Where the OpenAPI spec lives, how to sign in with a token and the main route groups.
The spec
The spec is apps/api/openapi.json. A running API serves it at /openapi.json. The API returns ids, not filesystem paths.
Sign in
POST /auth/login returns a token. Send it as a bearer token on every request. The worker uses DRIVE_WORKER_TOKEN the same way.
curl -s http://localhost:8080/auth/login \
-H 'Content-Type: application/json' \
-d '{"identifier":"you@example.com","password":"your-password"}'
Main routes
| Group | Routes |
|---|---|
| Documents | /documents, /documents/{document-id} |
| Folders and tags | /folders, /tags |
| Search | /search |
| Uploads | /uploads |
| Trash | /trash |
| Queue | /queue |
| Account | /me, /auth/session |