set rest method path according to changes on server