Skip to content

✔추천 고양이 리스트

alia edited this page Jul 14, 2020 · 6 revisions
메소드 경로 설명
POST /search/recommend 검색창 하단에 입맛이 비슷한 고양이를 찾아주고 유사도 및 캣푸드 추천

Request Header

{
    "Content-Type": "application/json"
}

Request Body

{
    "profileIdx" : 2
}

Response

< Success >

{
    "status": 200,
    "success": true,
    "message": "추천 리스트 조회 성공",
    "data": {
        "resultProfile": [
            {
                "profileIdx": 3,
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594498278969.JPG",
                "profileName": "summer"
            },
            {
                "profileIdx": 4,
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594533901467.JPG",
                "profileName": "ounce"
            },
            {
                "profileIdx": 7,
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594534287812.JPG",
                "profileName": "바람"
            },
            {
                "profileIdx": 9,
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594539623525.JPG",
                "profileName": "칠주년"
            },
            {
                "profileIdx": 12,
                "profileImg": "https://outsopt26.s3.ap-northeast-2.amazonaws.com/1594541226813.JPG",
                "profileName": "아경"
            }
        ],
        "similarity": [
            100,
            67,
            34,
            34,
            34
        ],
        "recommendFoodList": [
            {
                "foodImg": "https://simkongcat.com/web/product/small/201808/f8b313de2f63d363a659d5c7973c8edd.jpg",
                "profileIdx": 3
            },
            {
                "foodImg": "https://image.auction.co.kr/itemimage/14/d1/b8/14d1b82496.jpg",
                "profileIdx": 3
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20200319/6fb743ef4fb013115a8688d2a30ce7ae.jpg",
                "profileIdx": 3
            },
            {
                "foodImg": "https://simkongcat.com/web/product/small/201808/f8b313de2f63d363a659d5c7973c8edd.jpg",
                "profileIdx": 9
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20191202/e1f00653cd0b8a56c0b0b61b7b0fb8e2.jpg",
                "profileIdx": 9
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20200319/f042fe4914a20140a9e879d3959cac92.jpg",
                "profileIdx": 9
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20191202/e1f00653cd0b8a56c0b0b61b7b0fb8e2.jpg",
                "profileIdx": 4
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20200319/f042fe4914a20140a9e879d3959cac92.jpg",
                "profileIdx": 7
            },
            {
                "foodImg": "https://mamacat.co.kr/web/product/big/20191202/e1f00653cd0b8a56c0b0b61b7b0fb8e2.jpg",
                "profileIdx": 12
            }
        ]
    }
}
  • profileIdx : 고양이 인덱스,
  • profileImg : 고양이 프로필 사진,
  • profileName : 고양이 이름,
  • resultProfile : 추천할 고양이 정보 리스트,
  • similarity : 유사도,
  • recommendFoodList : 추천하는 고양이가 남긴 캣푸드 리뷰 리스트 (min -> 0 , max -> 3)

< Fail >

  • 데이터 반환 에러
{
    "status": 400,
    "success": false,
    "message": "입맛이 비슷한 고양이 목록 데이터 반환 실패"
}