move put rest handler to rest endpoint