Note that the ** wildcard syntax is used to ignore the delay query parameter, which was added to the end of the endpoint. This could include sending mock data as the response. The result of the test below is that the application displays an error message because there went something wrong during the request. How did I build the Mock API Request Handler? Imagine we have an application, that calls the /items API endpoint for fetching all items available. Following code will intercept all the calls to https://dog.ceo/api/breeds/list/all and will return the test data instead. (ex: sending a different status code, content type or body). If you are using a Rest API, you will likely have a variety of endpoints that you would need to mock; this can be accomplished by setting up a separate check for each endpoint that you want to cover. * Optional callback to get the last update of the data source used to mock the response. In order to give you a .