{
  "formId": "eiprestactioncfg",
  "entity": "eiprestactioncfg",
  "title": "REST Action Config",
  "idField": "RestActionCfgId",
  "pages": [
    {
      "pageId": "main",
      "pageName": "REST Action Config",
      "sections": [
        {
          "sectionId": "general",
          "sectionName": "REST Action Config",
          "layout": { "columns": 12 },
          "fields": [
            {
              "fieldId": "RestActionCfgId",
              "label": "Id",
              "type": "number",
              "ReadOnly": true,
              "DefaultValue": 0,
              "PostData": true,
              "layout": { "colSpan": 3 }
            },
            {
              "fieldId": "ActionId",
              "label": "Action Id",
              "type": "number",
              "mandatory": true,
              "DefaultValue": 0,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "HttpMethod",
              "label": "HTTP Method",
              "type": "select",
              "mandatory": true,
              "DefaultValue": 1,
              "lookup": {
                "valueField": "value",
                "displayField": "label",
                "options": [
                  { "value": 1, "label": "POST" },
                  { "value": 2, "label": "GET" },
                  { "value": 3, "label": "PUT" },
                  { "value": 4, "label": "PATCH" },
                  { "value": 5, "label": "DELETE" }
                ]
              },
              "layout": { "colSpan": 5 }
            },
            {
              "fieldId": "EndpointPath",
              "label": "Endpoint Path",
              "type": "text",
              "mandatory": true,
              "DefaultValue": "",
              "layout": { "colSpan": 8 }
            },
            {
              "fieldId": "PayloadTemplate",
              "label": "Payload Template (JSON, supports {ContextId})",
              "type": "textarea",
              "DefaultValue": "",
              "layout": { "colSpan": 12 }
            },
            {
              "fieldId": "HeadersJson",
              "label": "Extra Headers (JSON)",
              "type": "textarea",
              "DefaultValue": "",
              "layout": { "colSpan": 12 }
            },
            {
              "fieldId": "TimeoutSeconds",
              "label": "Timeout (seconds)",
              "type": "number",
              "DefaultValue": 30,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "ConfigVersion",
              "label": "Config Version",
              "type": "number",
              "DefaultValue": 1,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "IsActive",
              "label": "Active",
              "type": "select",
              "DefaultValue": 1,
              "lookup": {
                "valueField": "value",
                "displayField": "label",
                "options": [
                  { "value": 1, "label": "Yes" },
                  { "value": 0, "label": "No" }
                ]
              },
              "layout": { "colSpan": 4 }
            }
          ]
        }
      ]
    }
  ],
  "api": {
    "save": "Framework.EIPRestActionCfg.Save",
    "get": "Framework.EIPRestActionCfg.Get",
    "delete": "Framework.EIPRestActionCfg.Delete"
  }
}
