feat: Rewire vehicles controller to use OCR VIN decode (#223) #226
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #223
Scope
Replace NHTSA client usage in the vehicles controller and service with the OCR proxy, and update cache logic.
Changes
NHTSAClientwithOcrClientinvehicles.controller.tsmapNHTSAResponse()tomapVinDecodeResponse()- takes Gemini response, does dropdown matchingvin_cacheraw_data to store Gemini response format007_truncate_vin_cache.sqlto clear stale NHTSA-format cache entriesAcceptance Criteria
POST /api/vehicles/decode-vinroutes through OCR service