@{ ViewData["Title"] = "LubeLogger API"; }
API

If authentication is enabled, use the credentials of the user for Basic Auth(RFC2617)


Method
Endpoint
Description
Parameters
GET
/api/vehicles
Returns a list of vehicles
No Params
GET
/api/vehicle/servicerecords
Returns a list of service records for the vehicle
vehicleId - Id of Vehicle
POST
/api/vehicle/servicerecords/add
Adds Service Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
odometer - Odometer reading
description - Description
cost - Cost
notes - notes(optional)
}
GET
/api/vehicle/repairrecords
Returns a list of repair records for the vehicle
vehicleId - Id of Vehicle
POST
/api/vehicle/repairrecords/add
Adds Repair Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
odometer - Odometer reading
description - Description
cost - Cost
notes - notes(optional)
}
GET
/api/vehicle/upgraderecords
Returns a list of upgrade records for the vehicle
vehicleId - Id of Vehicle
POST
/api/vehicle/upgraderecords/add
Adds Upgrade Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
odometer - Odometer reading
description - Description
cost - Cost
notes - notes(optional)
}
GET
/api/vehicle/taxrecords
Returns a list of tax records for the vehicle
vehicleId - Id of Vehicle
POST
/api/vehicle/taxrecords/add
Adds Tax Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
description - Description
cost - Cost
notes - notes(optional)
}
GET
/api/vehicle/gasrecords
Returns a list of gas records for the vehicle
vehicleId - Id of Vehicle
useMPG(bool) - Use Imperial Units and Calculation
useUKMPG(bool) - Use UK Imperial Calculation
POST
/api/vehicle/gasrecords/add
Adds Gas Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
odometer - Odometer reading
fuelConsumed - Fuel Consumed
cost - Cost
isFillToFull(bool) - Filled To Full
missedFuelUp(bool) - Missed Fuel Up
notes - notes(optional)
}
GET
/api/vehicle/reminders
Returns a list of reminders for the vehicle
vehicleId - Id of Vehicle
@if (User.IsInRole(nameof(UserData.IsRootUser))) {
GET
/api/vehicle/reminders/send
Send reminder emails out to collaborators based on specified urgency.
(must be root user)
urgencies[]=[NotUrgent,Urgent,VeryUrgent,PastDue]
GET
/api/makebackup
Creates a snapshot/backup of the DB at the time and returns a URL to download it.
No Params(must be root user)
}
GET
/api/vehicle/odometerrecords
Returns a list of odometer records for the vehicle
vehicleId - Id of Vehicle
GET
/api/vehicle/odometerrecords/latest
Returns last reported odometer for the vehicle
vehicleId - Id of Vehicle
POST
/api/vehicle/odometerrecords/add
Adds Odometer Record to the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
initialOdometer - Initial Odometer reading(optional)
odometer - Odometer reading
notes - notes(optional)
}