Skip to content

API Documents

Zin0_0 edited this page Nov 23, 2020 · 6 revisions

API ์„ค๊ณ„

User API๋ฅผ ์ œ์™ธํ•œ ๋ชจ๋“  API์— header๋กœ ์ธ์ฆ token๊ฐ’์„ ๋„ฃ๋Š”๋‹ค.

headers:{
 'Authorization': 'Bearer ${tokenString}'
}

Method url description
GET api/user/oauth/naver naver ์•„์ด๋””๋กœ ๋กœ๊ทธ์ธ
GET api/user/me ์‚ฌ์šฉ ์ค‘์ธ user์˜ ์ •๋ณด ํ™•์ธ

Project CRUD

Method url description
GET api/project project ์ „์ฒด ์กฐํšŒ
GET api/project/:projectId project ๊ฐœ๋ณ„ ์กฐํšŒ
POST api/project project ์ƒ์„ฑ
PATCH api/project/:projectId project ์ œ๋ชฉ ์ˆ˜์ •
PUT api/project/:projectId project ์ˆ˜์ •
DELETE api/project/:projectId project ์‚ญ์ œ

Section CUD

Method url description
POST api/project/:projectId/section section ์ƒ์„ฑ
PATCH api/project/:projectId/section/:sectionId section ์ œ๋ชฉ ์ˆ˜์ •
DELETE api/project/:projectId/section/:sectionId section ์‚ญ์ œ

Task CRUD

Method url description
GET /api/task/:taskId task ๊ฐœ๋ณ„ ์กฐํšŒ
POST api/task task ์ƒ์„ฑ
PATCH api/task/:taskId task ์ˆ˜์ •
DELETE api/task/:taskId task ์‚ญ์ œ

Alarm CRUD

Method url description
POST /api/task/:taskId/alarm ๊ฐœ๋ณ„ task ์•Œ๋žŒ ์ถ”๊ฐ€
PUT /api/task/:taskId/alarm ๊ฐœ๋ณ„ task ์•Œ๋žŒ ๋ณ€๊ฒฝ
DELETE /api/task/:taskId/alarm ๊ฐœ๋ณ„ task ์•Œ๋žŒ ์‚ญ์ œ

Comment CRUD

Method URL Description
GET /api/task/:taskId/comment task์— ๋‹ฌ๋ฆฐ ๋ชจ๋“  comment ์กฐํšŒ
POST /api/task/:taskId/comment task์— comment ์ƒ์„ฑ
PUT /api/task/:taskId/comment/:commentId task์— ๋‹ฌ๋ฆฐ comment ์ˆ˜์ •
DELETE /api/task/:taskId/comment/:commentId task์— ๋‹ฌ๋ฆฐ comment ์‚ญ์ œ

Bookmark CRUD

Method URL Description
GET /api/task/:taskId/bookmark bookmark ์ „์ฒด ์กฐํšŒ
POST /api/task/:taskId/bookmark bookmark ์ƒ์„ฑ
PUT /api/task/:taskId/bookmark/:bookmarkId bookmark ์ˆ˜์ •
DELETE /api/task/:taskId/bookmark/:bookmarkId bookmark ์‚ญ์ œ
Method URL Description
GET api/label label ์ „์ฒด ์กฐํšŒ
POST api/label label ์ƒ์„ฑ
PUT api/label/:labelId label ์ˆ˜์ •
DELETE api/label/:labelId label ์‚ญ์ œ
Clone this wiki locally