finsh Restful code