Generic way to define rest URI