How to validate MDM data records against the master storage through the REST API
An MDM REST interface
POST
/talendmdm/services/rest/data/{containerName}/validate
is available to allow you to
validate data records against the master storage through the REST API.
Before saved to the master database, a data record has to go through a validation process, which involves checking the data record against the database schema, foreign key constraints, validation rules and the Before-Saving process (if any) defined in the entity that the data record pertains to.
For more information about the REST API, see Validate records in a container.
How to validate a data record through the REST API using a Job
The following example shows how to use a Talend Job to validate a data record through the REST API and print out the response message accordingly.
The Job is composed of two components: tREST and tJavaRow:
- tREST is used to send the HTTP request and get the response correspondingly.
- tJavaRow is used to print out the response.
Retrieve the Job file tREST.zip from the Downloads tab in the left panel of this page.
Before you begin
- The MDM server is up and running.
- You have already launched Talend Studio.
- You have already imported the MDM Demo Project.