i96751414 / torrest-cpp

c++ implementation of torrest - a torrent streaming engine with a REST api
MIT License
14 stars 2 forks source link

documentation #2

Closed omgbox closed 1 year ago

omgbox commented 1 year ago

found it under http://localhost:8080/swagger/ui

how would i invoke streaming automatically through the rest api, http://localhost:8080/stream?magnet=magnetLink or Hash

how to open this automatically through the command line or terminal directly to mpv or vlc

i96751414 commented 1 year ago

Hi. You have all the API reference under swagger and also in docs: https://github.com/i96751414/torrest-cpp/blob/master/docs/rest-api.md

The endpoint you are trying to call (http://localhost:8080/stream?magnet=magnetLink) does not exist. You have to:

  1. Add the magnet (POST /add/magnet)
  2. Start the download of the file you want (PUT /torrents/{infoHash}/files/{file}/download)
  3. Serve the file in vlc or any other player (GET /torrents/{infoHash}/files/{file}/serve)
omgbox commented 1 year ago

Hi. You have all the API reference under swagger and also in docs: https://github.com/i96751414/torrest-cpp/blob/master/docs/rest-api.md

The endpoint you are trying to call (http://localhost:8080/stream?magnet=magnetLink) does not exist. You have to:

  1. Add the magnet (POST /add/magnet)
  2. Start the download of the file you want (PUT /torrents/{infoHash}/files/{file}/download)
  3. Serve the file in vlc or any other player (GET /torrents/{infoHash}/files/{file}/serve)

thank you