Required payloads
The external adapter/API should accept the payload in the following format.
{
"dependentConfigId": [ --- "dependentSectionCodes" is also supported in place of "dependentConfigId".
"string",
"string"
],
"parentConfigs": [
{
"parentConfigId": "string",
"values": [
{
"valueId": "string",
"label": "string"
}
]
}
],
"contexts": [
{
"tagType": "",
"tagName": "",
"tagValue": "",
"tagValueCode": ""
}
]
}
The external adapter/API should return the response in the following format.
{
"configGroup": [
{
"configGroupName": "string",
"configGroupCode": "string",
"configGroupSequence": 0,
"callForValidate": false,
"visibilityRules": [
{
"configId": "string",
"hideExpression": "string"
}
],
"sections": [
{
"sectionName": "string",
"sectionCode": "string",
"callForValidate": false,
"sectionSequence": 0,
"max": 49,
"isRemovable": true,
"configs": [
{
"configId": "string",
"configName": "string",
"sequence": 0,
"description": "string",
"isRequired": true,
"isSelected": false,
"callForValidate": false,
"dataType": "string",
"binding": "string",
"editable": true,
"configEditable": true,
"range": {
"min": 0,
"max": 0,
"step": 0
},
"values": [
{
"valueId": "string",
"label": "string"
}
],
"default": {
"valueId": "string",
"label": "string"
},
"inputType": "freetext",
"minSize": 0,
"maxSize": 0,
"validation": "string",
"searchInfo": {
"keys": [
{
"keyId": "string",
"keyLabel": "string"
}
]
},
"derives": [
{
"configId": "string",
"valueMap": [
{
"parentValueId": "string",
"dependentValues": [
{
"valueId": "string",
"label": "string"
}
]
}
],
"callForUpdate": true
}
],
"errorMessage": "string"
}
]
}
],
"fixedSectionItems": [
{
"sectionItemSequence": 0,
"configId": "string",
"fixedValues": [
{
"valueId": "string",
"label": "string"
}
]
}
],
"configs": [
{
"configId": "string",
"configName": "string",
"sequence": 0,
"description": "string",
"isRequired": true,
"isSelected": false,
"callForValidate": false,
"dataType": "string",
"binding": "string",
"editable": true,
"configEditable": true,
"range": {
"min": 0,
"max": 0,
"step": 0
},
"values": [
{
"valueId": "string",
"label": "string"
}
],
"default": {
"valueId": "string",
"label": "string"
},
"inputType": "freetext",
"minSize": 0,
"maxSize": 0,
"validation": "string",
"searchInfo": {
"keys": [
{
"keyId": "string",
"keyLabel": "string"
}
]
},
"derives": [
{
"configId": "string",
"valueMap": [
{
"parentValueId": "string",
"dependentValues": [
{
"valueId": "string",
"label": "string"
}
]
}
],
"callForUpdate": true
}
],
"errorMessage": "string"
}
]
}
],
"reasons": [
{
"statusCode": 0,
"status": "string",
"messages": [
"string"
]
}
]
}