log.Error("Mandatory attribute location is either empty or not present in routeInfo")
http.Error(w,"Mandatory attribute routes.routeInfo.location is either empty or not present in the request in at least one of the routeInfo structures.",http.StatusBadRequest)
errHandlerProblemDetails(w,"Mandatory attribute routes.routeInfo.location is either empty or not present in the request in at least one of the routeInfo structures.",http.StatusBadRequest)
return
}
ifrouteInfo.Location.Ecgi!=nil{
log.Error("Ecgi is not supported in location for MEC Sandbox")
http.Error(w,"Ecgi is not supported inside location attribute, only geoArea is supported.",http.StatusBadRequest)
errHandlerProblemDetails(w,"Ecgi is not supported inside routes.routeInfo.location attribute, only geoArea is supported.",http.StatusBadRequest)
log.Error("Mandatory latitude/longitude parameter(s) either not present in geoArea or have a zero value")
http.Error(w,"At least one of the routeInfo structures either does not contain mandatory latitude/longitude parameter(s) in geoArea or have zero value(s).",http.StatusBadRequest)
errHandlerProblemDetails(w,"At least one of the routes.routeInfo structures either does not contain mandatory latitude / longitude parameter(s) in geoArea or have zero value(s).",http.StatusBadRequest)
return
}
@@ -641,3 +641,14 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) {