added api work to the repository