abstract api repos method definition