added repository method in APIs