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:
Bernhard B
2021-07-10 19:51:37 +02:00
parent 99b9d6163a
commit 5dc663e80e
5 changed files with 140 additions and 0 deletions

View File

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