Skip to content

Tag Alarm

Juhyeon edited this page Dec 30, 2019 · 1 revision

Fetch : 알림 내 컨텐츠 목록 보기

response body

[
  {
    "message": "정다은님이 게시물에서 회원님을 언급하셨습니다.",
    "timestamp": "58초 전",
    "link": "api/post/55/detail",
    "read": false,
    "sender": {
      "name": "정다은",
      "profile": "temp-url : aws s3"
    }
  },
  {
    "message": "주현님이 게시물에서 회원님을 언급하셨습니다.",
    "timestamp": "50분 전",
    "link": "api/post/53/detail",
    "read": true,
    "sender": {
      "name": "주현",
      "profile": "temp-url : aws s3"
    }
  }
]

Count : 태그에 대한 새로운 (읽지 않은) 알림 개수 받기

response body

{
  "count": 1
}

response body 추가 설명

<Fetch>
read : 해당 알림을 읽었으면 true/ 아직 읽지 않았으면 false
link : 알림에 해당하는 post 상세 페이지로 이동할 수 있는 api 
     (swagger : Post 알림 클릭 시 -> 1개 글 상세보기 (request : 글 Id))