Confidential interview question

How would you mock API responses?