add rest api, bind rest JSON model to view template