webMethods OneData 10.11 | Managing Master Data with webMethods OneData | webMethods OneData Consolidation MDM Guide | Using REST APIs for Data Quality Consolidation | Data Quality APIs | API for Cleanser on Project
 
API for Cleanser on Project
Use this Cleanser API function when you have a cleanser project defined in webMethods OneData, and want to use the project through REST. You must pass the project name in the URL as given in the URL syntax. In the JSON input, you must pass only the data to be cleansed. This function is applicable to any type of project, including a pluggable type cleanser. In the API input, columnName should be the name of attribute defined for the project in the project mappings.
URL
http://host:port/custom_webMethods_OneData_application_name/rest/
webMethods_OneData_repository_ID/webMethods_OneData_Project/DQ/cleanser/project/cleanser_project_name
Example: http://localhost:8080/WMOnedata/rest/OD98HAPA/Standard%20Project/DQ/cleanser/project/wmLocate
Mandatory Input Attributes
Required:
inputDataSet
Example of API Syntax
{
"dqConfig" : {
"additionalConfig" : {
}
},
"inputDataSet" : {
"rows" : [
{
"columns" : [ {
"name" : "IN_Organization",
"value" : "SoftwareAg"
}, {
"name" : "IN_Country",
"value" : "US"
}, {
"name" : "IN_PostBox",
"value" : "01821"
} ],
"pkIdentifier" : "111"
},
{
"columns" : [ {
"name" : "IN_Organization",
"value" : "US Navy Reserve"
}, {
"name" : "IN_Address",
"value" : "1246 Everett Avenue"
}, {
"name" : "IN_Country",
"value" : "US"
}, {
"name" : "IN_PostBox",
"value" : "40204"
} ],
"pkIdentifier" : "222"
},
{
"columns" : [ {
"name" : "IN_Organization",
"value" : "G. R. Belue"
}, {
"name" : "IN_Address",
"value" : "524 Pecan Stree"
}, {
"name" : "IN_Country",
"value" : "US"
}, {
"name" : "IN_PostBox",
"value" : "76036"
} ],
"pkIdentifier" : "333"
}
]
}
}
You can describe the API specification using Swagger as shown below:
Swagger URL:
http://host:port/custom_webMethods_OneData_application_name/rest/
webMethods_OneData_repository_ID/webMethods_OneData_Project/DQ/cleanser/project/cleanser_project_name/swagger
Example: http://localhost:8080/WMOnedata/rest/OD98HAPA/Standard%20Project/DQ/cleanser/project/wmLocate/swagger.