add two http_api interface and implement basic function