Extract and make sense of Montreal open data. This small project is really just used for educational purpose
For the moment, we only provide information about trees as given by the montreal open data service.
Unit tests and linting:
toxequivalent to
tox -e py37
tox -e flake8Launching these commands should bring up your environment.
docker-compose build
docker-compose upThe API is versioned so every useful endpoint starts with "/<version>/"
Providing a list of 'cities' and the 'species' available in the area.
0.0.0.0:8084/v1/treesProviding a list of 'cities'.
0.0.0.0:8084/v1/citiesProviding a list of trees (all 'species' included) in this 'city'
0.0.0.0:8084/v1/cities/<city>/treesWARNING: It can take some time to get a response from that query
Providing a list of 'species' in this 'city'
0.0.0.0:8084/v1/cities/<city>/trees/speciesProviding a list of trees for the provided 'species' in this 'city'
0.0.0.0:8084/v1/cities/<city>/trees/species/<species>Providing a Google map locating all of the trees for the provided 'species' in this 'city'
0.0.0.0:8084/v1/cities/<city>/trees/species/<species>/map