From 648865f6a654900661d2b374209ee4b9adcc8c58 Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Tue, 23 Sep 2025 10:33:46 +0330 Subject: [PATCH] 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. --- cmd/web/docs/docs.go | 4 ++-- cmd/web/docs/swagger.json | 4 ++-- cmd/web/docs/swagger.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/web/docs/docs.go b/cmd/web/docs/docs.go index d9611ca..2d91973 100644 --- a/cmd/web/docs/docs.go +++ b/cmd/web/docs/docs.go @@ -5529,7 +5529,7 @@ const docTemplate = `{ } } }, - "/api/v1/notifications/all-seen/{user_id}": { + "/api/v1/notifications/mark": { "get": { "security": [ { @@ -5578,7 +5578,7 @@ const docTemplate = `{ } } }, - "/api/v1/notifications/mark-seen/{id}": { + "/api/v1/notifications/mark/{id}": { "get": { "security": [ { diff --git a/cmd/web/docs/swagger.json b/cmd/web/docs/swagger.json index da7e134..f6f9637 100644 --- a/cmd/web/docs/swagger.json +++ b/cmd/web/docs/swagger.json @@ -5523,7 +5523,7 @@ } } }, - "/api/v1/notifications/all-seen/{user_id}": { + "/api/v1/notifications/mark": { "get": { "security": [ { @@ -5572,7 +5572,7 @@ } } }, - "/api/v1/notifications/mark-seen/{id}": { + "/api/v1/notifications/mark/{id}": { "get": { "security": [ { diff --git a/cmd/web/docs/swagger.yaml b/cmd/web/docs/swagger.yaml index b41ca31..5520cdc 100644 --- a/cmd/web/docs/swagger.yaml +++ b/cmd/web/docs/swagger.yaml @@ -4743,7 +4743,7 @@ paths: summary: Get notifications for the user tags: - Notification - /api/v1/notifications/all-seen/{user_id}: + /api/v1/notifications/mark: get: consumes: - application/json @@ -4774,7 +4774,7 @@ paths: summary: Mark all notifications as seen for a user tags: - Notification - /api/v1/notifications/mark-seen/{id}: + /api/v1/notifications/mark/{id}: get: consumes: - application/json