added possibility to update the group description & the avatar

see #417
This commit is contained in:
Bernhard B
2023-10-03 19:31:10 +02:00
parent 2474238cb5
commit b39980e66b
5 changed files with 245 additions and 4 deletions

View File

@@ -505,6 +505,58 @@ var doc = `{
}
}
},
"put": {
"description": "Update the state of a Signal Group.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Groups"
],
"summary": "Update the state of a Signal Group.",
"parameters": [
{
"type": "string",
"description": "Registered Phone Number",
"name": "number",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Group ID",
"name": "groupid",
"in": "path",
"required": true
},
{
"description": "Input Data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api.UpdateGroupRequest"
}
}
],
"responses": {
"204": {
"description": "No Content",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
},
"delete": {
"description": "Delete the specified Signal Group.",
"consumes": [
@@ -1854,6 +1906,17 @@ var doc = `{
}
}
},
"api.UpdateGroupRequest": {
"type": "object",
"properties": {
"base64_avatar": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"api.UpdateProfileRequest": {
"type": "object",
"properties": {