Skip to content

Commit

Permalink
update topic subscribers mgmt api docs (#135)
Browse files Browse the repository at this point in the history
CPCN-355
  • Loading branch information
petrjasek authored Oct 5, 2023
1 parent 667054f commit ecc41cf
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 ecc41cf

Please sign in to comment.