Dynamic Mocking
What
By default, when a request comes into Prism (if the method and path are found in your specification) then the lowest response is mocked back. If there is an example, then it will be mocked back, otherwise, a response will be generated for you. You can force dynamic mocking even if you have an example response by following these steps.
How
- Select the testing file you want to dynamically mock
- Select Query under Send Test Requests
- Click Add Query
- Input
__dynamic
for query name - Input
true
for query value
Related Articles