X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestful%2Frestful.go;h=9c9e861e47dd0980fd80f548f62a7f029bf7ceda;hb=9960403a919d3aeb771d7504376a6cb5f7a6e3d1;hp=ca454178e73c237755d986829d2af9417386681d;hpb=e3ac46a8c1e74aa6fea57bb7d92e763bd4bd6b7c;p=ric-plt%2Fricdms.git diff --git a/pkg/restful/restful.go b/pkg/restful/restful.go index ca45417..9c9e861 100644 --- a/pkg/restful/restful.go +++ b/pkg/restful/restful.go @@ -87,6 +87,12 @@ func (r *Restful) setupHandler() { return resp }) + api.ChartsGetChartsFetcherHandler = charts.GetChartsFetcherHandlerFunc(func(param charts.GetChartsFetcherParams) middleware.Responder { + ricdms.Logger.Debug("==> Get Charts by name and version is invoked") + resp := r.rh.GetChartByNameAndVersion(param.XAppName, param.Version) + return resp + }) + r.api = api }