An API to review travel stops within the Plannerstack environment.
- Retrieves Travel stops from different sources allowing them to be compared
- Possible to update a TravelStop by ID (will be saved in a specific Database)
- Prerequisites
- Installation
- Running
- Usage
- Version
- Third party libraries
- Tests
- History
- Contributing
- Credits
- License
- Todo's
- virtualenv (optional)
- docker (optional)
- Clone this repo and move to its directory
- Create a virualenv if you want to, or use docker-compose
pip install -r requirements.txt
python app.py- visit: http://0.0.0.0:8888/api/v1/ui/
docker-compose up --build
- Currently uses
geventto serve, can be switched totornadoby changing it inapp.pyand changing the requirements.txt
- Swagger UI: http://0.0.0.0:8888/api/v1/ui/
- Raw Swagger 2.0 JSON: http://0.0.0.0:8888/api/v1/swagger.json
- API: http://0.0.0.0:8888/api/v1
See YAML swagger/openapi definition in /openapi directory
curl --request GET \
--url 'http://0.0.0.0:8888/api/v1/travel-stops?bbox=37.7902858,-122.4027371;37.7890649,-122.3993039' \
--header 'accept: application/json' \
- Initial version
- connexion: automagically handles HTTP requests based on OpenAPI 2.0 Specification of an API
Found in /tests, to run:
python -m unittest discover
Build to start of the Toogethr project development.
Make sure to use pull requests when extending this API
# Before starting to touch code
git checkout -b feature/unicorn
# Make nice atomic commits
git commit
# Push back
git push -u origin feature/unicorn
- Jasper Hartong - Plannerstack - 2017
@todo:
- Implement the actual functions to retrieve data and set data