Endpoints
Buckets, objetos, subidas, URLs firmadas, políticas y llaves S3.
Buckets
| Método y ruta | Hace |
|---|---|
GET /bucket | Lista los buckets |
POST /bucket | { id, public?, maxFileSize?, allowedTypes?, scan?, cacheControl?, storage? } |
GET /bucket/{id}, PATCH /bucket/{id}, DELETE /bucket/{id} | Leer, cambiar, borrar (solo vacío, o con ?empty=true) |
Objetos
| Método y ruta | Hace |
|---|---|
POST /object/{bucket}/{path} | Subir (x-upsert: true para reemplazar) |
GET /object/{bucket}/{path} | Descargar como el usuario (aplican las políticas) |
HEAD /object/{bucket}/{path} | Solo los metadatos |
POST /object/list/{bucket} | { prefix, limit, offset, sortBy, search } |
POST /object/move, POST /object/copy | { bucket, from, to } |
DELETE /object/{bucket} | { paths: [...] } |
PATCH /object/{bucket}/{path}/metadata | Cambiar tus metadatos |
Subidas y URLs firmadas
| Método y ruta | Hace |
|---|---|
POST /upload/resumable | Empezar una subida tus (luego PATCH a su ubicación) |
POST /object/sign/{bucket}/{path} | { expiresIn, transform?, download? } → URL firmada de descarga |
POST /object/upload/sign/{bucket}/{path} | { expiresIn } → URL firmada de subida y su token |
GET /object/public/{bucket}/{path} en el host de contenido | Descarga pública, con opciones de transformación |
Políticas, llaves y S3
| Método y ruta | Hace |
|---|---|
GET /policies, POST /policies, DELETE /policies/{name} | Políticas de sypnia_files.objects (llave secreta) |
POST /s3-keys, GET /s3-keys, DELETE /s3-keys/{id} | Llaves de acceso S3 |
/s3/... | La API compatible con S3 |
El documento OpenAPI está en el repositorio del motor, en spec/openapi.yaml.