diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go index 267d4694cbe8cfde0b6142fc0aed77eeda7c7847..af23f8ea58a383b31e3d5daaa9b29f2eec72b6b8 100644 --- a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +++ b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go @@ -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() @@ -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) diff --git a/go-apps/meep-app-enablement/server/routers.go b/go-apps/meep-app-enablement/server/routers.go index dcdc286e896f150080e826fa044a2fa1237d9883..8f8ac220633ab2c94a5d0c7583d727a17bfc296e 100644 --- a/go-apps/meep-app-enablement/server/routers.go +++ b/go-apps/meep-app-enablement/server/routers.go @@ -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",