group
Group CRUD endpoint.
create_group(*, group, current_user)
Create a MLTE group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group
|
Group
|
The group to create |
required |
Returns:
| Type | Description |
|---|---|
Group
|
The created group |
Source code in mlte/backend/api/endpoints/group.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
delete_group(*, group_name, current_user)
Delete a MLTE group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_name
|
str
|
The group name |
required |
Returns:
| Type | Description |
|---|---|
Group
|
The deleted group |
Source code in mlte/backend/api/endpoints/group.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
edit_group(*, group, current_user)
Edit a MLTE group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group
|
Group
|
The group to edit |
required |
Returns:
| Type | Description |
|---|---|
Group
|
The edited group |
Source code in mlte/backend/api/endpoints/group.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
list_group_details(current_user)
List MLTE group, with details for each group.
Returns:
| Type | Description |
|---|---|
List[Group]
|
A collection of groups with their details. |
Source code in mlte/backend/api/endpoints/group.py
101 102 103 104 105 106 107 108 109 110 111 112 113 | |
list_groups(current_user)
List MLTE group.
Returns:
| Type | Description |
|---|---|
List[str]
|
A collection of group names |
Source code in mlte/backend/api/endpoints/group.py
86 87 88 89 90 91 92 93 94 95 96 97 98 | |
list_permission_details(current_user)
List MLTE permissions, with details.
Returns:
| Type | Description |
|---|---|
List[Permission]
|
A collection of permissions, with details. |
Source code in mlte/backend/api/endpoints/group.py
153 154 155 156 157 158 159 160 161 162 163 164 165 | |
list_permissions(current_user)
List MLTE permissions.
Returns:
| Type | Description |
|---|---|
List[str]
|
A collection of permissions |
Source code in mlte/backend/api/endpoints/group.py
138 139 140 141 142 143 144 145 146 147 148 149 150 | |
read_group(*, group_name, current_user)
Read a MLTE group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_name
|
str
|
The group name |
required |
Returns:
| Type | Description |
|---|---|
Group
|
The read group |
Source code in mlte/backend/api/endpoints/group.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
read_permission(*, permission_str, current_user)
Read a permission, regardless of whether it is assigned to a group or not.
Returns:
| Type | Description |
|---|---|
Permission
|
A permission |
Source code in mlte/backend/api/endpoints/group.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |