Who let the dogs out is an REST API that returns soccer matches from supported Leagues.
- Brasileirão Serie A
- Brasileirão Serie B
- Brasileirão Serie C
- Brasileirão Serie D
- Copa do Brasil
- Taça Libertadores
- Copa do Nordeste
- Copa do Mundo
- Copa do Sulamericana
- Champions League
-
GET /api/matches
Returns the list of matches that will occur in the interval passed in the query params.
If no query is passed, returns the matches of the actual day.-
Query Params:
startDate=[Date]
Beginning of the date interval (included).
endtDate=[Date]
End of the date interval (not included).Example: /api/matches?startDate=2018-05-12&endDate=2018-12-22
-
-
POST /api/matches
Updates all Matches collection with scrapped Matches id DB.
Requires a token to be passed in the request body.
Install yarn:
npm install -g yarn
# you may need sudo for this
Install dependencies:
yarn
Set environment (vars):
get .env file on #dev channel of our slack.
Start server:
# Start server
yarn start
# service restarts on file change
bash bin/development.sh