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
GET
/api/vehicle/repairrecords
Returns a list of repair records for the vehicle
vehicleId - Id of Vehicle
GET
/api/vehicle/upgraderecords
Returns a list of upgrade records for the vehicle
vehicleId - Id of Vehicle
GET
/api/vehicle/taxrecords
Returns a list of tax records for the vehicle
vehicleId - Id of Vehicle
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
GET
/api/vehicle/reminders
Returns a list of reminders for the vehicle
vehicleId - Id of Vehicle
@if (User.IsInRole(nameof(UserData.IsRootUser)))
{
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
POST
/api/vehicle/odometerrecords/add
Returns a list of odometer records for the vehicle
vehicleId - Id of Vehicle
Body(form-data): {
date - Date to be entered
odometer - Odometer reading
notes - notes(optional)
}