Created custom CRUD functions in the api