Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 732 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 732 Bytes

trolley-tracker-api

###Currently deployed on Digital Ocean

###http://104.131.44.166/

###Clojure / Postgres / Nginx

#Authentication ##Roles

Admin

  • Adds account (POST /api/v1/account)
  • Updates account (POST /api/v1/account/:id)
  • Reads account (GET /api/v1/account/:id)

Vehicle

  • Adds location (POST /api/v1/trolly/:id/location)

App

  • Reads location (GET /api/v1/trolly/:id/location)

Trolley

  • Gets status of all trollies (GET /api/v1/trollies)
  • Gets stops for a single trolley (GET /api/v1/trollies/:id/stops)

Test Credentials (basic auth)

  • brigade / brigade

##Find The Fake Trolly: curl -u brigade:brigade http://104.131.44.166/api/v1/trolly/1/location

##Coming soon:

  • websockets?