How to call external REST API but I don't want to trigger to services provider?Report
Last week, I was asked this question, they gave the example like this:
Imagine that Google Analytics provide some API services, and as the QC, you want to call these APIs to do testing, but you don't wan't to trigger to these services (it means the servers aren't affected like insert record, updates records or delete records) , what will you do?
I will use "stub" or "mock" to fake the request, it will simulated the data that I want to GET , POST, PUT , DELETE.
Am I correct? Or we have anything else to do this? Any comment is welcome.