Commit 90df3f77 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update MEC 030 router & APIs

parent 85a07b4f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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)
}
+8 −1
Original line number Diff line number Diff line
@@ -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{
@@ -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"),
+6 −6
Original line number Diff line number Diff line
@@ -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"`
}