{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "This document describes the API for executing business rules within a domain context. It provides endpoints to execute rules based on domain codes, returning rule results that include actions, object associations, property updates, and contextual metadata for integrating with external systems.",
    "version" : "1.0/platform-busi-config",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "This document describes the API for executing business rules within a domain context. It provides endpoints to execute rules based on domain codes, returning rule results that include actions, object associations, property updates, and contextual metadata for integrating with external systems."
  },
  "servers" : [ {
    "url" : "http://platform-busi-config.platform"
  } ],
  "paths" : {
    "/platform-busi-config/rule/v2/executor/executeDomain" : {
      "post" : {
        "tags" : [ "RuleV2Execute" ],
        "summary" : "Executes business rules within a specified domain.",
        "operationId" : "executeDomain",
        "parameters" : [ {
          "name" : "domainCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : { }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/RuleResult"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Executes business rules within a specified domain."
      }
    },
    "/platform-busi-config/rule/v2/executor/executeDomainWithAdditionalContextData" : {
      "post" : {
        "tags" : [ "RuleV2Execute" ],
        "summary" : "Similar to executeDomain, but allows for additional context data to be provided when executing business rules within a specified domain, returning an array of RuleResult objects.",
        "operationId" : "executeDomainWithAdditionalContextData",
        "parameters" : [ {
          "name" : "domainCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/RuleResult"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Similar to executeDomain, but allows for additional context data to be provided when executing business rules within a specified domain, returning an array of RuleResult objects."
      }
    }
  },
  "components" : {
    "schemas" : {
      "RuleResult" : {
        "type" : "object",
        "properties" : {
          "ActionName" : {
            "type" : "string"
          },
          "ArrayIndexOfContextParameter" : {
            "type" : "integer",
            "format" : "int32"
          },
          "NameOfContextParameter" : {
            "type" : "string"
          },
          "NewValueForUpdate" : {
            "type" : "object"
          },
          "ObjectDataForAttachChildModel" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "Properties" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "PropertyNameForUpdate" : {
            "type" : "string"
          },
          "RefObjectJsonPointer" : {
            "type" : "string"
          },
          "RuleId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RuleName" : {
            "type" : "string"
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}