From 462537775246135151cd2bd58c988b1dac47616f Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Sun, 22 Oct 2023 17:21:16 +0000 Subject: [PATCH] [skip ci] Updated swagger docs --- pkg/swagger/docs.go | 26 ++++++++++++++++++++++++++ pkg/swagger/swagger.json | 26 ++++++++++++++++++++++++++ pkg/swagger/swagger.yaml | 17 +++++++++++++++++ 3 files changed, 69 insertions(+) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 876de2b274a..5bdbdc73b46 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -1289,6 +1289,32 @@ const docTemplate = `{ } } } + }, + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Mark all notifications of a user as read", + "responses": { + "200": { + "description": "All notifications marked as read.", + "schema": { + "$ref": "#/definitions/models.Message" + } + }, + "500": { + "description": "Internal error", + "schema": { + "$ref": "#/definitions/models.Message" + } + } + } } }, "/notifications/{id}": { diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 12ec143d9a3..7a752bb1ecb 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -1281,6 +1281,32 @@ } } } + }, + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "sharing" + ], + "summary": "Mark all notifications of a user as read", + "responses": { + "200": { + "description": "All notifications marked as read.", + "schema": { + "$ref": "#/definitions/models.Message" + } + }, + "500": { + "description": "Internal error", + "schema": { + "$ref": "#/definitions/models.Message" + } + } + } } }, "/notifications/{id}": { diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 3a3d2399466..a4b9cedd472 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -2288,6 +2288,23 @@ paths: summary: Get all notifications for the current user tags: - subscriptions + post: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: All notifications marked as read. + schema: + $ref: '#/definitions/models.Message' + "500": + description: Internal error + schema: + $ref: '#/definitions/models.Message' + summary: Mark all notifications of a user as read + tags: + - sharing /notifications/{id}: post: consumes: