Loading go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +2 −2 Original line number Diff line number Diff line Loading @@ -1119,7 +1119,7 @@ func applicationsSubscriptionDELETE(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") vars := mux.Vars(r) subId := vars["subscriptionId"] appId := vars["appInstanceId"] appId := vars["subscriberId"] mutex.Lock() defer mutex.Unlock() Loading Loading @@ -1153,7 +1153,7 @@ func applicationsSubscriptionDELETE(w http.ResponseWriter, r *http.Request) { } // Validate subscription if sub.Cfg.AppId != appId || sub.Cfg.Type != SER_AVAILABILITY_NOTIF_SUB_TYPE { if sub.Cfg.AppId != appId { err = errors.New("Subscription not found") log.Error(err.Error()) errHandlerProblemDetails(w, err.Error(), http.StatusNotFound) Loading go-apps/meep-app-enablement/server/routers.go +7 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,13 @@ var routes = Routes{ capifMgmt.ApplicationsSubscriptionsPUT, }, Route{ "ApplicationsSubscriptionDELETE", strings.ToUpper("Delete"), "/capif-events/v1/{subscriberId}/subscriptions/{subscriptionId}", svcMgmt.ApplicationsSubscriptionDELETE, }, Route{ "Index", "GET", Loading Loading
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +2 −2 Original line number Diff line number Diff line Loading @@ -1119,7 +1119,7 @@ func applicationsSubscriptionDELETE(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") vars := mux.Vars(r) subId := vars["subscriptionId"] appId := vars["appInstanceId"] appId := vars["subscriberId"] mutex.Lock() defer mutex.Unlock() Loading Loading @@ -1153,7 +1153,7 @@ func applicationsSubscriptionDELETE(w http.ResponseWriter, r *http.Request) { } // Validate subscription if sub.Cfg.AppId != appId || sub.Cfg.Type != SER_AVAILABILITY_NOTIF_SUB_TYPE { if sub.Cfg.AppId != appId { err = errors.New("Subscription not found") log.Error(err.Error()) errHandlerProblemDetails(w, err.Error(), http.StatusNotFound) Loading
go-apps/meep-app-enablement/server/routers.go +7 −0 Original line number Diff line number Diff line Loading @@ -399,6 +399,13 @@ var routes = Routes{ capifMgmt.ApplicationsSubscriptionsPUT, }, Route{ "ApplicationsSubscriptionDELETE", strings.ToUpper("Delete"), "/capif-events/v1/{subscriberId}/subscriptions/{subscriptionId}", svcMgmt.ApplicationsSubscriptionDELETE, }, Route{ "Index", "GET", Loading