mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
extended create groups endpoint
* added possibility to specify the description, the add group & edit group permissions and the group link state. see #148
This commit is contained in:
@@ -944,6 +944,17 @@ var doc = `{
|
||||
"api.CreateGroupRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"group_link": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"enabled",
|
||||
"enabled-with-approval",
|
||||
"disabled"
|
||||
]
|
||||
},
|
||||
"members": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -952,6 +963,10 @@ var doc = `{
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.GroupPermissions"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1009,6 +1024,25 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.GroupPermissions": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"add_members": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"every-member",
|
||||
"only-admins"
|
||||
]
|
||||
},
|
||||
"edit_group": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"every-member",
|
||||
"only-admins"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.IdentityEntry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user