😋여행 댓글
여행 댓글 등록, 삭제 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"
}
}
여행 댓글을 수정합니다.
PUT
http://localhost:8080/trip/{tripId}/reply/{replyId}
내가 작성한 댓글을 수정합니다.
Path Parameters
Name
Type
Description
tripId*
Long
replyId
Long
Request Body
Name
Type
Description
content*
String
{
"status": "OK",
"msg": "댓글이 성공적으로 수정되었습니다.",
"data": {
"replyId": 13,
"userId": 2,
"tripId": 19,
"content": "댓글 수정 test"
}
}
여행 댓글을 조회합니다.
GET
http://localhost:8080/trip/{tripId}/reply
해당 여행의 댓글 목록을 조회합니다.
Path Parameters
Name
Type
Description
tripId*
Long
```json
{
"status": "OK",
"msg": "댓글 성공적으로 조회되었습니다.",
"data": [
{
"replyId": 6,
"userId": 2,
"tripId": 19,
"content": "테스트 댓글"
},
{
"replyId": 7,
"userId": 2,
"tripId": 19,
"content": "테스트 댓글2"
}
]
}
여행 댓글을 삭제합니다.
DELETE
http://localhost:8080/api/trip/{tripId}/reply/{replyId}
내가 등록한 댓글을 삭제합니다.
Path Parameters
Name
Type
Description
tripId*
Long
replyId*
Long
{
"status": "OK",
"msg": "댓글이 성공적으로 삭제되었습니다.",
"data": null
}
Last updated