feat: api docs

This commit is contained in:
hexlocation 2025-06-21 19:47:14 +02:00
parent 3b02f4931e
commit 59503b5604

12
api.md Normal file
View file

@ -0,0 +1,12 @@
## API Documentation
| Method | Endpoint | Description | Authentication |
|--------|----------------|-------------------------------|----------------|
| GET | /api/callback | Called by discord oAuth2 | Discord Code |
| GET | /api/login | Redirect to Discord oAuth URI | None |
| GET | /api/auth/key | Generate an upload key | Session key |
| PUT | /api/auth/me | Retrieve user object | Session key |
| POST | /api/upload | Upload file | Upload key |
| DELETE | /api/:id | Delete file | Upload key |
| GET | /api/:id | Get file | Upload key |
| GET | /api/list | Get a list of uploaded files | Session key |