Global

Methods

(async) createTodo(content, category, tags)

createTodo : 할 일을 추가한다.

Parameters:
Name Type Description
content string

내용(required)

category string

카테코리(optional)

tags Array.<string>

태그들(optional)

Properties:
Name Type Description
completed boolean

완료여부(optional)

Source:

(async) deleteAllTags(id) → {Promise.<any>}

deleteAllTags : 특정 할 일의 모든 태그를 제거한다.

Parameters:
Name Type Description
id id

아이디(required)

Source:
Returns:
Type
Promise.<any>

(async) deleteAllTodo() → {Promise.<any>}

deleteAllTodo : 모든 할 일을 제거한다.

Source:
Returns:
Type
Promise.<any>

(async) deleteTag(id, tag) → {Promise.<any>}

deleteTag : 특정 할 일의 특정 태그를 삭제한다.

Parameters:
Name Type Description
id id

아이디(required)

tag Tag

태그(required)

Source:
Returns:
Type
Promise.<any>

(async) deleteTodo(id) → {Promise.<any>}

deleteTodo : ID를 기반으로 특정 할 일을 삭제한다.

Parameters:
Name Type Description
id id

아이디(required)

Source:
Returns:
Type
Promise.<any>

(async) getAllTodo() → {Promise.<Array.<Todo>>}

getAllTodo : 모든 할 일을 조회한다.

Source:
Returns:
Type
Promise.<Array.<Todo>>

(async) getTodo(id) → {Promise.<Todo>}

getTodo : ID를 기반으로 특정 할 일을 조회한다.

Parameters:
Name Type Description
id id

아이디(required)

Source:
Returns:
Type
Promise.<Todo>

(async) updateTag(id) → {Promise.<Todo>}

updateTag : 특정 할 일의 특정 태그를 수정한다.

Parameters:
Name Type Description
id UpdateTodo

아이디(required)

Source:
Returns:
Type
Promise.<Todo>

(async) updateTodo(id) → {Promise.<Todo>}

updateTodo : ID를 제외한 모든 속성을 수정한다.

Parameters:
Name Type Description
id UpdateTodo

아이디(required)

Source:
Returns:
Type
Promise.<Todo>

Type Definitions

Todo

A Todo data type

Type:
  • Object
Properties:
Name Type Description
id string

아이디(required)

content string

내용(required)

completed boolean

완료여부(required)

category string

카테코리(required)

tags Array.<string>

태그들(optional)

Source: