Skip to content

Static Mock

Static mocks are the simplest type of mocks but may be used to simulate many use cases. They return a fixed response for every request. Use a static mock when a service consuming the mock does not need unique identifiers/data for subsequent executions.

To create a static mock, select Static Mock in Create Mock:

  • Select the HTTP Status code returned when a mock is matched
  • Enter response Content Type
  • If a service consumer needs additional headers, add them by clicking Add Response Header and entering header name and value
  • Enter a response Body
  • Click Save

Examples


Last update: June 30, 2020