custom_list_entry
Custom list Entry CRUD endpoints.
create_custom_list_entry(*, custom_list_id, entry, current_user)
Create a custom list entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry
|
CustomListEntryModel
|
The custom list entry to create |
required |
Returns:
| Type | Description |
|---|---|
CustomListEntryModel
|
The created custom list entry |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
delete_custom_list_entry(*, custom_list_id, custom_list_entry_id, current_user)
Delete a custom list Entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_list_entry_id
|
str
|
The entry id to delete |
required |
Returns:
| Type | Description |
|---|---|
CustomListEntryModel
|
The deleted entry |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
edit_custom_list_entry(*, custom_list_id, entry, current_user)
Edit a custom list entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry
|
CustomListEntryModel
|
The custom list entry to edit |
required |
Returns:
| Type | Description |
|---|---|
CustomListEntryModel
|
The edited custom list entry |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
get_custom_list_parent(*, custom_list_id, current_user)
Get the name of parent custom list of the given custom list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_list_id
|
str
|
Name of custom list to get parent of |
required |
Returns:
| Type | Description |
|---|---|
Optional[CustomListName]
|
Name of parent custom list or None if no parent |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
list_custom_list_details(*, custom_list_id, current_user)
List MLTE custom list, with details for each entry in list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_list_id
|
str
|
Name of custom list to read |
required |
Returns:
| Type | Description |
|---|---|
List[CustomListEntryModel]
|
A collection of custom list entries with their details |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
list_custom_lists(*, current_user)
List MLTE custom lists.
Returns:
| Type | Description |
|---|---|
List[str]
|
A collection of list names |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
73 74 75 76 77 78 79 80 81 82 | |
read_custom_list_entry(*, custom_list_id, custom_list_entry_id, current_user)
Read a custom list Entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
custom_list_entry_id
|
str
|
The entry id to read |
required |
Returns:
| Type | Description |
|---|---|
CustomListEntryModel
|
The read entry |
Source code in mlte/backend/api/endpoints/custom_list_entry.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |