call correct restfull url