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

Application Mobility Service integration + swagger API updates

parent ed2cadf3
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ repo:
          # - meep-mg-manager
          # - meep-rnis
          # - meep-wais
          # - meep-ams
          - meep-sandbox-ctrl
          # - meep-tc-engine
          # - meep-app-enablement
@@ -332,6 +333,7 @@ repo:
          meep-mg-manager: charts/meep-mg-manager
          meep-rnis: charts/meep-rnis
          meep-wais: charts/meep-wais
          meep-ams: charts/meep-ams
          meep-sandbox-ctrl: charts/meep-sandbox-ctrl
          meep-tc-engine: charts/meep-tc-engine
          meep-app-enablement: charts/meep-app-enablement
@@ -344,6 +346,7 @@ repo:
          # - meep-mg-manager
          # - meep-rnis
          # - meep-wais
          # - meep-ams
          - meep-sandbox-ctrl
          # - meep-tc-engine
          # - meep-app-enablement
@@ -636,6 +639,40 @@ repo:
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-wais/entrypoint.sh
      meep-ams:
        # location of source code
        src: go-apps/meep-ams
        # location of binary
        bin: bin/meep-ams
        # location of deployment chart
        chart: charts/meep-ams
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-ams.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
        # enable meepctl build
        build: true
        # enable meepctl dockerize
        dockerize: true
        # enable meepctl deploy/delete
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE Application Mobility REST API'
            file: go-apps/meep-ams/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'Application Mobility Service REST API'
            file: config/api/ams-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-ams/entrypoint.sh
      meep-sandbox-ctrl:
        # location of source code
        src: go-apps/meep-sandbox-ctrl
@@ -988,6 +1025,11 @@ repo:
        src: go-packages/meep-wais-client
        # supports linting
        lint: false
      meep-ams-client:
        # location of source code
        src: go-packages/meep-ams-client
        # supports linting
        lint: false
      meep-watchdog:
        # location of source code
        src: go-packages/meep-watchdog
+1013 −0

File added.

Preview size limit exceeded, changes collapsed.

+13 −11
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@ servers:
info:
  title: MEC Application Support API
  version: 2.1.1
  description: The ETSI MEC ISG MEC011 MEC Application Support API described using OpenAPI
  description: 'The ETSI MEC ISG MEC011 MEC Application Support API described using OpenAPI.
<p>**Note**<br>MEC Sandbox supports a selected subset of Application Support API endpoints; complete details on Application Support API can be found on [ETSI Forge](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/011/02.01.01_60/gs_MEC011v020101p.pdf).'
  license:
    name: BSD-3-Clause
    url: 'https://forge.etsi.org/legal-matters'
@@ -15,8 +16,8 @@ externalDocs:
  url: >-
    https://www.etsi.org/deliver/etsi_gs/MEC/001_099/011/02.01.01_60/gs_MEC011v020101p.pdf
tags:
  - name: unsupported
  - name: mec_app_support
  - name: unsupported
paths:
  '/applications/{appInstanceId}/traffic_rules':
    parameters:
@@ -362,6 +363,7 @@ components:
      required:
        - subscriptionType
        - callbackReference
        - _links
        - appInstanceId
      properties:
        subscriptionType:
@@ -1073,7 +1075,7 @@ components:
            Represents the information that the MEP notifies the
            subscribed application instance about the corresponding 
            application instance termination/stop
          operationId: As_AppTerminationNotification_POST
          operationId: AppTerminationNotification_POST
          tags:
            - callbacks
          requestBody:
@@ -1083,45 +1085,45 @@ components:
              description: Expected responses from callback consumer, if it accepts the callback
  links:
    GetIndividualMeDNSRule:
      operationId: As_ApplicationsDnsRule_GET
      operationId: ApplicationsDnsRule_GET
      description: The `dnsRuleId` value returned in the response can be used as the `dnsRuleId` parameter in `GET /applications/{appInstanceId}/dns_rules/{dnsRuleId}`
      parameters:
        dnsRuleId: '$response.body#/dnsRuleId'
    PutIndividualMeDNSRule:
      operationId: As_ApplicationsDnsRule_PUT
      operationId: ApplicationsDnsRule_PUT
      description: The `dnsRuleId` value returned in the response can be used as the `dnsRuleId` parameter in `PUT /applications/{appInstanceId}/dns_rules/{dnsRuleId}`
      parameters:
        dnsRuleId: '$response.body#/dnsRuleId'
    GetIndividualMeTrafficRule:
      operationId: As_ApplicationsTrafficRule_GET
      operationId: ApplicationsTrafficRule_GET
      description: The `trafficRuleId` value returned in the response can be used as the `trafficRuleId` parameter in `GET /applications/{appInstanceId}/traffic_rules/{trafficRuleId}`
      parameters:
        trafficRuleId: '$response.body#/trafficRuleId'
    PutIndividualMeTrafficRule:
      operationId: As_ApplicationsTrafficRule_PUT
      operationId: ApplicationsTrafficRule_PUT
      description: The `trafficRuleId` value returned in the response can be used as the `trafficRuleId` parameter in `PUT /applications/{appInstanceId}/traffic_rules/{trafficRuleId}`
      parameters:
        trafficRuleId: '$response.body#/trafficRuleId'
    GetIndividualmecAppSuptApiSubscription:
      operationId: As_ApplicationsSubscription_GET
      operationId: ApplicationsSubscription_GET
      description: The `subscriptionId` value returned in the response can be used as the `subscriptionId` parameter in `GET /applications/{appInstanceId}/subscriptions/{subscriptionId}`
      parameters:
        description: regex = \/mec_app_support\/v1\/applications\/.*\/subscriptions\/.*\/(.*);subscriptionId = href.match(regex)[1];// where "href" is an attribute within the subscription attribute within the _links attribute
        subscriptionId: 'TBC'
    DelIndividualmecAppSuptApiSubscription:
      operationId: As_ApplicationsSubscription_DELETE
      operationId: ApplicationsSubscription_DELETE
      description: The `subscriptionId` value returned in the response can be used as the `subscriptionId` parameter in `DELETE /applications/{appInstanceId}/subscriptions/{subscriptionId}`
      parameters:
        description: regex = \/mec_app_support\/v1\/applications\/.*\/subscriptions\/(.*);subscriptionId = href.match(regex)[1];// where "href" is an attribute within the subscription attribute within the _links attribute
        subscriptionId: 'TBC'
    GetIndividualmecAppSuptApiSubscriptionLinkList:
      operationId: As_ApplicationsSubscription_GET
      operationId: ApplicationsSubscription_GET
      description: The `subscriptionId` value returned in the response can be used as the `subscriptionId` parameter in `GET /applications/{appInstanceId}/subscriptions/{subscriptionId}`
      parameters:
        description: regex = \/mec_app_support\/v1\/applications\/.*\/subscriptions\/(.*);subscriptionId = href.match(regex)[1];// where "href" is an attribute within the subscription attribute within the _links attribute
        subscriptionId: 'TBC'
    DelIndividualmecAppSuptApiSubscriptionLinkList:
      operationId: As_ApplicationsSubscription_DELETE
      operationId: ApplicationsSubscription_DELETE
      description: The `subscriptionId` value returned in the response can be used as the `subscriptionId` parameter in `DELETE /applications/{appInstanceId}/subscriptions/{subscriptionId}`
      parameters:
        description: regex = \/mec_app_support\/v1\/applications\/.*\/subscriptions\/(.*);subscriptionId = href.match(regex)[1];// where "href" is an attribute within the subscription attribute within the _links attribute
+18 −6
Original line number Diff line number Diff line
@@ -245,6 +245,9 @@ paths:
        content:
          application/json:
            schema:
              type: object
              properties:
                circleNotificationSubscription:
                  $ref: '#/components/schemas/CircleNotificationSubscription'
            example:
              circleNotificationSubscription:
@@ -350,6 +353,9 @@ paths:
        content:
          application/json:
            schema:
              type: object
              properties:
                circleNotificationSubscription:
                  $ref: '#/components/schemas/CircleNotificationSubscription'
            example:
              circleNotificationSubscription:
@@ -447,6 +453,9 @@ paths:
        content:
          application/json:
            schema:
              type: object
              properties:
                distanceNotificationSubscription:
                  $ref: '#/components/schemas/DistanceNotificationSubscription'
            example:
              distanceNotificationSubscription:
@@ -553,6 +562,9 @@ paths:
        content:
          application/json:
            schema:
              type: object
              properties:
                distanceNotificationSubscription:
                  $ref: '#/components/schemas/DistanceNotificationSubscription'
            example:
              distanceNotificationSubscription:
@@ -2328,14 +2340,14 @@ components:
        nanoSeconds:
          description: 'The nanoseconds part of the time. Time is defined as
            Unix-time since January 1, 1970, 00:00:00 UTC.'
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint32
        seconds:
          description: 'The seconds part of the time. Time is defined as
            Unix-time since January 1, 1970, 00:00:00 UTC.'
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint32
+46 −46
Original line number Diff line number Diff line
@@ -985,25 +985,25 @@ components:
                $ref: '#/components/schemas/CellId'
              rsrpNei:
                description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
                format: int32
                format: uint32
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint32
              rsrpSrv:
                description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
                format: int32
                format: uint32
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint32
              rsrqNei:
                description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
                format: int32
                format: uint32
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint32
              rsrqSrv:
                description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
                format: int32
                format: uint32
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint32
@@ -1553,19 +1553,19 @@ components:
      properties:
        rsrp:
          description: "Reference Signal Received Power as defined in ETSI TS\_138 331 [i.13]."
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
        rsrq:
          description: Reference Signal Received Quality as defined in ETSI TS 138 331 [i.13].
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
        sinr:
          description: Reference Signal to Interference & Noise Ratio as defined in ETSI TS 138 331 [i.13].
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
@@ -1598,61 +1598,61 @@ components:
                $ref: '#/components/schemas/CellId'
              rsrpNei:
                description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrpNeiEx:
                description: Extended Reference Signal Received Power, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrpSrv:
                description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrpSrvEx:
                description: Extended Reference Signal Received Power, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrqNei:
                description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrqNeiEx:
                description: Extended Reference Signal Received Quality, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrqSrv:
                description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrqSrvEx:
                description: Extended Reference Signal Received Quality, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              sinrNei:
                description: "Reference Signal \"Signal to Interference plus Noise Ratio\", with value mapping defined in ETSI TS\_136\_133\_[i.16]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              sinrSrv:
                description: "Reference Signal \"Signal to Interference plus Noise Ratio\", with value mapping defined in ETSI TS\_136\_133\_[i.16]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
@@ -1679,31 +1679,31 @@ components:
                $ref: '#/components/schemas/Ecgi'
              rsrp:
                description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrpEx:
                description: Extended Reference Signal Received Power, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrq:
                description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrqEx:
                description: Extended Reference Signal Received Quality, with value mapping defined in ETSI TS 136 133 [i.16].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              sinr:
                description: "Reference Signal \"Signal to Interference plus Noise Ratio\", with value mapping defined in ETSI TS\_136\_133\_[i.16]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
@@ -1753,19 +1753,19 @@ components:
                    x-etsi-mec-origin-type: Structure (inlined)
                  nrBNCellRsrp:
                    description: Reference Signal Received Power measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
                  nrBNCellRsrq:
                    description: Reference Signal Received Quality measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
                  nrBNCellRssi:
                    description: Reference signal SINR measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
@@ -1776,7 +1776,7 @@ components:
                x-etsi-mec-origin-type: Structure (inlined)
              nrCarrierFreq:
                description: "ARFCN applicable for a downlink, uplink or bi-directional (TDD) NR carrier frequency, as defined in ETSI TS\_138.101 [i.15]."
                format: int32
                format: uint32
                type: integer
                x-etsi-mec-cardinality: '1'
                x-etsi-mec-origin-type: Uint32
@@ -1810,19 +1810,19 @@ components:
                    x-etsi-mec-origin-type: Structure (inlined)
                  nrSCellRsrp:
                    description: Reference Signal Received Power measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
                  nrSCellRsrq:
                    description: Reference Signal Received Quality measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
                  nrSCellRssi:
                    description: Reference signal SINR measurement according to mapping table in ETSI TS 138.133 [i.14].
                    format: int32
                    format: uint8
                    type: integer
                    x-etsi-mec-cardinality: 0..1
                    x-etsi-mec-origin-type: Uint8
@@ -1870,19 +1870,19 @@ components:
                x-etsi-mec-origin-type: Structure (inlined)
              nrNCellRsrp:
                description: Reference Signal Received Power measurement according to mapping table in ETSI TS 138.133 [i.14].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              nrNCellRsrq:
                description: Reference Signal Received Quality measurement according to mapping table in ETSI TS 138.133 [i.14].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              nrNCellRssi:
                description: Reference signal SINR measurement according to mapping table in ETSI TS 138.133 [i.14].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
@@ -1904,31 +1904,31 @@ components:
          x-etsi-mec-origin-type: String
        rsrp:
          description: "Reference Signal Received Power as defined in ETSI TS\_136 214 [i.5]."
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint8
        rsrpEx:
          description: Extended Reference Signal Received Power, with value mapping defined in ETSI TS 136 133 [i.16].
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
        rsrq:
          description: Reference Signal Received Quality as defined in ETSI TS 136 214 [i.5].
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint8
        rsrqEx:
          description: Extended Reference Signal Received Quality, with value mapping defined in ETSI TS 136 133 [i.16].
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
        sinr:
          description: "Reference Signal \"Signal to Interference plus Noise Ratio\", with value mapping defined in ETSI TS\_136\_133\_[i.16]."
          format: int32
          format: uint8
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint8
@@ -2049,7 +2049,7 @@ components:
          $ref: '#/components/schemas/TimeStamp'
        timingAdvance:
          description: The timing advance as defined in ETSI TS 136 214 [i.5].
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint32
@@ -2165,19 +2165,19 @@ components:
                $ref: '#/components/schemas/Ecgi'
              rsrp:
                description: "Reference Signal Received Power as defined in ETSI TS\_138 331 [i.13]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              rsrq:
                description: Reference Signal Received Quality as defined in ETSI TS 138 331 [i.13].
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
              sinr:
                description: "Reference Signal plus Interference Noise Ratio as defined in ETSI TS\_138\_331\_[i.13]."
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: 0..1
                x-etsi-mec-origin-type: Uint8
@@ -2426,7 +2426,7 @@ components:
          x-etsi-mec-origin-type: URI
        status:
          description: The HTTP status code for this occurrence of the problem
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: Uint32
@@ -3006,7 +3006,7 @@ components:
            properties:
              csiRsIndex:
                description: ''
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: '1'
                x-etsi-mec-origin-type: Uint8
@@ -3045,7 +3045,7 @@ components:
            properties:
              ssbIndex:
                description: ''
                format: int32
                format: uint8
                type: integer
                x-etsi-mec-cardinality: '1'
                x-etsi-mec-origin-type: Uint8
@@ -3439,13 +3439,13 @@ components:
      properties:
        nanoSeconds:
          description: The nanoseconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint32
        seconds:
          description: The seconds part of the time. Time is defined as Unixtime since January 1, 1970, 00:00:00 UTC.
          format: int32
          format: uint32
          type: integer
          x-etsi-mec-cardinality: '1'
          x-etsi-mec-origin-type: Uint32
Loading