Using an API Mock App
After creating a Mock app, you can do the following operations.
From the API Modeler page:
- You can access a Mock app by hovering over an API specification and selecting Go to Mock App from the shortcut menu. This opens the Mock App Details Page for that Mock app.
- If you have created a Mock app for an API specification and edit the API after creating the Mock app, click Update Mock app to recreate and redeploy the Mock app.
- If you delete an API specification, its associated Mock app is deleted.
Note: Although you can recover a deleted API specification by clicking Undo or moving it from the trash, the associated Mock app remains deleted.
From the Mock App Details Page:
- Click Start or Stop to start or stop the Mock app. Note that only one instance of a Mock app is run; it is not possible to scale up a Mock app to multiple instances.
- Click Endpoints to view and test the Mock app's endpoints, download the API spec, copy the endpoint or spec URLs, or publish the endpoints to TIBCO Cloud™ API Management. See Viewing App Endpoints for more information.
- In the shortcut menu, click Set endpoints private to my TIBCO Cloud™ to set the endpoint visible to TIBCO Cloud™ Mesh. This also enables you to use TIBCO Cloud™ Mesh to easily select the app's services from other apps running in TIBCO Cloud™ managed by your organization. If the app has TIBCO Cloud™ Mesh endpoints, click Set endpoints public to my TIBCO Cloud™ to set them public.
- In the shortcut menu, click Delete to delete the Mock app.
- Click < to the left of the Mock app name to return to API Modeler.