Files
NodeBB/public/openapi/write/notifications.yaml

26 lines
856 B
YAML

get:
tags:
- notifications
summary: list notifications
description: This operation returns two lists of notifications — read and unread.
responses:
'200':
description: notifications successfully listed
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../components/schemas/Status.yaml#/Status
response:
type: object
properties:
read:
type: array
items:
$ref: ../components/schemas/NotificationObject.yaml#/NotificationObject
unread:
type: array
items:
$ref: ../components/schemas/NotificationObject.yaml#/NotificationObject