Trello API

Trello Project API명세서

회원 관리 API

회원가입

POST localhost:3000/api/signup

Request Body

Name
Type
Description

email*

string

실제 이메일 형식대로 작성

password*

string

최소 4자 이상의 영문 대소문자 및 숫자로 작성

confirmPassword*

string

password와 동일하게 작성

nickname*

String

닉네임

회원 정보 조회

GET localhost:3000/api/user/:uid

Headers

Name
Type
Description

uid*

number

유저 아이디

회원 정보 수정

PUT localhost:3000/api/user/:uid

Headers

Name
Type
Description

uid*

number

유저 아이디

Request Body

Name
Type
Description

password*

string

기존 유저 비밀번호

newNickname*

string

수정할 유저 닉네임

newPassword*

string

수정할 유저 비밀번호 (최소 4자 이상의 영문 대소문자 및 숫자로 작성)

로그인 API

로그인

POST localhost:3000/api/login

Request Body

Name
Type
Description

email*

String

이메일

password*

String

비밀번호

멤버 관리 API

한 보드의 멤버 전체 조회

GET localhost:3000/api/board/:bid/member

Request Body

Name
Type
Description

bid

int

멤버 추가 기능

POST localhost:3000/api/member

보드 관리자만 사용 할 수 있는 기능

Request Body

Name
Type
Description

uid

int

bid

int

멤버 삭제 기능

DELETE localhost:3000/api/member/

보드 관리자만 사용 할 수 있는 기능

Cookies

Name
Type
Description

uid

int

Request Body

Name
Type
Description

bid

int

보드관리 API

전체 보기

GET localhost:3000/api/board/:bid

Request Body

Name
Type
Description

bid

integer

조회 될 보드아이디

보드 생성

POST localhost:3000/api/board

Request Body

Name
Type
Description

boardId

integer

보드 아이디

userId

integer

유저 아이디

name

varchar

보드 이름

explanation

varchar

보드 설명

color

varchar

보드 색상

보드 수정

PATCH localhost:3000/api/board/:bid

Request Body

Name
Type
Description

name

varchar

보드 이름

explanation

varchar

보드 설명

color

String

보드 색상

보드 삭제

DELETE localhost:3000/api/board/:bid

Request Body

Name
Type
Description

boardId

integer

보드 아이디

userId

integer

유저 아이디

리스트 API

리스트 조회

GET localhost:3000/api/board/:bid/list

Request Body

Name
Type
Description

lid

number

리스트 생성

POST localhost:3000/api/board/:bid/list

Request Body

Name
Type
Description

title

String

리스트 제목

content

String

리스트 수정

PATCH localhost:3000/api/board/:bid/list/:lid

Request Body

Name
Type
Description

title

String

content

String

리스트 삭제

DELETE localhost:3000/api/board/:bid/list/:lid

카드 관리 API

카드 작성 api

POST localhost:3000/api/board/:bid/list/:lid/card

Headers

Name
Type
Description

bid*

number

보드 아이디

lid*

number

리스트아이디

Request Body

Name
Type
Description

title*

String

카드 제목

color*

String

카드 색상

manager*

String

작업자

explanation*

String

카드 설명

deadline*

String

카드 마감일

카드 목록 조회

GET localhost:3000/api/board/:bid/list/:lid/card

Headers

Name
Type
Description

bid

number

보드아이디

lid

number

리스트아이디

카드 수정

PUT localhost:3000/api/board/:bid/list/:lid/card/:cid

Headers

Name
Type
Description

bid*

number

보드아이디

lid*

number

리스트아이디

cid*

number

카드아이디

Request Body

Name
Type
Description

title*

String

수정할 카드 제목

color*

String

수정할 카드 색상

explanation*

String

수정할 카드 설명

카드 마감일 수정

PATCH localhost:3000/api/board/:bid/list/:lid/card/:cid

Headers

Name
Type
Description

bid*

number

보드아이디

lid*

number

리스트아이디

cid*

number

카드아이디

Request Body

Name
Type
Description

deadline*

date

기존 마감일

NewDeadline*

date

수정한 마감일

카드 삭제

DELETE localhost:3000/api/board/:bid/list/:lid

Headers

Name
Type
Description

lid*

integer

리스트 아이디

Request Body

Name
Type
Description

cid*

number

삭제할 카드 아이디

카드 매니저 API

카드 매니저 조회

GET localhost:3000/api/board/:bid/card/:cid/manager

Headers

Name
Type
Description

uid

number

유저ID

cid

number

카드ID

카드 매니저 추가

POST localhost:3000/api/board/:bid/card/:cid/manager

Request Body

Name
Type
Description

uid

number

cid

number

카드 매니저 변경

PUT localhost:3000/api/board/:bid/card/:cid/manager/:uid

Request Body

Name
Type
Description

uid

number

cid

number

카드 매니저 삭제

DELETE localhost:3000/api/board/:bid/card/:cid/manager/:uid

순서 변경 API

리스트 순서 변경

POST localhost:3000/api/list/:lid/order

Request Body

Name
Type
Description

order

int

카드 순서 변경

POST localhost:3000/api/card/:cid/order

댓글 API

댓글생성

POST localhost:3000/api/board/:bid/card/:cid/comment

Path Parameters

Name
Type
Description

bid*

number

보드 아이디

cid*

number

카드 아이디

Request Body

Name
Type
Description

comment*

String

댓글

댓글 목록 전체 조회

GET localhost:3000/api/board/:bid/card/:cid/comment

Path Parameters

Name
Type
Description

bid*

number

보드 아이디

cid*

number

카드 아이디

댓글 1개 조회

GET localhost:3000/api/board/:bid/card/:cid/comment/:commentId

Path Parameters

Name
Type
Description

bid*

number

보드 아이디

cid*

number

카드 아이디

commentId*

number

댓글 아이디

댓글 수정

PUT localhost:3000/api/board/:bid/card/:cid/comment/:commentid

Headers

Name
Type
Description

commentid*

number

수정할 코멘트 아이디

Request Body

Name
Type
Description

comment*

String

수정할 댓글 내용

댓글 삭제

DELETE localhost:3000/api/board/:bid/card/:cid/comment/:commentId

Last updated