Skip to content

Commit

Permalink
fix command line
Browse files Browse the repository at this point in the history
  • Loading branch information
liut committed Nov 12, 2021
1 parent 93dbc2c commit 82107b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ Plans
```bash
curl -v -X POST \
--data-binary @debian-10.10.0-amd64-netinst.iso.torrent \
-H 'x-save-path: /tmp' http://localhost:16180/api/torrents
-H 'x-save-path: /tmp' \
http://localhost:16180/api/torrents
curl -v -X POST \
--data-raw 'magnet:?xt=urn:btih:LYJSQPMNZA4JJ6UJTNDQF4IU3SVWW43O&dn=debian-mac-10.10.0-amd64-netinst.iso&xl=351272960&tr=http%3A%2F%2Fbttracker.debian.org%3A6969%2Fannounce' \
-H 'x-magnet-link: yes' http://localhost:16180/api/torrents
-H 'x-magnet-link: yes' \
http://localhost:16180/api/torrents

```

Expand All @@ -47,12 +49,12 @@ curl -v -X POST \
curl http://localhost:16180/api/torrents | jq
```

### check a torrent exist
### check a torrent exist with infohash
```bash
curl -v -I http://localhost:16180/api/torrent/5e13283d8dc83894fa899b4702f114dcab6b736e
```

### drop a torrent
### drop a torrent (with data optional)
```bash
curl -v -X DELETE http://localhost:16180/api/torrent/5e13283d8dc83894fa899b4702f114dcab6b736e
# or
Expand Down

0 comments on commit 82107b1

Please sign in to comment.