feat: Implement device-specific video uploads and generate comprehensive OpenAPI documentation.

This commit is contained in:
2025-12-21 13:10:00 +00:00
parent e18f6566e7
commit cdaab7f0c1
7 changed files with 492 additions and 2 deletions

View File

@@ -81,6 +81,16 @@ All authenticated endpoints expect a Better Auth session cookie sent by the clie
| `GET /videos` | List objects in the configured bucket |
| `DELETE /videos` | Delete an object by `objectKey` |
`POST /videos/upload-url` request body requires `fileName` and `deviceId` (UUID belonging to the authenticated user), with optional `prefix`.
### API Docs
OpenAPI docs are generated from Zod/OpenAPI definitions:
| Endpoint | Purpose |
| --- | --- |
| `GET /openapi.json` | OpenAPI 3 spec (JSON) |
| `GET /docs` | Swagger UI |
### Admin Dashboard
Access `/admin` with Basic auth to: