cURL
curl --request GET \ --url https://api.example.com/api/vehicles/year
{ "vehicles": [ {} ] }
Retrieve all vehicles from a specific manufacturing year
curl -X GET "http://localhost:8080/api/vehicles/year?year=2024"
[ { "id": 1, "reference": "BMW2024A1B2", "brand": "BMW", "model": "X5", "year": 2024, "price": 150.00, "vehicleType": "SUV" }, { "id": 5, "reference": "AUD2024F7G8", "brand": "Audi", "model": "Q7", "year": 2024, "price": 145.00, "vehicleType": "SUV" } ]
/api/vehicles/year-range