Q: How can I trigger a configured Mock Response for a digiRunner API using Postman?
A: If you have configured a mock response for your API in the digiRunner console, you can test it without invoking the actual backend service by including a specific request header.
To force digiRunner to return the mock response, add the following header to your request in Postman (or any other API client):
Header Key:dgr_mock_test
Header Value:true
How it works:
When digiRunner detects the dgr_mock_test header set to true, it bypasses the backend service and immediately returns the mock response body configured in the console.
Keywords: API Testing, Mocking, Postman, digiRunner, dgr_mock_test, Bypass Backend