Update for rest calls mocks.