Commit 502acf50 authored by Simon Pastor's avatar Simon Pastor
Browse files

transit

parent f8ea4690
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1099,7 +1099,7 @@ func subscriptionsGet(w http.ResponseWriter, r *http.Request) {

	default:
		log.Error("Unknown subscription type")
		http.Error(w, "Unknown subscription type", http.StatusInternalServerError)
                w.WriteHeader(http.StatusBadRequest)
		return
	}

@@ -1214,6 +1214,9 @@ func subscriptionsPost(w http.ResponseWriter, r *http.Request) {
		jsonResponse, err = json.Marshal(subscription)

	default:
                nextSubscriptionIdAvailable--
                w.WriteHeader(http.StatusBadRequest)
                return
	}

	//processing the error of the jsonResponse
@@ -1334,6 +1337,8 @@ func subscriptionsPut(w http.ResponseWriter, r *http.Request) {
			jsonResponse, err = json.Marshal(subscription)
		}
	default:
                w.WriteHeader(http.StatusBadRequest)
                return
	}

	if alreadyRegistered {
+0 −2
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ require (
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-redis v0.0.0
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-sessions v0.0.0
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-wais-client v0.0.0 // indirect
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-wais-notification-client v0.0.0
	github.com/antihax/optional v1.0.0 // indirect
	github.com/gorilla/handlers v1.4.0
	github.com/gorilla/mux v1.7.4
@@ -34,5 +33,4 @@ replace (
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-redis => ../../go-packages/meep-redis
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-sessions => ../../go-packages/meep-sessions
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-wais-client => ../../go-packages/meep-wais-client
	github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-wais-notification-client => ../../go-packages/meep-wais-notification-client
)
+1 −0
Original line number Diff line number Diff line
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/InterDigitalInc/AdvantEDGE v1.5.0 h1:Gv1wxW7kV31reTqxX5TflvvYEEqnxaUlKWvgoandpfI=
github.com/KromDaniel/jonson v0.0.0-20180630143114-d2f9c3c389db/go.mod h1:RU+6d0CNIRSp6yo1mXLIIrnFa/3LHhvcDVLVJyovptM=
github.com/KromDaniel/rejonson v0.0.0-20180822072824-00b5bcf2b351 h1:1u1XrfCBnY+GijnyU6O1k4odp5TnqZQTsp5v7+n/E4Y=
github.com/KromDaniel/rejonson v0.0.0-20180822072824-00b5bcf2b351/go.mod h1:HxwfbuElTuGf+/uKZfjJrCnv0BmmpkPJDI7gBwj1KkM=
+18 −0
Original line number Diff line number Diff line
/*
 * AdvantEDGE Radio Network Information Service REST API
 *
 * Radio Network Information Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC012 RNI API](http://www.etsi.org/deliver/etsi_gs/MEC/001_099/012/02.01.01_60/gs_MEC012v020101p.pdf) <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-rnis](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-rnis) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about radio conditions in the network <p>**Details**<br>API details available at _your-AdvantEDGE-ip-address/api_
 *
 * API version: 2.1.1
 * Contact: AdvantEDGE@InterDigital.com
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

type ExpiryNotification struct {
	Links *ExpiryNotificationLinks `json:"_links"`

	ExpiryDeadline *TimeStamp `json:"expiryDeadline"`

	TimeStamp *TimeStamp `json:"timeStamp,omitempty"`
}
Loading