Add restful interface