diff --git a/MEC010-2_AppLcm.yaml b/MEC010-2_AppLcm.yaml index 5fabe92fd13f9e611d05337f5ec3da7cd4991870..eeea7ab45509123147ee9f1e3e9664b79d3f903b 100644 --- a/MEC010-2_AppLcm.yaml +++ b/MEC010-2_AppLcm.yaml @@ -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: - '' diff --git a/MEC010-2_AppPkgMgmt.yaml b/MEC010-2_AppPkgMgmt.yaml index 353ba455ca45c64536629517f9d1b3fed1e07521..a3fe87df047ef23e919882163b7bef9672c9729a 100644 --- a/MEC010-2_AppPkgMgmt.yaml +++ b/MEC010-2_AppPkgMgmt.yaml @@ -236,7 +236,24 @@ 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: - 'app-pkgm'