-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTransmissionManager.Api.http
64 lines (45 loc) · 1.48 KB
/
TransmissionManager.Api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@TransmissionManager_Web_HostAddress = http://localhost:9092/api/v1/torrents
# Get a page of torrents
GET {{TransmissionManager_Web_HostAddress}}/
###
# Get a page of 5 torrents ordered by Name, which have cron specified
# and name, download dir, web page uri or hash string start with "Mi"
GET {{TransmissionManager_Web_HostAddress}}/?orderBy=Name&take=5&propertyStartsWith=Mi&cronExists=True
###
# Get one torrent by id
GET {{TransmissionManager_Web_HostAddress}}/1
###
# Add a torrent by web page uri
# Do not provide cron if you don't want the torrent to be automatically updated
# Do not provide magnetRegexPattern to use a global one
POST {{TransmissionManager_Web_HostAddress}}/
Content-Type: application/json
{
"webPageUri": "https://nnmclub.to/forum/viewtopic.php?t=206418",
"downloadDir": "/videos",
"cron": "0 11,17 * * *"
}
###
# Refresh a torrent by id
POST {{TransmissionManager_Web_HostAddress}}/1
Content-Type: application/json
###
# Update existing torrent's cron and magnet-finding regex
PATCH {{TransmissionManager_Web_HostAddress}}/1
Content-Type: application/json
{
"magnetRegexPattern": "magnet:\\?xt=urn:[^\"]+",
"cron": "0 10,16 * * *"
}
###
# Clear existing torrent's cron and magnet-finding regex using empty strings
PATCH {{TransmissionManager_Web_HostAddress}}/1
Content-Type: application/json
{
"magnetRegexPattern": "",
"cron": ""
}
###
# Remove a torrent from Transmission Manager by id
DELETE {{TransmissionManager_Web_HostAddress}}/1
###