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 Object
 
API for Cleanser on Object
Use this Cleanser API function when you have an object-project mapping defined in webMethods OneData, and you want to use the mapping through REST. You must pass the object name in the URL as given in the URL syntax. In the JSON input, you need to pass only the data that needs to be cleansed. This API function is applicable to any type of cleanser, including a pluggable type cleanser.
In the API input, columnName should be the name of object columns used in the project-object mapping.
URL
http://host:port/custom_webMethods_OneData_application_name/rest/
webMethods_OneData_repository_ID/webMethods_OneData_Project/DQ/cleanser/object/object_name
Example: http://localhost:8080/WMOnedata/rest/OD98HAPA/Standard%20Project/DQ/cleanser/object/Staging
Mandatory Input Attributes
Required:
inputDataSet
Example of API Syntax
{
"dqConfig" : {
"additionalConfig" : {
}
},
"inputDataSet" : {
"rows" : [
{
"columns" : [ {
"name" : "Name",
"value" : "SoftwareAg"
}, {
"name" : "Address",
"value" : "300 Concord Road"
}, {
"name" : "City",
"value" : "US"
}, {
"name" : "State",
"value" : "01821"
} ],
"pkIdentifier" : "111"
},
{
"columns" : [ {
"name" : "Name",
"value" : "US Navy Reserve"
}, {
"name" : "Address",
"value" : "1246 Everett Avenue"
}, {
"name" : "State",
"value" : "40204"
} ],
"pkIdentifier" : "222"
},
{
"columns" : [ {
"name" : "Name",
"value" : "G. R. Belue"
}, {
"name" : "Address",
"value" : "524 Pecan Stree"
}, {
"name" : "City",
"value" : "US"
}, {
"name" : "State",
"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/object/object_name/swagger
Example: http://localhost:8080/WMOnedata/rest/OD98HAPA/Standard%20Project/DQ/cleanser/object/Staging/swagger.