move common api to base service