feature/OVPAY-2394 #49
@ -295,18 +295,71 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
$ref: "#/components/schemas/500Response"
|
$ref: "#/components/schemas/500Response"
|
||||||
/notificationsubscriptions/{notificationSubscriptionId}:
|
/notificationsubscriptions/{notificationSubscriptionId}:
|
||||||
|
parameters:
|
||||||
|
- name: notificationSubscriptionId
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
||||||
|
patch:
|
||||||
|
summary: Update a notification subscription by ID
|
||||||
|
tags:
|
||||||
|
- Notification Subscriptions
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/PatchNotificationSubscriptionRequest"
|
||||||
|
examples:
|
||||||
|
updateNotificationSubscriptionRequest:
|
||||||
|
value:
|
||||||
|
ovPayTokenId: 43
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Notification subscription updated successfully
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/PatchNotificationSubscriptionResponse"
|
||||||
|
examples:
|
||||||
|
updateNotificationSubscriptionResponse:
|
||||||
|
value:
|
||||||
|
notificationSubscriptionId: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
||||||
|
"400":
|
||||||
|
description: Bad request
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
$ref: "#/components/schemas/400Response"
|
||||||
|
"401":
|
||||||
|
description: Unauthorized
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
$ref: "#/components/schemas/401Response"
|
||||||
|
"404":
|
||||||
|
description: Not found
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
$ref: "#/components/schemas/404Response"
|
||||||
|
"500":
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
$ref: "#/components/schemas/500Response"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a notification subscription by ID
|
summary: Delete a notification subscription by ID
|
||||||
tags:
|
tags:
|
||||||
- Notification Subscriptions
|
- Notification Subscriptions
|
||||||
parameters:
|
|
||||||
- name: notificationSubscriptionId
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"204":
|
||||||
description: No content
|
description: No content
|
||||||
@ -1190,6 +1243,24 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
||||||
|
PatchNotificationSubscriptionRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
notificationCategoryId:
|
||||||
|
type: integer
|
||||||
|
example: 1
|
||||||
|
customerProfileId:
|
||||||
|
type: integer
|
||||||
|
example: 1337
|
||||||
|
required:
|
||||||
|
- notificationCategoryId
|
||||||
|
PatchNotificationSubscriptionResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
notificationSubscriptionId:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377
|
||||||
PostSubscriptionActivityRequest:
|
PostSubscriptionActivityRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user