API documentation

Get Cars

GET /api/cars

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service returns all of user's cars.

Response

Status Code: 200 if OK

[{
    "is_default": false,
    "car": {
        "plate_number": "BN88TIT"
    }
}, {
    "is_default": false,
    "car": {
        "plate_number": "BN88TITUS"
    }
}, {
    "is_default": true,
    "car": {
        "plate_number": "BN77TIT"
    }
}]
Parameter name Parameter type Description
is_default bool true if the car is set as default car
car object object containing the car information
plate_number string car plate number
[]

Status Code: 401 if request not ok