Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This sub tab is used to match the request body in raw format of the incoming mock request. A sample screenshot is as below:

Image Added

Note: Make sure that `Enabled` checkbox is ticked otherwise parameters defined in Parameters sub tab will be used only to match the incoming web request.

In the above example, mock server will do the following:

  1. Mock server will check that there are exactly 3 keys as specified in this tab, in the request body of the incoming mock request.
  2. Mock server will check the name key of the request body of incoming mock request should be equal to "John Doe".

Now,

  1. If any of the above conditions fails then mock server will ignore this API mock and move on to the next API mock. 
  2. And if the above conditions matches, then mock server will assign the actual values of email and designation from the incoming mock request into the specified variables.
  3. And these variables can be used to construct the API response.