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.

Figure: Redaction

  • The following operations are performed to create a Redaction policy.

  • Click the New Rule Set button in the Redaction window.

    • A list of rules attached from the Rule Sets table is displayed. Click Edit Rule Set button to edit the rule.
    • In the Error Message Customization field, the Error Code and Error Message that you want to customize for this policy is entered.
  • Clicking on the new Rule Set button will select one of the Redact by window pop-up options.

    • If the Existence of a variable option is activated, the request message displays the selected variable.
    • If the Value of a variable is selected, data correction is performed according to the different values selected from the request message.
  • 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.

Figure: Rule Set

Fields Description
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.
Substring Cuts the string between given indexes.
Replace Replaces the given string.
  • Click Save button to save the rule. More than one rule can be added.
  • Click Save button to save the policy.