replace legacy item API with REST