Skip to content

[GET] 북마크 조회

Chae Jeong Ah edited this page May 26, 2021 · 3 revisions

[GET] 북마크 조회

METHOD PATH
GET /recommend/bookmark

📌Request-Header

`Content-Type` : `application/json`

📌RESPONSE BODY

성공 - bookmark 가 true인 게시글만 조회 가능

{
    "status": 200,
    "success": true,
    "message": "북마크 가져오기성공",
    "data": [
        {
            "_id": "60a897a6705f0140353f7259",
            "title_idx": 1,
            "title": "다운타우너",
            "image": "https://carrotmarket.s3.ap-northeast-2.amazonaws.com/down.png",
            "review": 89,
            "customer": 31,
            "place": "한남동",
            "bookmark": true,
            "__v": 0
        },
        {
            "_id": "60a897e6705f0140353f725a",
            "title_idx": 2,
            "title": "오복 수산",
            "image": "https://carrotmarket.s3.ap-northeast-2.amazonaws.com/fish.png",
            "review": 75,
            "customer": 24,
            "place": "한남동",
            "bookmark": true,
            "__v": 0
        },
        {
            "_id": "60abebb3149e2523e9fc8eaa",
            "title_idx": 3,
            "title": "파이프그라운드",
            "image": "https://carrotmarket.s3.ap-northeast-2.amazonaws.com/pizza.png",
            "review": 66,
            "customer": 18,
            "place": "한남동",
            "bookmark": true,
            "__v": 0
        }
    ]
}

실패-서버 내부에러

{
    "status": 500,
    "success": false,
    "message": "북마크 가져오기 실패"
}
Clone this wiki locally