Implementing Simple Mock Response Data
To add simple mock response, complete these steps:
On the Apps page, click a running Mock application.
Click the Implementation tab.
- Click the response card in the Simple Mock Responses section.
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.
- 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.