Skip to content

nrxus/safebus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safebus API

REST API to get bus and crime information in Seattle

The API (in theory) runs in PCF at https://safebus.cfapps.io/.

The two available endpoints are:

Crime Data is obtained from the Seattle Crime Data API. Bus Data is obtained from the One Bus Away API.

NOTE: the crime data API has not been updated since May, 2019. It will supposedly start getting updates again in Fall 2019 sometime. Until then, no crime data will show up.

Development

Assuming you have installed Rust and Cargo using rustup you should be able to use the expected commands for local development

  • cargo run. Opens a port on localhost:8000
  • cargo test. Runs the unit tests

With the notable addition of cargo integration-test which will run a simple test that actually hits the underlying APIs and expects a succesful response.

Note that to run this you will need to set the following environment variables:

  • SEATTLE_API_KEY
  • ONEBUSAWAY_API_KEY

About

API to get crime in Seattle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages