Enabling your API mock - Cloud

Talend Cloud API Designer User Guide

Version
Cloud
Language
English
Product
Talend Cloud
Module
Talend API Designer
Content
Design and Development > Designing APIs
Last publication date
2024-03-13
Every Talend Cloud API Designer API version comes with an integrated API mock. Each version of an API has a unique mock endpoint. When you create a new version from an existing version with a mock enabled, the mock is disabled in the new version. You can enable it to get a new endpoint.

Procedure

  1. Go to the Settings page.
  2. Scroll down to the MOCK section, then toggle the Enabled button to On.
    MOCK section.
  3. Click Save.

Results

When you activate an API mock, the mock endpoint is added to your API, and is visible at the top of the left panel.

The Petstore API with the mock endpoint added to it.

This endpoint is also visible in API documentation that you publish from Talend Cloud API Designer.

Note: The first endpoint in the list of endpoints is selected when you use features like exporting OAS and trying your API in Talend Cloud API Tester. You can reorder endpoints at anytime via the general information panel.