Update Notification API Endpoints and Documentation

- Changed the endpoint for marking notifications as seen to improve clarity and consistency in the API structure.
- Updated the endpoint for marking all notifications as seen to a more descriptive path.
- Reflected these changes in the Swagger documentation, ensuring accurate representation of the updated API endpoints for consumers.
This commit is contained in:
n.nakhostin
2025-09-23 10:33:46 +03:30
parent e1ae090ff9
commit 648865f6a6
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -5529,7 +5529,7 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/notifications/all-seen/{user_id}": { "/api/v1/notifications/mark": {
"get": { "get": {
"security": [ "security": [
{ {
@@ -5578,7 +5578,7 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/notifications/mark-seen/{id}": { "/api/v1/notifications/mark/{id}": {
"get": { "get": {
"security": [ "security": [
{ {
+2 -2
View File
@@ -5523,7 +5523,7 @@
} }
} }
}, },
"/api/v1/notifications/all-seen/{user_id}": { "/api/v1/notifications/mark": {
"get": { "get": {
"security": [ "security": [
{ {
@@ -5572,7 +5572,7 @@
} }
} }
}, },
"/api/v1/notifications/mark-seen/{id}": { "/api/v1/notifications/mark/{id}": {
"get": { "get": {
"security": [ "security": [
{ {
+2 -2
View File
@@ -4743,7 +4743,7 @@ paths:
summary: Get notifications for the user summary: Get notifications for the user
tags: tags:
- Notification - Notification
/api/v1/notifications/all-seen/{user_id}: /api/v1/notifications/mark:
get: get:
consumes: consumes:
- application/json - application/json
@@ -4774,7 +4774,7 @@ paths:
summary: Mark all notifications as seen for a user summary: Mark all notifications as seen for a user
tags: tags:
- Notification - Notification
/api/v1/notifications/mark-seen/{id}: /api/v1/notifications/mark/{id}:
get: get:
consumes: consumes:
- application/json - application/json