fix: unregister — rename request/response uuid → file_uuid
This commit is contained in:
@@ -61,7 +61,7 @@ Every path segment after the resource ID is a **verb** — an action on that res
|
||||
| 6 | GET | `/api/v1/stats/sftpgo` | SFTPGo service status |
|
||||
| 7 | GET | `/api/v1/stats/inference` | LLM/embedding health |
|
||||
| 8 | POST | `/api/v1/files/register` | Register video file → file_uuid |
|
||||
| 9 | POST | `/api/v1/unregister` | Unregister file(s): by `uuid` or pattern match on `file_path`+`pattern` |
|
||||
| 9 | POST | `/api/v1/unregister` | Unregister file(s): by `file_uuid` or pattern match on `file_path`+`pattern` |
|
||||
| 10 | GET | `/api/v1/files/scan` | Scan directory for new files |
|
||||
| 11 | GET | `/api/v1/file/:file_uuid/probe` | ffprobe metadata |
|
||||
| 12 | POST | `/api/v1/file/:file_uuid/process` | Start processing pipeline |
|
||||
|
||||
@@ -118,10 +118,10 @@ Modes:
|
||||
- By `file_path` + `pattern` regex: unregister all matching files in a directory
|
||||
|
||||
```bash
|
||||
# By UUID
|
||||
# By file_uuid
|
||||
curl -X POST http://localhost:3002/api/v1/unregister \
|
||||
-H "X-API-Key: muser_..." -H "Content-Type: application/json" \
|
||||
-d '{"uuid":"53e3a229bf68878b7a799e811e097f9c"}'
|
||||
-d '{"file_uuid":"53e3a229bf68878b7a799e811e097f9c"}'
|
||||
|
||||
# By pattern (unregister all .mp4 files in directory)
|
||||
curl -X POST http://localhost:3002/api/v1/unregister \
|
||||
@@ -129,7 +129,7 @@ curl -X POST http://localhost:3002/api/v1/unregister \
|
||||
-d '{"file_path":"/data/demo","pattern":"\\.mp4$"}'
|
||||
```
|
||||
```json
|
||||
{"success":true,"uuid":"53e3a229bf68878b7a799e811e097f9c","message":"File unregistered successfully"}
|
||||
{"success":true,"file_uuid":"53e3a229bf68878b7a799e811e097f9c","message":"File unregistered successfully"}
|
||||
```
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user