Board

모든 프로젝트를 볼 수 있는 페이지

[Board]Get all projects involved

GET https://eton.io/boards

board_user table -> user_id print

Headers

Name
Type
Description

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"
}

[Board]Create new project

POST /boards

Headers

Name
Type
Description

authorization

string

Access Token

Request Body

Name
Type
Description

title

string

The project's title.

{
    "id": {board_id}, 
    "message": "Created."
}
  • prg_priority default: '' (빈 문자열)

[Board]Modify the project title.

PATCH /boards/:board_id

Path Parameters

Name
Type
Description

board_id

string

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

title

string

The project's title.

{ "message": "Ok." }

[Board]Delete a project

DELETE /boards/:board_id

You can delete an entire project including tasks in there.

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token

{ 
    "message": "Deleted."
}

[Member]Get all members of the project

GET /boards/:board_id/member

Path Parameters

Name
Type
Description

board_id

string

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

{
    "data": { "userList" : [ 
        { "id": "1", "name": "사람1" },
        { "id": "2", "name": "사람2"}
      ] 
  },
    "message: "Ok"
}
  • Send all participants of the project data in an array.

[Member]Add new member to the project

POST /boards/:board_id/member

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

member

array

New participant of the project.

{
    "message": "Members are updated."
}

[Member]Delete a member of the project

DELETE /boards/:board_id/member

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

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

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

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"
}
  • task_id를 key로 따로 가지는 value를 객체 형태로 task 모두 담아줄 것.

(progress GET 도 똑같이)

[Progress]Create new progress

POST /boards/:board_id/progress

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

title

string

The progress's title.

{
    "id": {progress_id},
    "message": "ok"
}

  • 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

Name
Type
Description

progress_id

integer

The progress's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

title

string

The progress's title.

{ "message": "Ok." }

[Progress]Modify the progress order

PATCH /boards/:board_id/progress

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

prg_priority

string

Progress order

{ "message": "Ok." }
  • 'boards' table에서 prg_priority 수정.

[Progress]Delete the progress

DELETE /boards/:board_id/progress/progress_id

Path Parameters

Name
Type
Description

progress_id

integer

The progress's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

prg_priority

string

Progress order

{
    "id": {progress_id},
    "message": "ok"
}
  • 'board' 테이블 prg_priority 수정

  • 'task' 테이블에서 해당 progress_id인 항목 모두 삭제.

  • 'progresses' 테이블에서 해당 id 삭제.

[Task]Get a task list

GET /boards/:board_id/tasks

Path Parameters

Name
Type
Description

board_id

integer

The project's ID.

Headers

Name
Type
Description

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"
}
  • task_id를 key로 따로 가지는 value를 객체 형태로 task 모두 담아줄 것.

(progress GET 도 똑같이)

[Task]Create new task

POST /boards/:board_id/progress/:progress_id/tasks

Path Parameters

Name
Type
Description

progress_id

string

The progress's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

task_priority

string

The progress's task order.

description

string

The task description.

title

string

The task title.

{
    "id": {task_id},
    "message": "ok"
}
  • progress_id 받아서 task 테이블에 새로 생성한 후, progresses table 의 해당 progress_id의 taskpriority 칼럼에 있는 문자열 끝에 task_id add.

[Task]Modify the task

PATCH /boards/:board_id/tasks/:task_id

Path Parameters

Name
Type
Description

task_id

integer

The task's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

description

string

The task description.

title

string

The task title.

{ "message": "Ok." }

[Task]Delete the task

DELETE /boards/:board_id/progress/:progress_id/tasks/:task_id

Path Parameters

Name
Type
Description

progress_id

string

The progress's ID.

task_id

string

The task's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

task_priority

string

Task order.

{
    "id": {task_id},
    "message": "ok"
}
  • 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

Name
Type
Description

progress_id

string

The progress's ID.

task_id

string

The task's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

task_priority

string

Task order.

{ "message": "Ok." }

[Task]Change the task's order in two progresses

PATCH /boards/:board_id/progress/:progress_id/tasks/:task_id/horizontal

Path Parameters

Name
Type
Description

progress_id

string

The previous progress's ID.

task_id

string

The task's ID.

board_id

integer

The project's ID.

Headers

Name
Type
Description

authorization

string

Access token.

Request Body

Name
Type
Description

target

object

prg_id, task_priority

source

object

prg_id, task_priority

{ "message": "Ok." }
  • Path parameters의 progress_id는 출발하는 progress의 ID

  • source, target은 prg_id와 task_priority 담겨 있다.

Last updated

Was this helpful?