feat(api): add GET /api/items/by-uuid/{uuid} endpoint #49
Reference in New Issue
Block a user
Delete Branch "issue-43-uuid-lookup"
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?
Closes #43
Adds a read-only endpoint to resolve a Silo item UUID to its full
ItemResponse. Used by silo-mod to resolve FreeCAD documentSiloUUIDproperties to part numbers during BOM sync.Changes
internal/api/handlers.go— newHandleGetItemByUUIDhandler. Calls existingGetByID(), returns 404 for archived items.internal/api/routes.go— registerGET /api/items/by-uuid/{uuid}in viewer-accessible group.No new DB queries needed —
ItemRepository.GetByID()already queries by the UUID primary key.