API call | Request structure | Response structure | Request description |
---|
postTransaction | { "asset_type": "user", "name": "Siva", "role": "DMV", "id_no": "ID123XA", "email" : "siva@gmail.com", "password" : "0123", "timestamp" : "111" } |
{ id } |
Register a new user |
getUserTransaction | { userEmail: "siva@gmail.com" userPwd: “0123” } |
{ userName userRole idNo password } |
User login and display user profile |
getAllUserTransactions | {} | { userName userRole idNo password } |
List all user profiles |
updateUserTransaction | { "asset_type": "user", "name": "Siva", "role": "DMV", "id_no": "ID123XA", "email" : "siva@gmail.com", "password" : "01234567", "timestamp" : "120" } |
{ userName userRole idNo password } |
Update a user profile |
postTransaction | {
"asset_type": "car", "chassisNo": "SV30-0169266", "engineNo": "PJ12345U123456P", "manufacturer": "PORSCHE", "manufacturingDate": "12-08-2021", "numberPlate": "ABC123", "registerDate": "15-08-2021", "ownerHistory": [{"owner_name":"John Doe", "ownership_start_date": "01-01-2021”, "ownershipEndDate":"10-08-2021"}], "drivingLicense": "DL123456", "color": "Blue", "seating": "5", "transmission": "Automatic", "wheelBase": "2.80 meters", "groundClearance": "150 mm", "driveType": "Front-wheel drive", "fuelType": "Petrol", "class": "Sedan", "model": "911", "insuranceNo": "INS553201", "insuranceProvider": "ABC Insurance", "policyEndDate": "15-08-2022", "insuranceHistory": [{"date":"12-10-2021", "cost":"3000", "description":"The car is involved in an accident at the intersection of Street A and Street B. There are visible dents and scratches on the front side."}], "mileage": "10 km/l", "odometerReading": "5000 km", "servicingHistory": [ { "serviceCenter": "AutoCare Service Center", "serviceDate": "01-09-2022", "serviceDescription": "Oil change, filter replacement" }], "timestamp": "1112" } |
{ id } |
Registration of a new car |
getCarTransaction | { numberPlate: "ABC123" } |
{ chassisNo engineNo manufacturer manufacturingDate numberPlate registerDate ownerHistory { ownerName ownershipStartDate ownershipEndDate } drivingLicense color seating transmission wheelBase groundClearance driveType fuelType carClass model insuranceNo insuranceProvider policyEndDate insuranceHistory { date cost description } mileage odometerReading servicingHistory { serviceCenter serviceDate serviceDescription } } |
Retrieves particular car details based on number plate number of the carn |
getAllCarTransactions | {} | { chassisNo engineNo manufacturer manufacturingDate numberPlate registerDate ownerHistory { ownerName ownershipStartDate ownershipEndDate } drivingLicense color seating transmission wheelBase groundClearance driveType fuelType carClass model insuranceNo insuranceProvider policyEndDate insuranceHistory { date cost description } mileage odometerReading servicingHistory { serviceCenter serviceDate serviceDescription } } |
Retrieves all cars’ records |
updateCarTransaction | { "asset_type": "car", "chassisNo": "SV30-0169266", "engineNo": "PJ12345U123456P", "manufacturer": "PORSCHE", "manufacturingDate": "12-08-2021", "numberPlate": "ABC123", "registerDate": "15-08-2021", "ownerHistory": [ { "owner_name":"John Doe", "ownership_start_date": "01-01-2021”, "ownershipEndDate":"10-08-2021"}], "drivingLicense": "DL123456", "color": "Blue", "seating": "5", "transmission": "Automatic", "wheelBase": "2.80 meters", "groundClearance": "150 mm", "driveType": "Front-wheel drive", "fuelType": "Petrol", "class": "Sedan", "model": "911", "insuranceNo": "INS553201", "insuranceProvider": "ABC Insurance", "policyEndDate": "15-08-2022", "insuranceHistory": [ {"date":"12-10-2021", "cost":"3000", "description":"The car is involved in an accident at the intersection of Street A and Street B. There are visible dents and scratches on the front side." } ], "mileage": "10 km/l", "odometerReading": "5000 km", "servicingHistory": [ { "serviceCenter": "AutoCare Service Center", "serviceDate": "01-09-2022", "serviceDescription": "Oil change, filter replacement" } ], "timestamp": "1112" } |
{ chassisNo engineNo manufacturer manufacturingDate numberPlate registerDate ownerHistory { ownerName ownershipStartDate ownershipEndDate } drivingLicense color seating transmission wheelBase groundClearance driveType fuelType carClass model insuranceNo insuranceProvider policyEndDate insuranceHistory { date cost description } mileage odometerReading servicingHistory { serviceCenter serviceDate serviceDescription } } |
Updates a particular car’s records |