Skip to content

Commit e2ec1bb

Browse files
committed
document GET /api/v1/downloads endpoint
1 parent 2fe8410 commit e2ec1bb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ curl -s -X POST \
2121
-d '{"torrent_id": 123}' \
2222
"http://localhost:2020/api/v1/downloads"
2323
```
24+
25+
## List Downloads
26+
27+
```bash
28+
curl -s \
29+
-H "authorization: bearer $GAZELLEUI_API_KEY" \
30+
"http://localhost:2020/api/v1/downloads?status=queued&limit=10"
31+
```
32+
33+
Query params:
34+
- `status` — optional, `queued` or `downloaded`
35+
- `limit` — optional, max 500, default 50

0 commit comments

Comments
 (0)