func (c *AppRuleController) CreateAppRuleConfig() {
	log.Info("Application Rule Config create request received.")
	c.HandleAppRuleConfig(util.Post)
}
CreateAppRuleConfig Configures app rule
package controllers
import (
	"encoding/json"
	"errors"
	"github.com/astaxie/beego"
	log "github.com/sirupsen/logrus"
	"mecm-apprulemgr/models"
	"mecm-apprulemgr/util"
	"net/http"
	"strings"
	"unsafe"
)
const (
	appdRule                        = "appd_rule_rec"
	appdRuleId                      = "appd_rule_id"
	failedToMarshal                 = "failed to marshal request"
	lastInsertIdNotSupported        = "LastInsertId is not supported by this driver"
	toDatabase                      = "to database."
	operation                       = "] Operation ["
	resource                        = " Resource ["
	applicationJson                 = "application/json"
)
type AppRuleController struct {
	beego.Controller
	Db Database
}
func (c *AppRuleController) HealthCheck() {
	_, _ = c.Ctx.ResponseWriter.Write([]byte("ok"))
}