HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
[팀 09] 오프와 에프
[팀 09] 오프와 에프
/
📝
API 명세서
/
📢
요청/응답 값
📢

요청/응답 값

FE 연결
FE 연결
HTTP verbs
GET
Path
/api/v1/places/bookmark
기능
유저가 북마크한 장소 목록 조회
담당자
Kate
도메인
장소
북마크
완료
완료

GET /api/v1/places/bookmark


사용자 토큰 보내주세여

요청 값(params)


"userId" : Number? //required = false // userId 입력이 없을 경우 로그인한 유저의 id로 조회합니다. // 로그인조차 되어있지 않다면 400 "page": Number! //0 "size": Number! //10 "sort": String!, // ?sort=createdAt,desc
 

응답 값(200)


{ "places":[ { "id": Long!, "title": String!, "like": Long!, "usedCount": Long!, // 몇개 코스에서 사용했는지 "category": String!, "thumbnail": String!, "bookmarked": Boolean! }, ... ], "pageable": { "sort": { "empty": true, "sorted": false, "unsorted": true }, "offset": 0, "pageNumber": 0, "pageSize": 5, "paged": true, "unpaged": false }, "sort": { "empty": true, "sorted": false, "unsorted": true }, "size": 5, "number": 0, "first": true, "last": true, "numberOfElements": 0, "empty": true }
 

응답 값(204(No Content))


//텅~

응답 값(400)


// 비로그인 and param(userId) 입력이 안들어왔을 때