framework for making rest calls