댓글 추가

URL: /comment/ [POST]

{ /------! post에 댓글 추가!--------/
   "postid":1,
   "comment":"this is comment for post"
}

{ /------! proj에 댓글 추가!--------/
   "projid":1,
   "comment":"this is comment for proj"
}

{
    "status": "success"
}
{ //댓글을 작성하지 않고 request 한 경우.
    "status": "fail",
    "text": "댓글을 입력해주세요!"
}
{ // 이외 에러
"text": "errorCode:400, 잘못된 요청입니다."
}

댓글 수정

URL: /comment/:id [PUT]

{
   "comment":"update comment"
}
{
    "status": "success"
}
{ //댓글을 작성하지 않고 request 한 경우.
    "status": "fail",
    "text": "수정할 댓글을 입력해주세요!"
}
{ // 이외 에러
"text": "errorCode:400, 잘못된 요청입니다."
}

댓글 삭제