added rest api
added resource