Returns all brands of all supported electric vehicles.
This API follows the https://jsonapi.org specification.
API-Key: <your_api_key>
(contact sales@chargeprice.net to get access)Content-Type: application/json
ReadVehicles
No parameters.
A response contains 0 to many vehicle brands.
The following table lists the attributes
of a vehicle_brand
:
Name | Type | Example | Description |
---|---|---|---|
name | String | “Opel” | Name of the vehicle brand |
GET http://example-base-url.com/v2/vehicle_brands
Content-Type: application/json
Api-Key: my-secret-key
Body:
{
"data": [
{
"id": "a43d2607-eead-46c2-9fd5-2ebd3c49d895",
"type": "vehicle_brand",
"attributes": {
"name": "Audi"
}
},
{
"id": "6d9d9248-de4a-4b13-976b-4e9f6688b0b1",
"type": "vehicle_brand",
"attributes": {
"name": "BMW"
}
}
],
"meta": {
"overall_count": 2
}
}
Client provided invalid request.
{
"errors": [
{
"status": "400",
"code": "BAD_REQUEST",
"title": "..."
}
]
}
{
"errors": [
{
"status": "403",
"code": "FORBIDDEN",
"title": "api_key missing"
}
]
}
An unexpected error happened.
{
"errors": [
{
"status": "500",
"code": "INTERNAL_SERVER_ERROR",
"title": "some error"
}
]
}