mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-24 17:25:01 +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": {
|
||||
|
||||
@@ -929,6 +929,17 @@
|
||||
"api.CreateGroupRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"group_link": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"enabled",
|
||||
"enabled-with-approval",
|
||||
"disabled"
|
||||
]
|
||||
},
|
||||
"members": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -937,6 +948,10 @@
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/api.GroupPermissions"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -994,6 +1009,25 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
|
||||
@@ -17,12 +17,23 @@ definitions:
|
||||
type: object
|
||||
api.CreateGroupRequest:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
group_link:
|
||||
enum:
|
||||
- enabled
|
||||
- enabled-with-approval
|
||||
- disabled
|
||||
type: string
|
||||
members:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
name:
|
||||
type: string
|
||||
permissions:
|
||||
$ref: '#/definitions/api.GroupPermissions'
|
||||
type: object
|
||||
type: object
|
||||
api.CreateGroupResponse:
|
||||
properties:
|
||||
@@ -59,6 +70,19 @@ definitions:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
api.GroupPermissions:
|
||||
properties:
|
||||
add_members:
|
||||
enum:
|
||||
- every-member
|
||||
- only-admins
|
||||
type: string
|
||||
edit_group:
|
||||
enum:
|
||||
- every-member
|
||||
- only-admins
|
||||
type: string
|
||||
type: object
|
||||
api.IdentityEntry:
|
||||
properties:
|
||||
added:
|
||||
|
||||
Reference in New Issue
Block a user