added rest endpoint