😋여행 댓글
여행 댓글 등록, 삭제 api
여행 댓글을 등록합니다.
POST http://localhost:8080/trip/{tripId}/reply
선택한 여행에 댓글을 등록합니다.
Path Parameters
Name
Type
Description
tripId*
Long
Request Body
Name
Type
Description
content*
String
{
"status": "OK",
"msg": "댓글이 등록되었습니다.",
"data": {
"replyId": 16,
"userId": 1,
"tripId": 19,
"content": "테스트 댓글10"
}
}{
"status": "NOT_FOUND",
"code": "NO_SUCH_TRIP",
"msg": "해당하는 여행 정보가 없습니다."
}{
"status": "BAD_REQUEST",
"code": "BAD_REQUEST",
"msg": "댓글을 채워주세요."
}여행 댓글을 수정합니다.
PUT http://localhost:8080/trip/{tripId}/reply/{replyId}
내가 작성한 댓글을 수정합니다.
Path Parameters
Name
Type
Description
tripId*
Long
replyId
Long
Request Body
Name
Type
Description
content*
String
여행 댓글을 조회합니다.
GET http://localhost:8080/trip/{tripId}/reply
해당 여행의 댓글 목록을 조회합니다.
Path Parameters
Name
Type
Description
tripId*
Long
여행 댓글을 삭제합니다.
DELETE http://localhost:8080/api/trip/{tripId}/reply/{replyId}
내가 등록한 댓글을 삭제합니다.
Path Parameters
Name
Type
Description
tripId*
Long
replyId*
Long
Last updated