[skip ci] Updated swagger docs
This commit is contained in:
parent
aad6bc08f6
commit
4625377752
@ -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}": {
|
||||
|
@ -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}": {
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user