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
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
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
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
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
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
list_custom_list_details(*, custom_list_id, current_user)
List MLTE custom list, with details for each entry in list.
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
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
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
70 71 72 73 74 75 76 77 78 79 |
|
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
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|