Request
•
headers
◦
Accept: application/json
•
querystring
◦
sort (필수)
▪
recent
▪
likeToday
▪
likeWeek
▪
likeMonth
▪
likeYear
◦
query
▪
{query}
◦
hashtag
▪
{hashtag}
◦
쿼리스트링 예시)
▪
/api/reviews?sort=recent&query=ironman
▪
/api/reviews?sort=recent&hashtag=romance
▪
query와 hashtag 는 둘 다 없거나(전체 조회) 하나만 있어야 함
▪
@RequestParam 쓰시면 됩니다.
•
body
JSON
복사
Response
•
성공시 : 200
{
"data" : [
{
"reviewId": 1,
"title": "리뷰제목",
"content": "글내용",
"nickname": "작성자",
"ratingScore": 10.0,
"movieName": "타이타닉",
"createAt" : "2023-11-23T11:23:59",
"commentCount": 3,
"likeCount" : 5,
"hashtagList": ["A", "B"]
},
{
"reviewId": 2,
"title": "리뷰제목",
"content": "글내용",
"nickname": "작성자",
"ratingScore": 10.0,
"movieName": "타이타닉",
"createAt" : "2023-11-23T11:23:59",
"commentCount": 3,
"likeCount" : 5,
"hashtagList": ["A", "B"]
},
{
"reviewId": 3,
"title": "리뷰제목",
"content": "글내용",
"nickname": "작성자",
"ratingScore": 10.0,
"movieName": "타이타닉",
"createAt" : "2023-11-23T11:23:59",
"commentCount": 3,
"likeCount" : 5,
"hashtagList": ["A", "B"]
},
]
}
JSON
복사
•
실패시 :
◦
400 : Bad Request
◦
401 : Unauthorized
◦
403 : Forbidden