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`
- GET /health : responds `Healthy` when API up and running.
- GET /rides : response with rides data (JSON)
- page (Number) : default 1
- size (Number) : default 10
- POST /rides : response with rides data
- 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)
- Query parameter :
- Data format :