You need to sign in or sign up before continuing.
feat: add endpoint to get revisions by vehicle ID
Add new GET endpoint /api/fleet/revisions/vehicle/{fleetVehicleId} to retrieve all revisions for a specific vehicle. The implementation searches revisions by multiple criteria to handle cases where vehicle linkage may be incomplete:
- Search by fleetVehicleId (as string)
- Search by fleetVehicleUuid (retrieved from vehicle lookup)
- Fallback to registration plate if no results found
This ensures revisions are found even when fleetVehicleId or fleetVehicleUuid fields are empty/null in the revision records.