cURL
curl --request GET \ --url https://api.example.com/api/vehicles/brand
{ "vehicles": [ {} ], "id": 123, "reference": "<string>", "brand": "<string>", "model": "<string>", "year": 123, "price": {}, "vehicleType": "<string>", "hp": 123, "autonomy": 123, "averageconsumption": 123, "fuelType": "<string>", "mileage": 123, "doors": 123, "description": "<string>", "extras": "<string>", "offers": "<string>", "images": [ {} ] }
Retrieve all vehicles from a specific brand
curl -X GET "http://localhost:8080/api/vehicles/brand?brand=BMW"
[ { "id": 1, "reference": "BMW2024A1B2", "brand": "BMW", "model": "X5", "year": 2024, "price": 150.00, "vehicleType": "SUV", "hp": 340, "fuelType": "Gasoline", "doors": 5 }, { "id": 2, "reference": "BMW2023C4D5", "brand": "BMW", "model": "M3", "year": 2023, "price": 180.00, "vehicleType": "Sedan", "hp": 503, "fuelType": "Gasoline", "doors": 4 } ]
/api/vehicles/search?q={query}