public class TodosApi extends Object
| Constructor and Description |
|---|
TodosApi() |
TodosApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
TodoResponse |
createTodo(TodoData body,
UUID workspaceId)
createTodo
Saves a todo in the database
|
void |
deleteTodo(UUID id,
UUID workspaceId)
deleteTodo
deletes a todo item based on provided id.
|
ApiClient |
getApiClient() |
TodoResponse |
getTodo(UUID id)
getTodo
Retrieves a todo by ID
|
TodoListResponse |
getTodos(String type,
String status,
UUID factSheetId,
UUID userId,
UUID workspaceId,
Boolean getArchived,
Integer size,
Integer page)
getTodos
Retrieves all todos a user can read.
|
void |
setApiClient(ApiClient apiClient) |
TodoResponse |
updateTodo(UUID id,
UUID workspaceId,
TodoData body)
updateTodo
Updates a todo stored in the database.
|
public TodosApi()
public TodosApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public TodoResponse createTodo(TodoData body, UUID workspaceId) throws ApiException
body - Creates a new Todo item (optional)workspaceId - ID of the Workspace that the Todo shall be created in. (optional)ApiException - if fails to make API callpublic void deleteTodo(UUID id, UUID workspaceId) throws ApiException
id - the id of the todo item (required)workspaceId - the workspaceId in case that the SYSTEM deletes the todo (optional)ApiException - if fails to make API callpublic TodoResponse getTodo(UUID id) throws ApiException
id - (required)ApiException - if fails to make API callpublic TodoListResponse getTodos(String type, String status, UUID factSheetId, UUID userId, UUID workspaceId, Boolean getArchived, Integer size, Integer page) throws ApiException
type - Specifies the todo type (optional)status - Specifies the todo status (optional)factSheetId - Specifies the ID of the Fact Sheet the todo is connected to - only works with manual Todos (optional)userId - Specify the user Id for the user to look for (optional)workspaceId - Id of the workspace to get the TodoItems from. (optional)getArchived - If set to true, then todos associated with archived factsheets are retrieved as well (optional, default to false)size - Specifies the number of Todos to get, (optional, default to 10)page - Specifies the page of Todos to get, (optional, default to 1)ApiException - if fails to make API callpublic TodoResponse updateTodo(UUID id, UUID workspaceId, TodoData body) throws ApiException
id - (required)workspaceId - ID of the Workspace that the Todo shall be updated in in case that the user is not assigned to one workspace (optional)body - todo (optional)ApiException - if fails to make API callCopyright © 2019 LeanIX GmbH. All rights reserved.