[GH-ISSUE #28] How to start/stop torrents from REST api? #24

Closed
opened 2026-02-25 20:32:12 +03:00 by kerem · 5 comments
Owner

Originally created by @iShift on GitHub (Mar 27, 2015).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/28

From web ui i can start/stop torrent, how can i do this fro api?

Originally created by @iShift on GitHub (Mar 27, 2015). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/28 From web ui i can start/stop torrent, how can i do this fro api?
kerem 2026-02-25 20:32:12 +03:00
Author
Owner

@asapach commented on GitHub (Mar 27, 2015):

Currently you can only do it using websocket api (undocumented). Any suggestions how you would expect to see it in the rest api?

<!-- gh-comment-id:87044449 --> @asapach commented on GitHub (Mar 27, 2015): Currently you can only do it using websocket api (undocumented). Any suggestions how you would expect to see it in the rest api?
Author
Owner

@iShift commented on GitHub (Mar 29, 2015):

GET /torrents/{infoHash}/action
where action is (stop, pause,start)

<!-- gh-comment-id:87482934 --> @iShift commented on GitHub (Mar 29, 2015): GET /torrents/{infoHash}/action where action is (stop, pause,start)
Author
Owner

@brunocascio commented on GitHub (Apr 30, 2015):

I think is better POST instead of GET, because you don't get nothing from server else you'll send stop/pause/play method.

<!-- gh-comment-id:97632929 --> @brunocascio commented on GitHub (Apr 30, 2015): I think is better `POST` instead of `GET`, because you don't get nothing from server else you'll send stop/pause/play method.
Author
Owner

@asapach commented on GitHub (Apr 30, 2015):

@brunocascio, I agree

<!-- gh-comment-id:97728726 --> @asapach commented on GitHub (Apr 30, 2015): @brunocascio, I agree
Author
Owner

@asapach commented on GitHub (May 2, 2015):

fixed by #30

<!-- gh-comment-id:98377353 --> @asapach commented on GitHub (May 2, 2015): fixed by #30
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#24
No description provided.