Skip to content
Discussion options

You must be logged in to vote

Hi @jerryhsu0910 ,
That's a great question, and it's quite straightforward to achieve!
To have digiRunner return the configured mock response body for an API when making a request from Postman (or any other client), you simply need to include a specific header in your request.

Add the following header to your Postman request:

Header Name: dgr_mock_test Header Value: true
By setting the dgr_mock_test header to true, digiRunner will bypass the actual backend service and return the mock response body you've configured for that API.
Give it a try, and let me know if it works for you!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TPIsoftwareOSPO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants