Provides multiple API endpoints
Provides multiple API end points. Try it out @ http://vehicletracker.us-east-1.elasticbeanstalk.com/swagger-ui.html
PUT /vehicles
Vehicle details, POST /readings
, GET
, UPDATE
, DELETE
records.GET
all alerts generated for a vehicle and GET
recent high alerts of a vehicleRun the application using the commands in rest.sh
.
PUT /vehicles
JSON Input format:
[
{
"vin": "1HGCR2F3XFA027534",
"make": "HONDA",
"model": "ACCORD",
"year": 2015,
"redlineRpm": 5500,
"maxFuelVolume": 15,
"lastServiceDate": "2017-05-25T17:31:25.268Z"
},
{
"vin": "WP1AB29P63LA60179",
"make": "PORSCHE",
"model": "CAYENNE",
"year": 2015,
"redlineRpm": 8000,
"maxFuelVolume": 18,
"lastServiceDate": "2017-03-25T17:31:25.268Z"
}
]
POST /readings
JSON Input format:
{
"vin": "1HGCR2F3XFA027534",
"latitude": 41.803194,
"longitude": -88.144406,
"timestamp": "2017-05-25T17:31:25.268Z",
"fuelVolume": 1.5,
"speed": 85,
"engineHp": 240,
"checkEngineLightOn": false,
"engineCoolantLow": true,
"cruiseControlOn": true,
"engineRpm": 6300,
"tires": {
"frontLeft": 34,
"frontRight": 36,
"rearLeft": 29,
"rearRight": 34
}
}