Base repository to new api