04_API_DOCS - GeulReadyEditor/onego GitHub Wiki
| Variable Type | Variable Name |
|---|---|
| String | id |
| String | |
| String | nickName |
| String | title |
| String | subitle |
| String | titleImage |
| int | likes |
| Date | modDatetime |
| List<Content> | contents |
| List<Comment> | comments |
| List<String> | tags |
| Variable Type | Variable Name |
|---|---|
| String | id |
| String | |
| String | title |
| String | subitle |
| String | titleImage |
| Date | modDatetime |
| List<Content> | contents |
| List<Memo> | memos |
| List<String> | tags |
| Variable Type | Variable Name |
|---|---|
| int | no |
| String | title |
| String | subitle |
| String | content |
| Variable Type | Variable Name |
|---|---|
| String | id |
| String | |
| String | nickName |
| String | comment |
| Date | modDatetime |
| Variable Type | Variable Name |
|---|---|
| int | no |
| String | memo |
| Variable Type | Variable Name |
|---|---|
| String | userId |
| String | |
| String | nickName |
| String | intro |
| String | profileImage |
| List<String> | scraps |
| List<String> | likes |
| List<String> | followers |
| List<String> | followings |
| List<String> | tags |
| Method | Path Parameter | ์ค๋ช | Request Field | Response Field |
|---|---|---|---|---|
| GET | /tempBoard | ํ ํ์ด์ง๋น ์ต๋ 5๊ฐ์ tempBoard ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์จ๋ค | { userEmail:String, pageNumber:int } |
List<tempBoard> |
| GET | /tempBoard | tempBoardId์ ๋์๋๋ ํน์ tempBoard ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์จ๋ค | { tempBoardId:String, } |
List<tempBoard> |
| GET | /tempBoard/count | tempBoardId์ ๋์๋๋ tempBoard ๊ฐฏ์๋ฅผ ๋ถ๋ฌ์จ๋ค | { userEmail:String, } |
List<tempBoard> |
| POST | /tempBoard | tempBoard๋ฅผ ์ ์ฅ ํ๊ณ ์์ฑํ tempBoardId๋ฅผ ๋ฐ๋๋ค. | { tempBoard (id ์ ๋ ฅx) } |
tempBoardId:String |
| POST | /tempBoard | tempBoard๋ฅผ ์์ ํ๊ณ ๊ฐฑ์ ํ tempBoardId๋ฅผ ๋ฐ๋๋ค. | { tempBoard } |
tempBoardId:String |
| DELETE | /tempBoard | tempBoard๋ฅผ ์ญ์ ํ๋ค. | { boardIdx:String } |
boolean |
| Method | Path Parameter | ์ค๋ช | Request Field | Response Field |
|---|---|---|---|---|
| GET | /board | ํ ํ์ด์ง๋น ์ต๋ 5๊ฐ์ board ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์จ๋ค, boardId๋ก ๊ฒ์์ ๊ธธ์ด๊ฐ 1์ธ List<temp_board>๋ฅผ ๋ฐํ. message body์ parameter์ ๋ฐ๋ผ ๊ฐ๊ฐ ๊ฒ์ ๊ฐ๋ฅ | { boardId:String, userEmail:String, title:String, nickName:String, tag:String , (*ํ์)pageNumber:Int } |
List<board> |
| GET | /board/count | ๊ฒ์์(title,nickName,tag ๊ฐ๊ฐ์ ์ด์ฉํ ๊ฒ์๊ฐ๋ฅ, ์ ๋ถ null์ผ ๊ฒฝ์ฐ ์ ์ฒด board๋ฐํ) ํ์ด์ง์ ์ํ ์ด board์ ๊ฐฏ์๋ฅผ ๋ฐํ | { title:String, nickName:String, tag:String } |
Number |
| POST | /board | ์์ฑ ์ค์ธ ๊ธ์ ํฌ์คํ ํ๋ค. | { userEmail:String, nickName:String, title:String, subtitle:String, titleImageFile:MultipartFile, contents:List<Content>, tags:List<String> } |
boolean |
| PUT | /board | ํฌ์คํธ๋ ๊ธ์ ์์ ํ๋ค. | { boardId:String, title:String, subtitle:String, titleImageFile:MultipartFile, contents:List<Content>, tags:List<String> } |
boolean |
| DELETE | /board | ํฌ์คํธ ๊ธ์ ์ญ์ ํ๋ค. | { boardId:String } |
boolean |
| GET | /comment | ํฌ์คํธ์ ๋๊ธ์ 10๊ฐ์ฉ ํ ํ์ด์ง๋ฅผ ๊ฐ์ ธ์จ๋ค. | { boardId:String, pageNumber:Int } |
List<comment> |
| POST | /comment | ํฌ์คํธ์ ๋๊ธ์ ๋ฑ๋กํ๋ค. | { boardId:String, userEmail:String, nickName:String, comment:String } |
boolean |
| PUT | /comment | ํฌ์คํธ์ ๋๊ธ์ ์์ ํ๋ค. | { boardId:String, commentId:String, userEmail:String, nickName:String, comment:String } |
boolean |
| DELETE | /comment | ํฌ์คํธ์ ๋๊ธ์ ์ญ์ ํ๋ค. | { boardId:String, commentId:String } |
boolean |
| Method | Path Parameter | ์ค๋ช | Request Field | Response Field |
|---|---|---|---|---|
| GET | /users/{email} | ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์จ๋ค | { email:String } |
user |
| POST | /users | ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ์ ์ฅํ๋ค | { email:String, nickname:String, intro:String } |
boolean |
| PUT | /users/{email} | ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ์์ ํ๋ค, ๊ฐ๋ณ ์์ ๊ฐ๋ฅ |
{ nickname:String, intro:String, profileImageFile:MultipartFile, tag:String } |
boolean |
| DELETE | /users/{email} | ์ฌ์ฉ์ ์ญ์ ํ๋ค | { email:String } |
boolean |
| Method | Path Parameter | ์ค๋ช | Request Field | Response Field |
|---|---|---|---|---|
| GET | /followers/{email} | ์ฌ์ฉ์ follower ๋ชฉ๋ก์ ๊ฐ์ ธ์จ๋ค | {} | List<String> |
| GET | /followings/{email} | ์ฌ์ฉ์ following ๋ชฉ๋ก์ ๊ฐ์ ธ์จ๋ค | {} | List<String> |
| POST | /followings/{email} | email์ following ๋ชฉ๋ก์ followrEmail์ ์ถ๊ฐํ๊ณ followEmail์ follower๋ชฉ๋ก์ email์ ์ถ๊ฐํ๋ค | { followEmail:String } |
boolean |
| DELETE | /followings/{email} | email์ following ๋ชฉ๋ก์ followrEmail์ ์ญ์ ํ๊ณ followEmail์ follower๋ชฉ๋ก์ email์ ์ญ์ ํ๋ค | { followEmail:String } |
boolean |
| Method | Path Parameter | ์ค๋ช | Request Field | Response Field |
|---|---|---|---|---|
| POST | /{boardId} | ๊ฒ์๊ธ์ ์ข์์ ๋ฒํผ์ ๋๋ฅด๋ฉด, ๊ฒ์๊ธ์ ์ข์์ count๊ฐ 1 ์ฆ๊ฐํ๊ณ user์ ์ข์์ ๊ธ ๋ชฉ๋ก์ ๊ฒ์๊ธ์ด ์ถ๊ฐ๋๋ค. | { userEmail:String } |
boardLikes:int |
| POST | /{boardId} | ์ข์์ ๋ฒํผ์ ๋๋ฅธ ๊ฒ์๊ธ์ ์ข์์ ๋ฒํผ์ ๋ค์ ๋๋ฅด๋ฉด, ๊ฒ์๊ธ์ ์ข์์ count๊ฐ 1 ๊ฐ์ํ๊ณ user์ ์ข์์ ๊ธ ๋ชฉ๋ก์ ํด๋น ๊ฒ์๊ธ์ด ์ญ์ ๋๋ค. | { userEmail:String } |
boardLikes:int |