Skip to content

Comment

Juhyeon edited this page Dec 22, 2019 · 3 revisions

Create : 댓글 작성하기 / Update : 댓글 수정하기

Request Body

{
  "content": "댓글 내용"
}

Response Body

{
  "postId": 35,
  "author": "주현",
  "profile": "temp-url: aws s3",
  "content": "댓글 내용",
  "timestamp": "방금 전"
}

Delete : 댓글 삭제하기

Response Body

{
  "commentId": 13
}

Read Comment-List : 1개 게시글 내 댓글 목록

Response Body

{
  "first": true,
  "last": true,
  "contentlist": [
    {
      "postId": 17,
      "author": "주현",
      "profile": "temp-url: aws s3",
      "content": "댓글 내용",
      "timestamp": "2019.12.04"
    },
    {
      "postId": 17,
      "author": "주현",
      "profile": "temp-url: aws s3",
      "content": "두번째 댓글 내용",
      "timestamp": "30분 전"
    }
  ]
}

✔️ HTTP Method, api, url 관련 세부 문서는 swagger에서 관리합니다.