Board
모든 프로젝트를 볼 수 있는 페이지
[Board]Get all projects involved
GET https://eton.io/boards
board_user table -> user_id print
Headers
authorization
string
access token
{
"data": {
"boardList": [
{
id : 1,
title : 'project',
admin_userId : 1,
prg_priority : '2,1',
}, {
id : 2,
title : 'project2',
admin_userId : 1,
prg_priority : '1,2',
}
]
},
"message": "ok"
}{ "message": "Invalid access token." }{ "message": "Not Found." }[Board]Create new project
POST /boards
Headers
authorization
string
Access Token
Request Body
title
string
The project's title.
{
"id": {board_id},
"message": "Created."
}{ "message": "Invalid access token." }{ "message": "Not Found." }prg_priority default: '' (빈 문자열)
[Board]Modify the project title.
PATCH /boards/:board_id
Path Parameters
board_id
string
The project's ID.
Headers
authorization
string
Access token.
Request Body
title
string
The project's title.
{ "message": "Ok." }{ "message": "Invalid access token." }{ "message": "Not Found." }[Board]Delete a project
DELETE /boards/:board_id
You can delete an entire project including tasks in there.
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token
{
"message": "Deleted."
}{ "message": "Invalid access token." }{ "message": "Not Found." }[Member]Get all members of the project
GET /boards/:board_id/member
Path Parameters
board_id
string
The project's ID.
Headers
authorization
string
Access token.
{
"data": { "userList" : [
{ "id": "1", "name": "사람1" },
{ "id": "2", "name": "사람2"}
]
},
"message: "Ok"
}{ "message": "Invalid access token." }{ "message": "Not Found." }Send all participants of the project data in an array.
[Member]Add new member to the project
POST /boards/:board_id/member
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
member
array
New participant of the project.
{
"message": "Members are updated."
}{ "message": "Invalid access token." }{ "message": "Not Found." }[Member]Delete a member of the project
DELETE /boards/:board_id/member
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
user_id
array
The user ID
{
"id": {user_id},
"message": "Ok."
}'boarduser' 테이블에서 boardid와 user_id가 일치하는 항목 삭
[Progress]Get a progress list
GET /boards/:board_id/progress
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
{
data: { progressList : {
{
1 : { // key = progress_id
id : 1, // <ProgressList /> name 세팅을 위해서
title : '안녕',
task_priority : '1,2'
},
2 : {
id : 2,
title : 'progress 2',
task_priority : '3', //'3,4'
},
}
},
message: "ok"
}{ "message": "Invalid access token." }{ "message": "Not Found." }task_id를 key로 따로 가지는 value를 객체 형태로 task 모두 담아줄 것.
(progress GET 도 똑같이)
[Progress]Create new progress
POST /boards/:board_id/progress
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
title
string
The progress's title.
{
"id": {progress_id},
"message": "ok"
}{ "message": "Invalid access token." }title: 'progresses' 테이블에 추가
prg_priority -> 'boards' 테이블에서 id가 board_id인 항목에서 string으로 된 리스트 끝에 새 progress_id 추가.
해당 progress_id 리턴해주기.
task_priority 디폴트: '' (빈 문자열)
[Progress]Modify the progress title.
PATCH /boards/:board_id/progress/:progress_id
Path Parameters
progress_id
integer
The progress's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
title
string
The progress's title.
{ "message": "Ok." }{ "message": "Invalid access token." }[Progress]Modify the progress order
PATCH /boards/:board_id/progress
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
prg_priority
string
Progress order
{ "message": "Ok." }{ "message": "Invalid access token." }'boards' table에서 prg_priority 수정.
[Progress]Delete the progress
DELETE /boards/:board_id/progress/progress_id
Path Parameters
progress_id
integer
The progress's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
prg_priority
string
Progress order
{
"id": {progress_id},
"message": "ok"
}{ "message": "Invalid access token." }'board' 테이블 prg_priority 수정
'task' 테이블에서 해당 progress_id인 항목 모두 삭제.
'progresses' 테이블에서 해당 id 삭제.
[Task]Get a task list
GET /boards/:board_id/tasks
Path Parameters
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
{
data: {
taskList : {
1: {
id : 1,
title : 'task card 1',
description: '내용입니다'
},
2: {
id : 2,
title : 'task card 2',
description: '내용입니다'
},
3: {
id : 3,
title : 'task card 3',
description: '내용입니다'
},
4: {
id : 4,
title : 'task card 4',
description: '내용입니다'
}
}
},
message: "Ok"
}{ "message": "Invalid access token." }task_id를 key로 따로 가지는 value를 객체 형태로 task 모두 담아줄 것.
(progress GET 도 똑같이)
[Task]Create new task
POST /boards/:board_id/progress/:progress_id/tasks
Path Parameters
progress_id
string
The progress's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
task_priority
string
The progress's task order.
description
string
The task description.
title
string
The task title.
{
"id": {task_id},
"message": "ok"
}{ "message": "Invalid access token." }progress_id 받아서 task 테이블에 새로 생성한 후, progresses table 의 해당 progress_id의 taskpriority 칼럼에 있는 문자열 끝에 task_id add.
[Task]Modify the task
PATCH /boards/:board_id/tasks/:task_id
Path Parameters
task_id
integer
The task's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
description
string
The task description.
title
string
The task title.
{ "message": "Ok." }{ "message": "Invalid access token." }[Task]Delete the task
DELETE /boards/:board_id/progress/:progress_id/tasks/:task_id
Path Parameters
progress_id
string
The progress's ID.
task_id
string
The task's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
task_priority
string
Task order.
{
"id": {task_id},
"message": "ok"
}{ "message": "Invalid access token." }progresses 테이블에서 task_priority에 들어있는 task_id 삭제.
tasks 테이블에서 해당 항목 삭제.
[Task]Change the task's order in one progress
PATCH /boards/:board_id/progress/:progress_id/tasks/:task_id/vertical
Path Parameters
progress_id
string
The progress's ID.
task_id
string
The task's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
task_priority
string
Task order.
{ "message": "Ok." }{ "message": "Invalid access token." }[Task]Change the task's order in two progresses
PATCH /boards/:board_id/progress/:progress_id/tasks/:task_id/horizontal
Path Parameters
progress_id
string
The previous progress's ID.
task_id
string
The task's ID.
board_id
integer
The project's ID.
Headers
authorization
string
Access token.
Request Body
target
object
prg_id, task_priority
source
object
prg_id, task_priority
{ "message": "Ok." }{ "message": "Invalid access token." }Path parameters의 progress_id는 출발하는 progress의 ID
source, target은 prg_id와 task_priority 담겨 있다.
Last updated
Was this helpful?