HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel

기능
카테고리별 게시글 전체 조회
도메인
POST
응답 코드
200
HTTP method
GET
담당자
진행상황
완료
완료
완료
Path
/posts?userId={userId}&categoryId={categoryId}&cursorId={cursorId}
메모
- 10개씩 무한 스크롤(커서 페이징)

Request

Parameters = { "userId": Number, "categoryId": Number, "cursorId": Number } Body = null
cursorId는 새로운 데이터 10개를 불러오기전 마지막으로 불러왔던 postId입니다. 처음 호출시 0로 넣어주세요~

Response

 
[ { "categoryName":String, "colorCode":String, "postId": Number, "content": String, "score": Number, "imageUrl": String, "fileUrl": String, "selectedDate": Date(yyyy-MM-dd), "likeId": Number, "isLiked": Boolean }, ... ]