introduce REST api interface