Add sample data in example fields throughout your API.
In Talend Cloud API Designer, you can add example values for various elements of your API. Once you have defined an example, it is used when making API calls to your mock.
In the following example, a data type was created using an example.
This data type is then used as a response body for an operation.
When testing the operation in Talend Cloud API Tester, the example is returned as the response.
You can define examples in different parts of your API, and some might override the others when making calls to your mock. Here, the example from the data type is used, but you can also define an example for the operation's response.
When testing the operation in Talend Cloud API Tester, the example provided in the operation takes precedence over the one defined in the data type.
In a data type, you can define an example for the entire object, but also for individual properties. If you use both, the example used for the whole object is returned when testing the mock.
External examples are not supported.