Commit ae8ef723 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

demo3 codegen fixes

parent 5dff5cdc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ components:
      example:
        mecReady: true
        subscriptions:
          'SerAvailabilitySubscription:':
          SerAvailabilitySubscription:
            subId: subId
          AmsLinkListSubscription:
            subId: subId
@@ -348,13 +348,13 @@ components:
      properties:
        AppTerminationSubscription:
          $ref: '#/components/schemas/ApplicationInstance_AppTerminationSubscription'
        'SerAvailabilitySubscription:':
        SerAvailabilitySubscription:
          $ref: '#/components/schemas/ApplicationInstance_SerAvailabilitySubscription'
        AmsLinkListSubscription:
          $ref: '#/components/schemas/ApplicationInstance_AmsLinkListSubscription'
      description: List of ams subscription unique to device and their id
      example:
        'SerAvailabilitySubscription:':
        SerAvailabilitySubscription:
          subId: subId
        AmsLinkListSubscription:
          subId: subId
+2 −2
Original line number Diff line number Diff line
# Go API Server for server

This section describes how to use AdvantEdge mec services with a scenario demonstrating use-case 1 - 3
Demo 3 is an edge application that can be used with AdvantEDGE or ETSI MEC Sandbox to demonstrate MEC011 and MEC021 usage

## Overview
This server was generated by the [swagger-codegen]
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 0.0.1
- Build date: 2021-11-24T04:23:06.407744-05:00[America/New_York]
- Build date: 2021-12-14T11:05:15.982739-05:00[America/Toronto]


### Running the server
+4 −4
Original line number Diff line number Diff line
@@ -34,10 +34,10 @@ func AppTerminationNotificationCallback(w http.ResponseWriter, r *http.Request)
	appTerminationNotificationCallback(w, r)
}

func ServiceAvailNotificationCallback(w http.ResponseWriter, r *http.Request) {
	serviceAvailNotificationCallback(w, r)
}

func ContextTransferNotificationCallback(w http.ResponseWriter, r *http.Request) {
	stateTransferPOST(w, r)
}

func ServiceAvailNotificationCallback(w http.ResponseWriter, r *http.Request) {
	serviceAvailNotificationCallback(w, r)
}
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ package server

type ApplicationContextState struct {
	// Integer representing state of device being tracked
	Counter int `json:"Counter,omitempty"`
	Counter int32 `json:"Counter,omitempty"`
	// Application UUID
	AppId string `json:"AppId,omitempty"`
	// MEC platform name
+6 −6
Original line number Diff line number Diff line
@@ -122,16 +122,16 @@ var routes = Routes{
	},

	Route{
		"ServiceAvailNotificationCallback",
		"ContextTransferNotificationCallback",
		strings.ToUpper("Post"),
		"/services/callback/service-availability",
		ServiceAvailNotificationCallback,
		"/application/transfer",
		ContextTransferNotificationCallback,
	},

	Route{
		"ContextTransferNotificationCallback",
		"ServiceAvailNotificationCallback",
		strings.ToUpper("Post"),
		"/application/transfer",
		ContextTransferNotificationCallback,
		"/services/callback/service-availability",
		ServiceAvailNotificationCallback,
	},
}
Loading