DMM WAPI is an OutSystems Module that exposes a Web API to start a DMM operation.
The operations will be started with the API input parameters.
The DMM WAPI uses the authentication token defined in the REST API of the DMM Settings page.
To start a new Data Export make a POST to the following url of your DMM installation:
{OutSystems_url}/DMM_Wapi/rest/DMM/StartExport
The body of the POST command should be a DMM Export configuration, similar to the what you can obtain downloading the Export Configuration JSON data in the DMM UI.
You can get the API input you want to use by starting a new Export configuration in DMM UI:
After filling all the data, in the Final Configuration Screen, just download the configuration:
You can use the text of the downloaded file as input of the API.
To start a new Data Migration make a POST to the following url: {OutSystems_url}/DMM_Wapi/rest/DMM/StartMigration} .
The body of the POST command should be a DMM Migration configuration, similar to the what you can obtain downloading the Migration Configuration JSON data in the DMM UI.
To start a new Data Delete make a POST to the following url: {OutSystems_url}/DMM_Wapi/rest/DMM/StartDelete}
The body of the POST command should be a DMM Delete configuration, similar to the what you can obtain downloading the Deletion Configuration JSON data in the DMM UI.
To start a new Data Scramble make a POST to the following url: {OutSystems_url}/DMM_Wapi/rest/DMM/StartScramble}
The body of the POST command should be a DMM Scramble configuration, similar to the what you can obtain downloading the Scramble Configuration JSON data in the DMM UI.
To start a new Data Import make a POST to the following url: {OutSystems_url}/DMM_Wapi/rest/DMM/StartImport} with a body similar to the one at the Input Sample below.
You can´t obtain this JSON data in the DMM UI, you need to create your own JSON. The post must contain the file to import encoded in Base64 in the “FileBase64” field.
{
"ConnectionName": “<Name of the Destination Connection>”,
"FileBase64": "<File to import encoded in Base6>",
"DataAppendMode": “<true/false - if true, data from the file will be appended into the destination instead of matched by ID; if using the Runtime Connection this has to be set to TRUE>”
}