[BACKLOG-290] REST: Overhaul the data-access APIs