use_mock_api function

Turn on API mocking