Skip to content

icaroseara/yellow-cab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yellow Cab

Code quality

<img src=“https://codeclimate.com/github/icaroseara/yellow-cab/badges/gpa.svg” />

Test Coverage

<img src=“https://codeclimate.com/github/icaroseara/yellow-cab/badges/coverage.svg” />

CodeShip

<img src=“https://codeship.com/projects/7eec1f00-51ed-0133-a2a6-3289b2b41ce8/status?branch=master” alt=“Status?branch=master” />

API URL

yellow-cab.herokuapp.com/api

Update current position and availability of a driver

$ curl -d '{"lat":"-23.60810717","lng":"-46.67500346","driver_id": "561af32b7c2641c235000001","available":true}' -H "Accept: application/vnd.yellow-cab-v1+json" -X POST https://yellow-cab.herokuapp.com/api/drivers

Create a driver

$ curl -d '{ "name": "Name", "car-plate": "AMO-2015"}' -H "Accept: application/vnd.yellow-cab-v1+json" -X POST https://yellow-cab.herokuapp.com/api/drivers

List of active drivers within a specific area.

$ curl -d '{ "sw": "-23.612474,-46.702746", "ne": "-23.589548,-46.673392"}' -H "Accept: application/vnd.yellow-cab-v1+json" -X GET https://yellow-cab.herokuapp.com/api/drivers

Get driver status

$ curl -H "Accept: application/vnd.yellow-cab-v1+json" -X GET https://yellow-cab.herokuapp.com/api/drivers/:id/status

About

API for Taxi Booking Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published