트윗 개별 조회

GET /tweets/{tweetId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Response

{
  "tweetId": 1,
  "writerId": "Netflix",
  "writerName": "Netflix",
  "writerProfileImg": "이미지url",
  "content": "넷플릭스 신작 대개봉",
  "likeCnt": 12,
  "commentCnt": 2,
  "createdDate": 2025-05-14T01:06:55.323,
  "comments": [
    {
      "commentorName": "iloveNetflix",
      "commentorId": "iluvNetflix",
      "elapsedTime": 12:00,
      "comment": "wow I like it",
      "likeCnt": 1,
      "commentCnt": 1
    },
    {
      "commentorName": "hater",
      "commentorId": "hater",
      "elapsedTime": 6:00,
      "comment": "i hate it",
      "likeCnt": 0,
      "commentCnt": 5
    }
  ]
}

  • 간단한 토이프로젝트인 관계로 해당 게시글의 트윗에 달린 댓글들을 조회하는 api 따로 분리하지 않았음

Last updated