Defining a REST API Output rule

This procedure describes how to define a REST API output rule.

To define a REST API output rule:

  1. In the Output Handling area, click I_AI_add.

    The Output Handling window appears.

  2. In the When response is field, from the dropdown list select the response options, as described in Output handling response options.
  3. In the Extract from field from the dropdown list, select one of the following options from where you want to extract:
  4. (Body only) In the Content-Type field select one of the following content formats:
  5. If you select JSON or XML, do the following:
    1. In the first field, from the dropdown list, select JsonPath or Xpath
    2. In the second field from the dropdown list, select the value.
    3. If you want to add elements to analyze, in the If field do the following:
      • Click I_AI_add and repeat steps a and b.
      • Define the relationship between the output element rules, by selecting And or OR.
  6. If you select Other, in the If field do the following:

    For an example of JSONpath and Xpath, see JSONpath and Xpath example

  7. In the Do field, from the drop-down list complete the Output Handling parameters for Command Line.

    NOTE: In the Do field, if you select either Keep value of related element or keep value in Runtime Parameter you can add it to Runtime Parameters in the Designer area, as described in Runtime Parameters view.

  8. To add more Do actions, click I_AI_add and repeat step 7.
  9. Click OK.

Parent Topic

Output Handling rules