Add API to Readme.

This commit is contained in:
Dessalines 2019-02-12 16:39:31 -08:00
parent cf037c58e0
commit 2bd37c53bf
1 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,12 @@ cd torrents.csv/scripts
./update.sh SAVE_TORRENT_DIR
```
## API
A JSON output of search results is available at:
http://localhost:8080/service/search?q=[QUERY]&size=[NUMBER_OF_RESULTS]&offset=[PAGE]
## How the torrents.csv file looks
```sh