Request
The brand name to filter by
The model name to filter by
Response
Returns an array of vehicles matching both the specified brand and model.
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.