calling rest