The response to the client is customized with the Redaction policy.The data to be customized is detected by the variable generated on the parameter, header or body of the request. By adding a rule to the response to the variable or to the value of the variable, the data in the returning message to the client is edited and forwarded to the client.
The following operations are performed to create a Redaction policy.
Click the New Rule Set button in the Redaction window.
Clicking on the new Rule Set button will select one of the Redact by window pop-up options.
Select message from variable field and request message to correct data.
The values field is written to the values that should be in the variable if the variable value is active. A comma must be placed between the values.
An existing redaction rule can be created or edited from the Rules table.
To create a new rule, click the New Rule button in the Rules table. In the rule window, the fields with the descriptions below are entered.
|Path||The message to be sent to the client is entered in the XPath / JSONPath statement of the information to be executed.|
|Operation||The process type to be applied to the message to be sent to the client is selected.|
|Delete||The message sent to the client is deleted according to the specified statement in the Path field. When this option is selected, the Process Body and Namespaces fields are not valued.|
|Mask||The format of the message sent to the client is changed. The mask to be applied to the message should be written as a regex in the Operation Body field.|
|Transform||The content of the message is changed according to the XSLT/Jolt statement written to the Operation Body. If the XSLT statement is being written, the Namespaces field must be prefixed with the element classes.|
|Operation Body||This input field defines the regex expression for the Masking operation and the XSLT / Jolt statement for the Transform operation to be modified.|
|Namespaces||When a transform operation is to be performed, the classes of elements to be used in the XSLT statement are defined in the operation body.|