-
Notifications
You must be signed in to change notification settings - Fork 6
Board API
dh00n edited this page Dec 11, 2020
·
10 revisions
{
"Authorization": "Bearer " + Access Token,
"Content-Type": "application/json",
"Accept": "application/json"
}
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 500 ์๋ฒ ์๋ฌ - url
GET /api/board
- request
none
- response
{ "myBoards": [ { "id": Number, "title": String, "color": String }, ], "invitedBoards": [ { "id": Number, "title": String, "color": String }, ] }
- ์ํ ์ฝ๋
status code ์ค๋ช 201 ์์ฒญ ์ฑ๊ณต 400 ์์ฒญ ๋ฐ๋๊ฐ ์ฌ๋ฐ๋ฅด์ง ์์ 401 ๊ถํ ์๋ฌ 500 ์๋ฒ ์๋ฌ - url
POST /api/board
- request
{ "title": String (required), "color": String (required) }
- response
{ "id": Number }
- ์ํ ์ฝ๋
status code ์ค๋ช 204 ์์ฒญ ์ฑ๊ณต 400 ์์ฒญ ๋ฐ๋๊ฐ ์ฌ๋ฐ๋ฅด์ง ์์ 401 ๊ถํ ์๋ฌ 404 ๋ณด๋ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
PUT /api/board/{boardId}
- request
{ "title": String (required) }
- response
none
- ์ํ ์ฝ๋
status code ์ค๋ช 204 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ๋ณด๋ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
DELETE /api/board/{boardId}
- request
none
- response
none
- ์ํ ์ฝ๋
status code ์ค๋ช 201 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ๋ณด๋ ์กด์ฌ X, ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
POST /api/board/{boardId}/invitation
- request
{ "userId": Number (required) }
- response
none
- ์ํ ์ฝ๋
status code ์ค๋ช 204 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ๋ณด๋ ์กด์ฌ X, ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
DELETE /api/board/{boardId}/invitation/{invitationId}
- request
none
- response
none
- ์ํ ์ฝ๋
status code ์ค๋ช 200 ์์ฒญ ์ฑ๊ณต 401 ๊ถํ ์๋ฌ 404 ๋ณด๋ ์กด์ฌ X, ์ ์ ์กด์ฌ X 500 ์๋ฒ ์๋ฌ - url
GET /api/board/{boardId}
- request
none
- response
{ "id": Number, "creator": { "id": Number, "name": String, "profileImageUrl": String } "title": String, "color": String, "invitedUsers": [ { "id": Number, "name": String, "profileImageUrl": String }, ], "lists": [ { "id": Number, "title": String, "position": Number "cards": [ { "id": Number, "title": String, "position": Number, "commentCount": Number, "dueDate": date }, ] }, ] }
๐ฉ๐ปโ๐ป ๋ฐ์์ฐ |
๐ง๐ปโ๐ป ์ ๋ํ |
๐ง๐ปโ๐ป ์ด๊ฑดํ |
๐ง๐ปโ๐ป ์๋ช
๋ ฌ |
๐ง๐ปโ๐ป ์ฌ์๋ฏผ |
---|---|---|---|---|
@Park-SooYeon | @dh00n | @youngxpepp | @fElix-MR | @tksrl0379 |