Loading go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +10 −2 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ const globalMepName = "global" const SER_AVAILABILITY_NOTIF_SUB_TYPE = "SerAvailabilityNotificationSubscription" const SER_AVAILABILITY_NOTIF_TYPE = "SerAvailabilityNotification" const APP_STATE_READY = "READY" const capifEventsBasePath = "/capif-events/v1/" // const logModuleAppEnablement = "meep-app-enablement" const serviceName = "App Enablement Service" Loading Loading @@ -416,8 +417,11 @@ func appServicesPOST(w http.ResponseWriter, r *http.Request) { return } // Set Location Header updatedBasePath := strings.Replace(basePath, "mec_service_mgmt/v1", "published-apis/v1", 1) // Send response w.Header().Set("Location", hostUrl.String()+basePath+"applications/"+appId+"/services/"+sInfo.SerInstanceId) w.Header().Set("Location", hostUrl.String()+updatedBasePath+appId+"/service-apis/"+dsInfo.ApiId) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, convertServiceInfoToJson_1(dsInfo)) } Loading Loading @@ -1210,7 +1214,11 @@ func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Failed to create subscription", http.StatusInternalServerError) return } HrefUrl = hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId // Set Location Header updatedBasePath := strings.Replace(basePath, "mec_service_mgmt/v1", "capif-events/v1", 1) HrefUrl := hostUrl.String() + updatedBasePath + appId + "/subscriptions/" + subId // Send response w.Header().Set("Location", HrefUrl) w.WriteHeader(http.StatusCreated) Loading Loading
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +10 −2 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ const globalMepName = "global" const SER_AVAILABILITY_NOTIF_SUB_TYPE = "SerAvailabilityNotificationSubscription" const SER_AVAILABILITY_NOTIF_TYPE = "SerAvailabilityNotification" const APP_STATE_READY = "READY" const capifEventsBasePath = "/capif-events/v1/" // const logModuleAppEnablement = "meep-app-enablement" const serviceName = "App Enablement Service" Loading Loading @@ -416,8 +417,11 @@ func appServicesPOST(w http.ResponseWriter, r *http.Request) { return } // Set Location Header updatedBasePath := strings.Replace(basePath, "mec_service_mgmt/v1", "published-apis/v1", 1) // Send response w.Header().Set("Location", hostUrl.String()+basePath+"applications/"+appId+"/services/"+sInfo.SerInstanceId) w.Header().Set("Location", hostUrl.String()+updatedBasePath+appId+"/service-apis/"+dsInfo.ApiId) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, convertServiceInfoToJson_1(dsInfo)) } Loading Loading @@ -1210,7 +1214,11 @@ func applicationsSubscriptionsPOST(w http.ResponseWriter, r *http.Request) { errHandlerProblemDetails(w, "Failed to create subscription", http.StatusInternalServerError) return } HrefUrl = hostUrl.String() + basePath + "applications/" + appId + "/subscriptions/" + subId // Set Location Header updatedBasePath := strings.Replace(basePath, "mec_service_mgmt/v1", "capif-events/v1", 1) HrefUrl := hostUrl.String() + updatedBasePath + appId + "/subscriptions/" + subId // Send response w.Header().Set("Location", HrefUrl) w.WriteHeader(http.StatusCreated) Loading