Skip to content

Commit a1c3d6f

Browse files
committed
Added markAsRead to swagger docs
1 parent b177c0f commit a1c3d6f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

swagger.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,38 @@
14621462
}
14631463
}
14641464
},
1465+
"/notif/markAsRead/id/{id}": {
1466+
"post": {
1467+
"summary": "Mark notification as read",
1468+
"tags": ["Notification"],
1469+
"security": [{ "bearerAuth": [] }],
1470+
"parameters": [
1471+
{
1472+
"in": "path",
1473+
"name": "id",
1474+
"required": true,
1475+
"schema": {
1476+
"type": "string",
1477+
"format": "uuid"
1478+
},
1479+
"description": "Notification ID"
1480+
}
1481+
],
1482+
"responses": {
1483+
"200": {
1484+
"description": "Notification marked as read successfully",
1485+
"content": {
1486+
"application/json": {
1487+
"schema": { "$ref": "#/components/schemas/Notification" }
1488+
}
1489+
}
1490+
},
1491+
"404": {
1492+
"description": "Notification not found"
1493+
}
1494+
}
1495+
}
1496+
},
14651497
"/request": {
14661498
"get": {
14671499
"tags": ["Request"],

0 commit comments

Comments
 (0)