Commit 4a2a92e6 authored by piscione's avatar piscione
Browse files

Added callback into subscription endpoint.

parent 92c0bc50
Pipeline #5783 passed with stage
in 0 seconds
...@@ -218,6 +218,26 @@ paths: ...@@ -218,6 +218,26 @@ paths:
$ref: '#/components/responses/406' $ref: '#/components/responses/406'
'429': '429':
$ref: '#/components/responses/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: get:
tags: tags:
- '' - ''
......
...@@ -236,7 +236,24 @@ paths: ...@@ -236,7 +236,24 @@ paths:
$ref: '#/components/responses/406' $ref: '#/components/responses/406'
'429': '429':
$ref: '#/components/responses/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: get:
tags: tags:
- 'app-pkgm' - 'app-pkgm'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment