From 27ed830ad6b461d92efefd5a5c8a147bb2916219 Mon Sep 17 00:00:00 2001 From: piscione Date: Tue, 26 Jan 2021 18:12:12 +0100 Subject: [PATCH] Added callback into subscription endpoint. --- MEC030_V2XInformationService.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/MEC030_V2XInformationService.yaml b/MEC030_V2XInformationService.yaml index 28d7ed9..4dc7cf3 100644 --- a/MEC030_V2XInformationService.yaml +++ b/MEC030_V2XInformationService.yaml @@ -260,7 +260,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 VIS.' + operationId: notificationPOST + requestBody: + description: Subscription notification + required: true + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/ProvChgUuUniNotification' + - $ref: '#/components/schemas/ProvChgUuMbmsNotification' + - $ref: '#/components/schemas/ProvChgPc5Notification' + - $ref: '#/components/schemas/V2xMsgNotification' + responses: + '204': + $ref: '#/components/responses/204' /subscriptions/{subscriptionId}: parameters: -- GitLab