Skip to content

API to review travel stops within the Plannerstack environment.

Notifications You must be signed in to change notification settings

plannerstack/travel-stop-review-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Stop Review API

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)

Table of content

Prerequisites

  • virtualenv (optional)
  • docker (optional)

Installation

  • Clone this repo and move to its directory
  • Create a virualenv if you want to, or use docker-compose
  • pip install -r requirements.txt

Running

Locally

In Docker container

docker-compose up --build

Notes

  • Currently uses gevent to serve, can be switched to tornado by changing it in app.py and changing the requirements.txt

Usage

API Reference

See YAML swagger/openapi definition in /openapi directory

Examples

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' \

Version

0.0.1 • 2017-01-26

  • Initial version

Third party libraries

Tests

Found in /tests, to run:

  • python -m unittest discover

History

Build to start of the Toogethr project development.

Contributing

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

Credits

  • Jasper Hartong - Plannerstack - 2017

License

@todo:

Todo's

  • Implement the actual functions to retrieve data and set data

About

API to review travel stops within the Plannerstack environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages