You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/src/api.md
+12-27
Original file line number
Diff line number
Diff line change
@@ -9,31 +9,16 @@ APIs should not be exposed directly to the internet, they are intended for inter
9
9
10
10
All Endpoints require a authorization token which must be set in the configuration before running the tracker.
11
11
12
-
- Listing Torrents
13
-
14
-
This can be useful if you want to see which torrents are currently registered in any of the tracking modes.
15
-
16
-
`GET /t?offset=0&limit=1000&token=... HTTP/1.0`
17
-
18
-
Optional Parameters:
19
-
-`offset` - Offset of the torrent list to return. Default: 0.
20
-
-`limit` - Limit of torrents to output. Between 1 and 4096. Default 1000.
21
-
22
-
- Getting a torrent's stats
12
+
| Method | Route | Description |
13
+
| -- | -- | -- |
14
+
|`GET`| /t | list all tracked torrents. Possible query parameters are: <br /> _offset_ - The offset in the db where to start listing torrents from.<br />_limit_ - Maximum amount of records to retrieve (max. 1000). |
15
+
|`GET`| /t/_infohash_| get information about a specific torrent: connected peers & stats |
16
+
|`DELETE`| /t/_infohash_| drop a torrent from the database. |
17
+
|`POST`| /t/_infohash_| add/flag/unflag torrent |
23
18
24
-
Allows collection of stats from active torrents.
25
-
26
-
`GET /t/<info_hash>?token=... HTTP/1.0`
27
-
28
-
This request will return information about the torrent, such as:
This server is running <a style="font-weight: bold; font-size: large" href="https://github.com/naim94a/udpt"><code>udpt</code></a>, a <a href="https://en.wikipedia.org/wiki/BitTorrent_tracker" rel="nofollow" target="_blank">BitTorrent tracker</a> based on the <a href="https://en.wikipedia.org/wiki/User_Datagram_Protocol" rel="nofollow" target="_blank">UDP</a> protocol.
0 commit comments