{"action":"created","issue":{"url":"https://api.github.com/repos/asapach/peerflix-server/issues/5","labels_url":"https://api.github.com/repos/asapach/peerflix-server/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/asapach/peerflix-server/issues/5/comments","events_url":"https://api.github.com/repos/asapach/peerflix-server/issues/5/events","html_url":"https://github.com/asapach/peerflix-server/pull/5","id":33553903,"number":5,"title":"Add select/deselect methods to the REST api","user":{"login":"rata","id":70861,"avatar_url":"https://avatars.githubusercontent.com/u/70861?v=3","gravatar_id":"","url":"https://api.github.com/users/rata","html_url":"https://github.com/rata","followers_url":"https://api.github.com/users/rata/followers","following_url":"https://api.github.com/users/rata/following{/other_user}","gists_url":"https://api.github.com/users/rata/gists{/gist_id}","starred_url":"https://api.github.com/users/rata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rata/subscriptions","organizations_url":"https://api.github.com/users/rata/orgs","repos_url":"https://api.github.com/users/rata/repos","events_url":"https://api.github.com/users/rata/events{/privacy}","received_events_url":"https://api.github.com/users/rata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-05-15T04:08:50Z","updated_at":"2015-05-03T15:32:35Z","closed_at":"2015-05-02T16:46:44Z","pull_request":{"url":"https://api.github.com/repos/asapach/peerflix-server/pulls/5","html_url":"https://github.com/asapach/peerflix-server/pull/5","diff_url":"https://github.com/asapach/peerflix-server/pull/5.diff","patch_url":"https://github.com/asapach/peerflix-server/pull/5.patch"},"body":"This methods enables to start/stop downloading a file from a torrent through the\r\nREST api.\r\n\r\nIt's my first time using javascript, node et all. So please sorry in advance if this is not really the style. In particular, I was unsure about the console.log I added, as it's never used in the server/index.js file.\r\n\r\nPlease let me know what should I change or feel free to change it yourself :-)\r\n\r\n\r\n\r\nThanks!\r\nRodrigo"},"comment":{"url":"https://api.github.com/repos/asapach/peerflix-server/issues/comments/98495899","html_url":"https://github.com/asapach/peerflix-server/pull/5#issuecomment-98495899","issue_url":"https://api.github.com/repos/asapach/peerflix-server/issues/5","id":98495899,"user":{"login":"asapach","id":1755336,"avatar_url":"https://avatars.githubusercontent.com/u/1755336?v=3","gravatar_id":"","url":"https://api.github.com/users/asapach","html_url":"https://github.com/asapach","followers_url":"https://api.github.com/users/asapach/followers","following_url":"https://api.github.com/users/asapach/following{/other_user}","gists_url":"https://api.github.com/users/asapach/gists{/gist_id}","starred_url":"https://api.github.com/users/asapach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asapach/subscriptions","organizations_url":"https://api.github.com/users/asapach/orgs","repos_url":"https://api.github.com/users/asapach/repos","events_url":"https://api.github.com/users/asapach/events{/privacy}","received_events_url":"https://api.github.com/users/asapach/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T15:32:35Z","updated_at":"2015-05-03T15:32:35Z","body":"https://github.com/asapach/peerflix-server/blob/master/REST.md\r\nThe API response now contains a `selected` boolean property for each file and you can select/deselect files by using the following API:\r\n`POST /torrents/{infoHash}/start/{index}`\r\n`POST /torrents/{infoHash}/stop/{index}`"}}