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:
tox
equivalent to
tox -e py37
tox -e flake8
Launching these commands should bring up your environment.
docker-compose build
docker-compose up
The 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/trees
Providing a list of 'cities'.
0.0.0.0:8084/v1/cities
Providing a list of trees (all 'species' included) in this 'city'
0.0.0.0:8084/v1/cities/<city>/trees
WARNING: 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/species
Providing 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