HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
[팀 08] 사이코
[팀 08] 사이코
/
📶
API 설계
/
📃
알림 전체 조회
📃

알림 전체 조회

Method
GET
URL Patterns
api/v1/notifications
인증 필요 여부
O
알림 전체 조회를 한다.
 
  • offset (필수)
    • 알림 번호(index)
    • 0부터 시작
  • limit (필수)
    • 한번에 받아오는 알림 개수
    • 1부터 시작
 
notion image
 

요청

Get api/v1/notifications?offset=&limit
 

응답

200 OK [ { "id": Number, // 알림 id "productId": Number, "title": String, "thumbnailImage": String, "type": String, // ex) 입찰 종료, 상품 댓글 "content": String, // ex) 아쉽게도 이번에는 낙찰받지 못하셨어요. :( 다음에 다신 도전해주세요. "checked": false, // true : 알림 조회한 상태, false: 알림 조회하지 않은 상태 "createdAt": Date, // 알림 생성 시간 "updatedAt": Date }, {} // 유사 데이터 limit 개수만큼 반환 ]
 

📜Update History

checked 반환값 추가 2022/08/12