Store and Restore a rest service to simulate a rest call