added rest api
added rest api