Skip to content

[POST] 댓글 생성

DongGeon0908 edited this page Oct 16, 2021 · 1 revision

URL

METHOD URL ...
POST /club/{clubId}/board/{boardId}/post/{postId}/comment 댓글 생성

URL

http://3.38.13.2:8080/api/club/1/board/1/post/1/comment

Request Header

{
    "Content-Type": "application/json"
}

Request Body

{
	"content" : "댓글테스트입니다!"
}

Response Success When Include Club

{
  "status": 201,
  "message": "CREATE_COMMENT_SUCCESS",
  "data": null
}

Response Fail With InvalidArgument

{
  "status": 400,
  "message": "INVALID_COMMENT_CONTENT"
}

Response Fail With Non Exits

{
  "status": 400,
  "message": "NOT_EXIST_MEMBER"
}

{
  "status": 400,
  "message": "NOT_EXIST_CLUB"
}

{
  "status": 400,
  "message": "NOT_EXIST_POST"
}

Response Fail With Non Include

{
  "status": 400,
  "message": "NON_INCLUDE_CLUB"
}