# Transformer Validation Service

## Overview

### What is Transformer Validation

- Aggregate multiple APIs
- Convert between API data models
- Support Rego

### How to Use Transformer Validation

- Blockly drag

If there is no value in the field, please use Input data to get value.

![tv](./image/trans_validation/tv.png)  

- Blockly drag code
![tv_formula](./image/trans_validation/tv_formula.png)  

- Validate results
![tv_validate](./image/trans_validation/tv_validate.png)  

### Usage Scenarios 

- Convert between XML and JSON

- Aggregate API data

- Clip private data

## Page

## API

```js
https://portal-gw.insuremo.com/eBao/1.0/api/rule/decision

Body
{
  "input": {
    "contractMaster": {
      "addressId": 616423,
      "advancePremIndi": "N",
      "applyCode": "30000000860",
    },
    "contractProducts": [
      {
        "chargePeriod": 3,
        "chargeYear": 55,
        "coveragePeriod": 1,
        "coverageYear": 0,
        "deferredLevelPeriod": 0,
        "itemId": 556763,
        "policyId": 552479,
        "productId": 4161
      },
    ],
    "productMatrixList": [
    ]
  },
  "content": "",
  "option": "",
  "query": "",
  "response_content_type": "",
  "tag": "",
  "name": "sample_jp"
}

```

## Best Practices

- [Transformer Validation UI](https://portal.insuremo.com/#/home/utility-and-admin/tv)
