Loading go-apps/meep-vis/server/api_v2xi.go +2 −4 Original line number Diff line number Diff line Loading @@ -58,11 +58,9 @@ func SubPOST(w http.ResponseWriter, r *http.Request) { } func V2xMessagePOST(w http.ResponseWriter, r *http.Request) { V2xMsgPublicationPOST(w, r) v2xMsgPublicationPOST(w, r) } func V2xMsgDistributionServerPost(w http.ResponseWriter, r *http.Request) { // TODO w.Header().Set("Content-Type", "application/json; charset=UTF-8") w.WriteHeader(http.StatusOK) v2xMsgDistributionServerPost(w, r) } go-apps/meep-vis/server/routers.go +8 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ func NewRouter() *mux.Router { } func Index(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello World!") fmt.Fprintf(w, "Hello World from MEC 030!") } var routes = HttpRoutes{ Loading Loading @@ -150,6 +150,13 @@ var routes = HttpRoutes{ V2xMessagePOST, }, HttpRoute{ "V2xMsgDistributionServerPost", strings.ToUpper("Post"), "/vis/v2/provide_v2x_msg_distribution_server_info", V2xMsgDistributionServerPost, }, HttpRoute{ "Mec011AppTerminationPOST", strings.ToUpper("Post"), Loading go-apps/meep-vis/server/subscriptionCommon.go +6 −6 Original line number Diff line number Diff line Loading @@ -30,6 +30,6 @@ type SubscriptionCommon struct { RequestTestNotification bool `json:"requestTestNotification"` CallbackReference string `json:"callbackReference"` WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` FilterCriteria *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"` //FilterCriteria *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"` ExpiryDeadline *TimeStamp `json:"expiryDeadline,omitempty"` } Loading
go-apps/meep-vis/server/api_v2xi.go +2 −4 Original line number Diff line number Diff line Loading @@ -58,11 +58,9 @@ func SubPOST(w http.ResponseWriter, r *http.Request) { } func V2xMessagePOST(w http.ResponseWriter, r *http.Request) { V2xMsgPublicationPOST(w, r) v2xMsgPublicationPOST(w, r) } func V2xMsgDistributionServerPost(w http.ResponseWriter, r *http.Request) { // TODO w.Header().Set("Content-Type", "application/json; charset=UTF-8") w.WriteHeader(http.StatusOK) v2xMsgDistributionServerPost(w, r) }
go-apps/meep-vis/server/routers.go +8 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ func NewRouter() *mux.Router { } func Index(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello World!") fmt.Fprintf(w, "Hello World from MEC 030!") } var routes = HttpRoutes{ Loading Loading @@ -150,6 +150,13 @@ var routes = HttpRoutes{ V2xMessagePOST, }, HttpRoute{ "V2xMsgDistributionServerPost", strings.ToUpper("Post"), "/vis/v2/provide_v2x_msg_distribution_server_info", V2xMsgDistributionServerPost, }, HttpRoute{ "Mec011AppTerminationPOST", strings.ToUpper("Post"), Loading
go-apps/meep-vis/server/subscriptionCommon.go +6 −6 Original line number Diff line number Diff line Loading @@ -30,6 +30,6 @@ type SubscriptionCommon struct { RequestTestNotification bool `json:"requestTestNotification"` CallbackReference string `json:"callbackReference"` WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` FilterCriteria *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"` //FilterCriteria *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"` ExpiryDeadline *TimeStamp `json:"expiryDeadline,omitempty"` }