Global

Methods

createTodo(todoData)

Description:
  • CREATE : 할일을 추가할 수 있습니다.[내용(content)없이 추가 불가능]

Source:
Parameters:
Name Type Description
todoData Object
Properties
Name Type Description
content string

Todo.content

isCompleted boolean

Todo.isCompleted

category string

Todo.category

tags Array.<Tag>

Todo.tags

getAllTodo() → {Array.<Todo>}

Description:
  • READ : 모든 할일을 조회 할 수 있습니다.

Source:
Returns:
Type
Array.<Todo>

getTodo(todoId) → {Todo}

Description:
  • READ : ID를 기반으로 특정 할 일을 조회할 수 있습니다.

Source:
Parameters:
Name Type Description
todoId number

Todo.id

Returns:
Type
Todo

updateTodo(todoId, todoData)

Description:
  • UPDATE : ID를 제외한 모든 속성을 수정할 수 있습니다.

Source:
Parameters:
Name Type Description
todoId number

Todo.id

todoData Object
Properties
Name Type Description
content string

Todo.content

isCompleted boolean

Todo.isCompleted

category string

Todo.category

tags Array.<Tag>

Todo.tags

updateTag(tagId, name)

Description:
  • UPDATE : 특정 할 일의 특정 태그를 수정할 수 있습니다.

Source:
Parameters:
Name Type Description
tagId number

Tag.id

name string

Tag.name

deleteTodo(todoId)

Description:
  • DELETE : ID를 기반으로 특정 할 일을 삭제할 수 있습니다.

Source:
Parameters:
Name Type Description
todoId number

Todo.id

deleteAllTodo()

Description:
  • DELETE : 모든 할 일을 제거할 수 있습니다.

Source:

deleteTag(todoId, tagId)

Description:
  • DELETE : 특정 할 일의 특정 태그를 삭제할 수 있습니다.

Source:
Parameters:
Name Type Description
todoId number

Todo.id

tagId number

Tag.id

deleteAllTag(todoId)

Description:
  • DELETE : 특정 할 일의 모든 태그를 제거할 수 있습니다.

Source:
Parameters:
Name Type Description
todoId number

Todo.id