I want to mock a web request on a resource I'm working with.
Let's say there is a call to
https://domain.com/lookup with data {"name": "markus"} and it replies {"success": true}.
I want to mock it so that there is no actual data sent to the server but I still want to return the {"success": true} to the client so the website continues to work.
I saw there is ChangeRequest and ChangeResponse but I couldn't figure out how to not send any data to the server.
Let's say there is a call to
https://domain.com/lookup with data {"name": "markus"} and it replies {"success": true}.
I want to mock it so that there is no actual data sent to the server but I still want to return the {"success": true} to the client so the website continues to work.
I saw there is ChangeRequest and ChangeResponse but I couldn't figure out how to not send any data to the server.