I have a function that makes a call :
GET www.thirdpartydomain.com/objectlist/
and fetches a JSON list in the following way: [ { id: 1, name: 'abc', }, { id: 2, name: 'def', } ]
and then the function loops through the objects in the array fetched and makes further calls
GET www.thirdpartydomain.com/object/<id> --- where id is in the fetched json array
For testing, I dont want to call the thirdpartydomain API and instead fake it with known responses for LISt and DETAILS API
How can I do this in Django?