-
Notifications
You must be signed in to change notification settings - Fork 4
API Documents
Jin Young Park edited this page Nov 18, 2020
·
6 revisions
User API๋ฅผ ์ ์ธํ ๋ชจ๋ API์ header๋ก ์ธ์ฆ token๊ฐ์ ๋ฃ๋๋ค.
headers:{
'Authorization': 'Bearer ${tokenString}'
}
Method | url | description |
---|---|---|
GET | api/user/oauth/naver | naver ์์ด๋๋ก ๋ก๊ทธ์ธ |
GET | api/user/me | ์ฌ์ฉ ์ค์ธ user์ ์ ๋ณด ํ์ธ |
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 ์ญ์ |
Method | url | description |
---|---|---|
POST | api/project/:projectId/section | section ์์ฑ |
PATCH | api/project/:projectId/section/:sectionId | section ์ ๋ชฉ ์์ |
DELETE | api/project/:projectId/section/:sectionId | section ์ญ์ |
Method | url | description |
---|---|---|
GET | /api/task/:taskId | task ๊ฐ๋ณ ์กฐํ |
POST | api/task | task ์์ฑ |
PATCH | api/task/:taskId | task ์์ |
DELETE | api/task/:taskId | task ์ญ์ |
Method | url | description |
---|---|---|
POST | /api/task/:taskId/alarm | ๊ฐ๋ณ task ์๋ ์ถ๊ฐ |
PUT | /api/task/:taskId/alarm | ๊ฐ๋ณ task ์๋ ๋ณ๊ฒฝ |
DELETE | /api/task/:taskId/alarm | ๊ฐ๋ณ task ์๋ ์ญ์ |
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 ์ญ์ |
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 ์ญ์ |
URL
GET /api/task/:taskId
Response
{
id : 1,
title: '์์
1',
labels: [{id: 1, title: 'FE'},],
priority: {id: 1, title: '์ฐ์ ์์1'},
alarm: { ... },
dueDate: '2020-11-18',
createdAt: '2020-11-18T07:12:41.000Z',
updatedAt: '2020-11-18T07:12:41.000Z'
childTasks: [{id: 2, title: ...},{}, ...],
}
URL
POST /api/task
Request
{
title : 'ํ ์ผ',
projectId: 1,
labelIdList: [1,2,3],
priorityId: 1,
alarm: {...},
dueDate: '2020-11-18',
parentId: 3
}
Response
{
id: 1,
message: 'ok'
}
URL
PATCH /api/task/:taskId
Request
{
title : 'ํ ์ผ ๋ณ๊ฒฝ' || undefined,
dueDate: '2020-11-19' || undefined,
projectId: 1 || undefined,
labelIds: [1, 2, 3] || undefined,
priority: 3 || undefined,
parentId : 1 || undefined,
}
Response
{
message: 'ok'
}
URL
DELETE /api/task/:taskId
Response
{
message: 'ok'
}
URL
POST /api/task/:taskId/alarm
Request
Response
URL
PUT /api/task/:taskId/alarm
Request
Response
URL
DELETE /api/task/:taskId/alarm
Response
URL
GET /api/task/:taskId/comment
Response
{
comments:
[
{
id: 1,
content: 'https://...'
}
]
}
URL
POST /api/task/:taskId/comment
Request
{
content : '[๋ด์ผ ๋ด์ผํ ๊ฒ](https://www.naver.com) ๊ณต๋ถํ์!'
}
Response
{
id: 1,
message: 'ok'
}
URL
PUT /api/task/:taskId/comment/:commentId
Request
{
'content': '์ฝ๋ฉํธ ์์ '
}
Response
{
'message': 'ok'
}
URL
DELETE /api/task/:taskId/comment/:commentId
Response
{
'message': 'ok'
}
URL
GET /api/task/:taskId/bookmark
Response
{
bookmarks:
{
id: 1,
url: 'https://....'
}
}
URL
POST /api/task/:taskId/bookmark
Request
{
url : 'https://...'
}
Response
{
id: 1,
message: 'ok'
}
URL
PUT /api/task/:taskId/bookmark/:bookmarkId
Request
{
url : 'https://another...'
}
Response
{
'message': 'ok'
}
URL
DELETE /api/task/:taskId/bookmark/:bookmarkId
Response
{
'message': 'ok'
}
Method | URL | Description |
---|---|---|
GET | api/label | label ์ ์ฒด ์กฐํ |
POST | api/label | label ์์ฑ |
PUT | api/label/:labelId | label ์์ |
DELETE | api/label/:labelId | label ์ญ์ |