[skip ci] Updated swagger docs

This commit is contained in:
Frederick [Bot] 2023-10-22 17:21:16 +00:00 committed by kolaente
parent aad6bc08f6
commit 4625377752
3 changed files with 69 additions and 0 deletions

View File

@ -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}": {

View File

@ -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}": {

View File

@ -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: