Mock priority sequence
In Apidog, the default mocking method is Smart mock, which automatically generates mock data based on the response spec. Another commonly used mocking method is to directly use the response example as the mock response.
To implement this alternative mocking method:
- Go to Project Settings - Feature Settings - Mock Settings
- Change the "Default mock method" to "Response example first"
Smart mock first:
- It's the default value of "Default mock method".
- In this setting, the mock method priority is: Advanced mock expectation > Smart mock
Response example first:
- The Mock method priority becomes: Advanced mock expectation > Response example > Smart mock
- For endpoints without a specified response example, Smart mock will still be used as a fallback.
No matter which priority sequence is utilized, if mock expectations are set, they will take the first priority.
Last modified: 5 months ago