func (h *Handler) SetOrchestrationAPI(o orchestrationapi.OrcheExternalAPI) {
	h.api = o
	h.isSetAPI = true
}
SetOrchestrationAPI sets OrcheExternalAPI
package externalhandler
import (
	"io/ioutil"
	"net/http"
	"strconv"
	"strings"
	"github.com/lf-edge/edge-home-orchestration-go/internal/common/logmgr"
	"github.com/lf-edge/edge-home-orchestration-go/internal/common/networkhelper"
	"github.com/lf-edge/edge-home-orchestration-go/internal/controller/securemgr/verifier"
	"github.com/lf-edge/edge-home-orchestration-go/internal/db/bolt/common"
	"github.com/lf-edge/edge-home-orchestration-go/internal/orchestrationapi"
	"github.com/lf-edge/edge-home-orchestration-go/internal/restinterface"
	"github.com/lf-edge/edge-home-orchestration-go/internal/restinterface/cipher"
	"github.com/lf-edge/edge-home-orchestration-go/internal/restinterface/externalhandler/senderresolver"
	"github.com/lf-edge/edge-home-orchestration-go/internal/restinterface/resthelper"
)
const logPrefix = "RestExternalInterface"
type Handler struct {
	isSetAPI bool
	api      orchestrationapi.OrcheExternalAPI
	helper resthelper.RestHelper
	restinterface.HasRoutes
	cipher.HasCipher
	netHelper networkhelper.Network
}
var (
	handler *Handler
	log     = logmgr.GetInstance()
)
func init() {
	handler = new(Handler)
	handler.helper = resthelper.GetHelper()
	handler.Routes = restinterface.Routes{
		restinterface.Route{
			Name:        "APIV1RequestServicePost",
			Method:      strings.ToUpper("Post"),
			Pattern:     "/api/v1/orchestration/services",
			HandlerFunc: handler.APIV1RequestServicePost,
		},
		restinterface.Route{
			Name:        "APIV1RequestSecuremgrPost",
			Method:      strings.ToUpper("Post"),
			Pattern:     "/api/v1/orchestration/securemgr",
			HandlerFunc: handler.APIV1RequestSecuremgrPost,
		},
	}
	handler.netHelper = networkhelper.GetInstance()
}
func GetHandler() *Handler {
	return handler
}