04_API_DOCS - GeulReadyEditor/onego GitHub Wiki

Content

๊ฐ์ฒด ์„ค๋ช…

Board

Variable Type Variable Name
String id
String email
String nickName
String title
String subitle
String titleImage
int likes
Date modDatetime
List<Content> contents
List<Comment> comments
List<String> tags

TempBoard

Variable Type Variable Name
String id
String email
String title
String subitle
String titleImage
Date modDatetime
List<Content> contents
List<Memo> memos
List<String> tags

Content

Variable Type Variable Name
int no
String title
String subitle
String content

Comment

Variable Type Variable Name
String id
String email
String nickName
String comment
Date modDatetime

Memo

Variable Type Variable Name
int no
String memo

User

Variable Type Variable Name
String userId
String email
String nickName
String intro
String profileImage
List<String> scraps
List<String> likes
List<String> followers
List<String> followings
List<String> tags

TempBoard API

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

Board&Comment API

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

User

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



Follow

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





Like

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



โš ๏ธ **GitHub.com Fallback** โš ๏ธ