응답 값(200) default: createdAt.desc
{
"comments": [
{
"id": Long!,
"rootCommentId": Long?,
"comment": String!,
"createdAt": String!,
"updatedAt": String!,
"subCommentCount": Number?,
"userId":Long!,
"content": {
"id": Long!,
"type": String! //ex) 코스, 장소
"title": String!
}
}, ...
],
"pageable": {
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"offset": 0,
"pageSize": 20,
"pageNumber": 0,
"paged": true,
"unpaged": false
},
"last": true, // 마지막 페이지 여부
"size": 20, // 한 페이지에서 보여줄 사이즈의 갯수, size를 제한하지 않으면 기본적으로 20으로 초기화 된다.
"number": 0,
"sort": {
"sorted": false,
"unsorted": true,
"empty": true
},
"numberOfElements": 13,
"first": true, // 첫 패이지 여부
"empty": false // 리스트가 비어 있는지 여부
}
}
// 코스와 장소 댓글 분리하도록 했으므로 type 제거
// 여기도 List로 몽땅 보낼건지 페이징 처리할껀지 의논 필요
{
"comments": [
{
"id": 23423423,
"comment": "여기 너무 좋아",
"rootCommentId": 21,
"createdAt": "대강 날짜",
"updatedAt": "대강 날짜",
"subRecommentCount": 0,
"userId": 23,
"content": {
"id": 3, //courseId or PlaceId
"type": "코스 || 장소",
"title": :"[1박2일] 제주도 여행 추천"
}
}, ...
]
}
응답 값(401)
//토큰 인증 에러
응답 값(403)
//권한 없음