only register rest api when http serv launched