with_mock_api function

Serve a mock API from files