forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [torrust#264] Added torrent name to list and detail endpoints
The list and detail torrent endpoints now contain the torrent name: For example: { "data": { "torrent_id": 175, "uploader": "admin", "info_hash": "124f00ff15f00ae19d7b939950090cb42ab6e852", "title": "www", "description": "www", "category": { "category_id": 63, "name": "Paper", "num_torrents": 4 }, "upload_date": "2023-08-26 20:02:27", "file_size": 639140, "seeders": 0, "leechers": 0, "files": [ { "path": [ "mandelbrot_set_07" ], "length": 639140, "md5sum": null } ], "trackers": [ "udp://localhost:6969", "udp://localhost:6969" ], "magnet_link": "magnet:?xt=urn:btih:124f00ff15f00ae19d7b939950090cb42ab6e852&dn=www&tr=udp%3A%2F%2Flocalhost%3A6969&tr=udp%3A%2F%2Flocalhost%3A6969", "tags": [], "name": "mandelbrot_set_07" } } Notice the last field `name`. That field is in the table column `torrust_torrents::name`. It's going to be used in the frontend to set the name for the downloaded torrent file.
- Loading branch information
MMelchor
committed
Sep 2, 2023
1 parent
79ff3cc
commit f2369b4
Showing
4 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters