Skip to content

Commit

Permalink
update topic subscribers mgmt api docs
Browse files Browse the repository at this point in the history
CPCN-355
  • Loading branch information
petrjasek committed Oct 4, 2023
1 parent 667054f commit fd6cff7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions server/features/mgmt_api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,8 @@ Feature: Management API
{"label": "topic2"}
"""

When we patch latest
"""
{"subscribers": [{"user_id" :"#users._id#", "notification_type": "real-time"}]}
"""
Then we get updated response
17 changes: 15 additions & 2 deletions server/theme/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,22 @@ components:
default: false
subscribers:
type: array
description: List of User IDs that will receive email notifications for new items
description: Notification subscriptions.
items:
$ref: '#/components/schemas/ObjectId'
type: object
properties:
user_id:
type: string
$ref: '#/components/schemas/ObjectId'
notification_type:
type: string
default: "real-time"
enum:
- "real-time"
- "scheduled"
required:
- user_id
- notification_type
timezone_offset:
type: integer
topic_type:
Expand Down

0 comments on commit fd6cff7

Please sign in to comment.