Added callback into subscription endpoint.

Merge request reports

Loading
+20 −0
Changes for MEC010-2_AppLcm.yaml: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -218,6 +218,26 @@ paths:
          $ref: '#/components/responses/406'
        '429':
          $ref: '#/components/responses/429' 
      callbacks:
        notification:
          '{$request.body#/callbackUri}':
            post:
              summary: 'Callback POST used to send a notification'
              description: 'Notification for informing the subscribers about operational state of application instance resources or state changes of an application LCM operation occurrence. It depends on subscription type.'
              operationId: notificationPOST
              requestBody:
                description: Subscription notification
                required: true
                content:
                  application/json:
                    schema:
                      oneOf:
                      - $ref: '#/components/schemas/AppInstNotification'
                      - $ref: '#/components/schemas/AppLcmOpOccNotification'        
              responses:
                '204':
                  $ref: '#/components/responses/204'

    get:
      tags:
      - ''
+17 −0
Changes for MEC010-2_AppPkgMgmt.yaml: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -236,6 +236,23 @@ paths:
          $ref: '#/components/responses/406'
        '429':
          $ref: '#/components/responses/429'
      callbacks:
        notification:
          '{$request.body#/subscription.href}':
            post:
              summary: 'Callback POST used to send a notification'
              description: ' The notification is triggered when a new application package is onboarded'
              operationId: notificationPOST
              requestBody:
                description: Subscription notification
                required: true
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/AppPkgNotification'
              responses:
                '204':
                  $ref: '#/components/responses/204'
                  
    get:
      tags:
Loading