added new method to get full REST path instad of segments only