"os"
ph "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/health"
+ po "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/onboard"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations/health"
+ "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations/onboard"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/resthooks"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/ricdms"
"github.com/go-openapi/loads"
r := &Restful{
rh: resthooks.NewResthook(
ph.NewHealthChecker(),
+ po.NewOnboarder(),
),
}
r.setupHandler()
return resp
})
+ api.OnboardPostOnboardxAppsHandler = onboard.PostOnboardxAppsHandlerFunc(func(poap onboard.PostOnboardxAppsParams) middleware.Responder {
+ ricdms.Logger.Debug("==> onboard API invoked.")
+ resp := r.rh.OnBoard(poap.Body)
+ return resp
+ })
+
r.api = api
}