add REST API
Revert "add REST API"

This reverts commit 96378da50523c32079092b2d437afc5e1f930534.