From 94f4c75f3eda668196db1abb6a647dc21ad157ad Mon Sep 17 00:00:00 2001 From: piscione Date: Tue, 26 Jan 2021 18:11:23 +0100 Subject: [PATCH] Added callback to subscription endpoint. --- MEC029_FAI.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/MEC029_FAI.yaml b/MEC029_FAI.yaml index d998613..78079e1 100644 --- a/MEC029_FAI.yaml +++ b/MEC029_FAI.yaml @@ -327,6 +327,28 @@ paths: $ref: '#/components/responses/422' '429': $ref: '#/components/responses/429' + + callbacks: + notification: + '{$request.body#/callbackReference}': + post: + summary: 'Callback POST used to send a notification' + description: 'A notification from FAIS.' + operationId: notificationPOST + requestBody: + description: Subscription notification + required: true + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/OnuAlarmNotification' + - $ref: '#/components/schemas/DevInfoNotification' + - $ref: '#/components/schemas/CmConnNotification' + - $ref: '#/components/schemas/AniAlarmNotification' + responses: + '204': + $ref: '#/components/responses/204' /subscriptions/{subscriptionId}: parameters: -- GitLab