initial REST support
some service api.