From 4a2a92e61408970a92fe75afc344817a37a4099d Mon Sep 17 00:00:00 2001 From: piscione Date: Tue, 26 Jan 2021 18:07:06 +0100 Subject: [PATCH] Added callback into subscription endpoint. --- MEC010-2_AppLcm.yaml | 20 ++++++++++++++++++++ MEC010-2_AppPkgMgmt.yaml | 19 ++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/MEC010-2_AppLcm.yaml b/MEC010-2_AppLcm.yaml index 5fabe92..eeea7ab 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 353ba45..a3fe87d 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' -- GitLab