Implementing Simple Mock Response Data

To add simple mock response, complete these steps:

  1. On the Apps page, click a running Mock application.

  2. Click the Implementation tab.

  3. Click the response card in the Simple Mock Responses section.
  4. Add the mock response using the following options:

    • If no response data is defined, enter the response data and click Save.

      Note: The added response mock data does not affect the API specification.

    • If a reference response schema is defined, click Generate response from schema to generate the response data based on the defined schema. Click Save.

      Note: If the defined response schema is String, the Generate response from schema link is not displayed.

    • If a response example is defined, click Revert to example from spec to use the defined response example. Click Save.

  5. Click Update Mock app to redeploy the Mock application; you are directed back to the Apps page.

After deploying the Mock application, you can test the application against the mock data. For more details, see Testing an API Mock Application.