cURL
curl --request GET \ --url https://api.example.com/api/vehicles/offers
{ "vehicles": [ {} ] }
Retrieve all vehicles that have active promotional offers
offers
curl -X GET "http://localhost:8080/api/vehicles/offers"
[ { "id": 1, "reference": "BMW2024A1B2", "brand": "BMW", "model": "X5", "year": 2024, "price": 150.00, "vehicleType": "SUV", "offers": "20% off for weekend rentals" }, { "id": 5, "reference": "AUD2024C3D4", "brand": "Audi", "model": "Q7", "year": 2024, "price": 145.00, "vehicleType": "SUV", "offers": "Free upgrade on 7+ day rentals" } ]
PATCH /api/vehicles/{id}/offers