HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
👼
[팀2] 극락이들
/
🌱
백엔드
/
🌨️
REST API 설계
/
📖
특별한 순간 조회
📖

특별한 순간 조회

Description
Mapping 오류 이상 없음
URI
/api/v1/alubms/{albumId}/moments
완료
완료
Mapping 오류
이상 무
Domain
Moment
Method
GET
담당자
ℹ️ Cursor 기반 Pagination이 적용되어 있습니다.

Request

  • content-type : application/json
  • header
    • Authorization : Bearer token
  • parameters
    • path string
      • albumId
        • type : Number
        • 설명 : Album Id path
    • query string
      • cursorId (Optional)
        • type : Number
        • default: 제일 최근
        • 설명 : 조회 되었던 마지막 diary Id
      • pageSize (Optional)
        • type : Number
        • default: 10개
        • 설명 : 몇 개를 가져올 지
        •  

Response

{ "data": { "moments": [ { "diaryId": 1, "recordedAt": "2021-12-19", "thumbnail": "string", "title": "string" }, { "diaryId": 2, "recordedAt": "2021-12-19", "thumbnail": "string", "title": "string" }, { "diaryId": 3, "recordedAt": "2021-12-19", "thumbnail": "string", "title": "string" }, ], "hasNext" : true // ture: 다음 페이지 있음, false : 다음 페이지 없음 (요청 안해도 됨) }, "message": "string", "serverDateTime": "2021-12-19T13:55:40.590Z" }