Files
Barış Uşaklı 2612340bc9 refactor socket notifications (#14135)
* refactor socket notifications

* dunno why these two gut fubared

* add missing yaml files

* more fixes

* fix: schema

* lint: fix lint issues
2026-03-30 12:02:34 -04:00

52 lines
1.3 KiB
YAML

delete:
tags:
- notifications
summary: mark notification unread
description: This operation marks a notification as unread for the calling user.
parameters:
- in: path
name: nid
schema:
type: string
required: true
description: a valid notification id
example: 1
responses:
'200':
description: Notification successfully marked unread.
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}
put:
tags:
- notifications
summary: mark notification read
description: This operation marks a notification as read for the calling user.
parameters:
- in: path
name: nid
schema:
type: string
required: true
description: a valid notification id
example: 1
responses:
'200':
description: Notification successfully marked read
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}