Loading go-apps/meep-app-enablement/server/capif-mgmt/convert.go +9 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,15 @@ func convertServiceInfoToJson(obj *ServiceInfo) string { return string(jsonInfo) } func convertServiceInfoToJson_1(obj *ServiceApiDescription) string { jsonInfo, err := json.Marshal(*obj) if err != nil { log.Error(err.Error()) return "" } return string(jsonInfo) } func convertJsonToServiceInfo(jsonInfo string) *ServiceInfo { var obj ServiceInfo err := json.Unmarshal([]byte(jsonInfo), &obj) Loading go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +1 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ func appServicesPOST(w http.ResponseWriter, r *http.Request) { // Send response w.Header().Set("Location", hostUrl.String()+basePath+"applications/"+appId+"/services/"+sInfo.SerInstanceId) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, convertServiceInfoToJson(sInfo)) fmt.Fprint(w, convertServiceInfoToJson_1(dsInfo)) } func appServicesByIdPUT(w http.ResponseWriter, r *http.Request) { Loading Loading
go-apps/meep-app-enablement/server/capif-mgmt/convert.go +9 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,15 @@ func convertServiceInfoToJson(obj *ServiceInfo) string { return string(jsonInfo) } func convertServiceInfoToJson_1(obj *ServiceApiDescription) string { jsonInfo, err := json.Marshal(*obj) if err != nil { log.Error(err.Error()) return "" } return string(jsonInfo) } func convertJsonToServiceInfo(jsonInfo string) *ServiceInfo { var obj ServiceInfo err := json.Unmarshal([]byte(jsonInfo), &obj) Loading
go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +1 −1 Original line number Diff line number Diff line Loading @@ -408,7 +408,7 @@ func appServicesPOST(w http.ResponseWriter, r *http.Request) { // Send response w.Header().Set("Location", hostUrl.String()+basePath+"applications/"+appId+"/services/"+sInfo.SerInstanceId) w.WriteHeader(http.StatusCreated) fmt.Fprint(w, convertServiceInfoToJson(sInfo)) fmt.Fprint(w, convertServiceInfoToJson_1(dsInfo)) } func appServicesByIdPUT(w http.ResponseWriter, r *http.Request) { Loading