rest endpoint

not working