added an object to make rest calls to a rest server