Skip to main content
GET
/
api
/
vehicles
/
brandmodel
Get Vehicles by Brand and Model
curl --request GET \
  --url https://api.example.com/api/vehicles/brandmodel
{
  "vehicles": [
    {}
  ]
}

Request

brand
string
required
The brand name to filter by
model
string
required
The model name to filter by

Response

Returns an array of vehicles matching both the specified brand and model.
vehicles
Vehicle[]
Array of vehicle objects

Example

curl -X GET "http://localhost:8080/api/vehicles/brandmodel?brand=BMW&model=X5"

Response Example

[
  {
    "id": 1,
    "reference": "BMW2024A1B2",
    "brand": "BMW",
    "model": "X5",
    "year": 2024,
    "price": 150.00,
    "vehicleType": "SUV",
    "hp": 340,
    "fuelType": "Gasoline",
    "doors": 5
  }
]
Both parameters are required. This endpoint performs exact matching on both brand and model fields.

Build docs developers (and LLMs) love