add resteasy endpoint