Repository files navigation Travel Information System
This API provides travel information for various trips and provides means to save new ride informations.
clone the repository
configure node on version v10.24.1
run command `npm start`
To test code coverage run command `npm run coverage`.
To apply git pre-push hook copy `src/git hook/pre-push` file to `.git/hooks` directory
GET /health : responds `Healthy` when API up and running.
GET /rides : response with rides data (JSON)
Query parameter :
page (Number) : default 1
size (Number) : default 10
POST /rides : response with rides data
Data format :
start_lat (Number) : Starting point of ride in latitude must be in range of [-90,90]
start_long (Number) : Starting point of ride in latitude must be in range of [-180,180]
end_lat (Number) : Ending point of ride in latitude must be in range of [-90,90]
end_long (Number) : Ending point of ride in latitude must be in range of [-180,180]
rider_name (String) : Name of the Rider should be a non empty string
driver_name (String) : Name of the Driver should be a non empty string
driver_vehicle (String) : Name of the Vehicle should be a non empty string
GET /rides/:id : responds with ride data (JSON) for the provided id (Number)
About
This web API serve ride data efficiently by using pagination along with logging to trace back changes.
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.