Vehicle API Group

List

Get list of vehicles from database.

GET


http://api2.carmd.com/v2.0/Vehicles

"Message": {
"Code": 0,
"Message": "Get list of vehicle successfully."
},
:Data":{
"CurrentPage": 1,
"PageCount": 1,
"Count": 1,
""Items"": {
""Id"": ""541655333c10813ac8a0f766"",
""FleetId"": ""541655173c10813ac8a0f763"",
""Vin"": ""JTHBD192530073035"",
""DongleId"": null,
""Year"": 2003,
""Make"": ""LEXUS"",
""Model"": ""IS"",
""Engine"": ""D"",
""Mileage"": 5000,
""Unit"": null,
""NickName"": ""2003 LEXUS IS"",
""Tag"": null,
""Active"": true
}
}

Add

Adds an vehicle to database.

POST


http://api2.carmd.com/v2.0/vehicles
{
"CompanyId": "537c1d7f3c1081e3981b21e0",
"FleetId": "541655173c10813ac8a0f763",
"VIN": "1FTRW08L83KA45961"
}

"{
""Message"": {
""Code"": 0,
""Message"": ""The vehicle has been created successfully.""
},
""Data"": {
""Id"": ""541655333c10813ac8a0f766"",
""FleetId"": ""541655173c10813ac8a0f763"",
""Vin"": ""JTHBD192530073035"",
""DongleId"": null,
""Year"": 2003,
""Make"": ""LEXUS"",
""Model"": ""IS"",
""Engine"": ""D"",
""Mileage"": 5000,
""Unit"": null,
""NickName"": ""2003 LEXUS IS"",
""Tag"": null,
""Active"": true
}
}"

}

Delete

Removes an vehicle from database.

DELETE


http://api2.carmd.com/v2.0/vehicles/{id}
"Message": {
"Code": 0,
"Message": "The vehicle has been removed."
},
"Data":{"Id":"537c1d7f3c1081e3981b21e0"}

Update

Updates an existing vehicle.

PUT


http://api2.carmd.com/v2.0/vehilces/{id}

{
"Id":"541655333c10813ac8a0f766"
"Make":"LEXUS"
}

"Message": {
"Code": 0,
"Message": "The vehicle has been updated."
},
{
""Data"": {
""Id"": ""541655333c10813ac8a0f766"",
""FleetId"": ""541655173c10813ac8a0f763"",
""Vin"": ""JTHBD192530073035"",
""DongleId"": null,
""Year"": 2003,
""Make"": ""LEXUS"",
""Model"": ""IS"",
""Engine"": ""D"",
""Mileage"": 5000,
""Unit"": null,
""NickName"": ""2003 LEXUS IS"",
""Tag"": null,
""Active"": true
}
}

Triumphi ng cheap blog writing services force she finally decides the victory
vinhnAPI Vehicle