Loading examples/demo3/src/backend/server/demo3_service.go +4 −0 Original line number Diff line number Diff line Loading @@ -1104,6 +1104,10 @@ func amsSendSubscription(appInstanceId string, device string, callBackUrl string inlineSubscription := ams.ConvertMobilityProcedureSubscriptionToInlineSubscription(&mobilityProcedureSubscription) mobilitySubscription, resp, err := amsClient.AmsiApi.SubPOST(context.TODO(), *inlineSubscription) if err != nil { log.Error(err.Error()) return "", err } hRefLink := mobilitySubscription.Links.Self.Href // Find subscription id from response Loading go-packages/meep-ams-client/api_amsi.go +3 −13 Original line number Diff line number Diff line Loading @@ -1371,7 +1371,7 @@ func (a *AmsiApiService) SubGET(ctx context.Context, localVarOptionals *SubGETOp ) // create path and map variables localVarPath := a.client.cfg.BasePath + "/subscriptions/" localVarPath := a.client.cfg.BasePath + "/subscriptions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} Loading Loading @@ -1528,7 +1528,7 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( ) // create path and map variables localVarPath := a.client.cfg.BasePath + "/subscriptions/" localVarPath := a.client.cfg.BasePath + "/subscriptions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} Loading Loading @@ -1560,6 +1560,7 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( localVarHttpResponse, err := a.client.callAPI(r) if err != nil || localVarHttpResponse == nil { fmt.Println("SubPOST: In error: ", err.Error()) return localVarReturnValue, localVarHttpResponse, err } Loading @@ -1583,17 +1584,6 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 201 { var v InlineSubscription err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr } newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr } if localVarHttpResponse.StatusCode == 400 { var v ProblemDetails err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) Loading go-packages/meep-ams-client/model_InlineSubscription.go +14 −13 Original line number Diff line number Diff line Loading @@ -29,8 +29,10 @@ SubscriptionType string `json:"subscriptionType"` /* Common */ Links *AdjacentAppInfoSubscriptionLinks `json:"_links,omitempty"` Links *MobilityProcedureSubscriptionLinks `json:"_links,omitempty"` CallbackReference string `json:"callbackReference"` RequestTestNotification bool `json:"requestTestNotification,omitempty"` WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` ExpiryDeadline *TimeStamp `json:"expiryDeadline,omitempty"` /* MobilityProcedureSubscription */ Loading @@ -40,4 +42,3 @@ // NOTE: to avoid json parameter conflict, use superset filterCriteria from MobilityProcedure // FilterCriteria *AdjacentAppInfoSubscriptionFilterCriteria `json:"filterCriteria"` } No newline at end of file Loading
examples/demo3/src/backend/server/demo3_service.go +4 −0 Original line number Diff line number Diff line Loading @@ -1104,6 +1104,10 @@ func amsSendSubscription(appInstanceId string, device string, callBackUrl string inlineSubscription := ams.ConvertMobilityProcedureSubscriptionToInlineSubscription(&mobilityProcedureSubscription) mobilitySubscription, resp, err := amsClient.AmsiApi.SubPOST(context.TODO(), *inlineSubscription) if err != nil { log.Error(err.Error()) return "", err } hRefLink := mobilitySubscription.Links.Self.Href // Find subscription id from response Loading
go-packages/meep-ams-client/api_amsi.go +3 −13 Original line number Diff line number Diff line Loading @@ -1371,7 +1371,7 @@ func (a *AmsiApiService) SubGET(ctx context.Context, localVarOptionals *SubGETOp ) // create path and map variables localVarPath := a.client.cfg.BasePath + "/subscriptions/" localVarPath := a.client.cfg.BasePath + "/subscriptions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} Loading Loading @@ -1528,7 +1528,7 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( ) // create path and map variables localVarPath := a.client.cfg.BasePath + "/subscriptions/" localVarPath := a.client.cfg.BasePath + "/subscriptions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} Loading Loading @@ -1560,6 +1560,7 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( localVarHttpResponse, err := a.client.callAPI(r) if err != nil || localVarHttpResponse == nil { fmt.Println("SubPOST: In error: ", err.Error()) return localVarReturnValue, localVarHttpResponse, err } Loading @@ -1583,17 +1584,6 @@ func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) ( error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 201 { var v InlineSubscription err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr } newErr.model = v return localVarReturnValue, localVarHttpResponse, newErr } if localVarHttpResponse.StatusCode == 400 { var v ProblemDetails err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) Loading
go-packages/meep-ams-client/model_InlineSubscription.go +14 −13 Original line number Diff line number Diff line Loading @@ -29,8 +29,10 @@ SubscriptionType string `json:"subscriptionType"` /* Common */ Links *AdjacentAppInfoSubscriptionLinks `json:"_links,omitempty"` Links *MobilityProcedureSubscriptionLinks `json:"_links,omitempty"` CallbackReference string `json:"callbackReference"` RequestTestNotification bool `json:"requestTestNotification,omitempty"` WebsockNotifConfig *WebsockNotifConfig `json:"websockNotifConfig,omitempty"` ExpiryDeadline *TimeStamp `json:"expiryDeadline,omitempty"` /* MobilityProcedureSubscription */ Loading @@ -40,4 +42,3 @@ // NOTE: to avoid json parameter conflict, use superset filterCriteria from MobilityProcedure // FilterCriteria *AdjacentAppInfoSubscriptionFilterCriteria `json:"filterCriteria"` } No newline at end of file