상품검색 초기 페이지 - SOPT23-Befit/Befit-Server GitHub Wiki

상품 검색 초기 페이지

메서드 경로 짧은 설명
GET /search/firstSearchPage 상품 검색 신상순

변수 설명

키값(변수명) 타입 설명
idx int product_idx(상품 고유번호)
name String 상품 이름
price String 상품 가격
image_url String 상품 이미지 url
product_category_index int 상품 카테고리 인덱스 (outer : 0 , jacket : 1 ...)
brand_idx int 해당 상품 브랜드 고유 번호
date Date 상품 등록 일자
link String 해당 상품 자사 웹뷰 url
measure Object 상품 치수
like_score int 상품 좋아요 갯수
name_korean String 해당 상품 브랜드 korean 이름
name_english String 해당 상품 브랜드 english 이름

요청 헤더

Authorization: token

응답 바디

상품 조회 완료
{
    "status": 200,
    "message": "상품 검색 초기 화면, 상품 조회 완료",
    "data": [
        {
            "idx": 411,
            "name": "램스울 오버핏 브이넥 니트 [BLACK]",
            "price": "69,000",
            "image_url": "https://image.musinsa.com/images/goods_img/20170908/627677/627677_1_500.jpg",
            "product_category_index": 4,
            "brand_idx": 23,
            "date": "2018-12-30T00:00:00.000+0000",
            "link": "m.www.draw-fit.com/product/detail.html?product_no=497&cate_no=49&display_group=1",
            "measure": {
                "L": {
                    "총장": "72",
                    "가슴단면": "60",
                    "소매길이": "53.5",
                    "어깨너비": "70"
                },
                "M": {
                    "총장": "71",
                    "가슴단면": "58",
                    "소매길이": "53",
                    "어깨너비": "69"
                },
                "XL": {
                    "총장": "73",
                    "가슴단면": "62",
                    "소매길이": "54",
                    "어깨너비": "71"
                }
            },
            "like_score": 967,
            "product_like": 0,
            "name_korean": "드로우핏",
            "name_english": "DRAW FIT"
        }]
}        
인증 실패
{
    "status": 401,
    "message": "인증 실패",
    "data": null
}
서버 내부 오류
{
    "status": 500,
    "message": "서버 내부 에러",
    "data": null
}

데이터베이스 에러
{
    "status": 600,
    "message": "데이터베이스 에러",
    "data": null
}