0. 곡톡 Response

성곡

{"success":true,"data":{},"message":null}

μ‹€νŒ¨

{"success":false,"error_code":"INVALID_PARAM","message":"μ„€λͺ…","data":null}

1. Products

1.1 μ œν’ˆ λͺ©λ‘ 쑰회

Request

Query Parameters

νŒŒλΌλ―Έν„° (Field) νƒ€μž… (Type) ν•„μˆ˜ (M/O) μ„€λͺ… μ˜ˆμ‹œ
personal_color String O νΌμŠ€λ„ 컬러 ν•„ν„° winter_cool
type String O μ œν’ˆ νƒ€μž… (lip_tint, lip_gloss, lip_stick) lip_tint
texture String O μ œν˜•(맀트, 촉촉) matte λ˜λŠ” moist
brand String O λΈŒλžœλ“œ 헀라 λ“±
product_name String O μ œν’ˆλͺ… μ„ΌμŠˆμ–Ό κΈ€λ‘œμŠ€ λ“±
option_name String O μ˜΅μ…˜λͺ… 422호

Request Example

GET /api/v1/products/ HTTP/1.1
Host: http://127.0.0.1:8000
GET api/v1/products/?type=λ¦½κΈ€λ‘œμŠ€&texture=촉촉 HTTP/1.1
Host: http://127.0.0.1:8000

Response

성곡 (200 OK)

{
    "status": "success",
    "data": {
        "total_count": 231,
        "results": [
            {
                "id": 232,
                "brand": "μ–Όν„°λ„ˆν‹°λΈŒμŠ€ν…Œλ ˆμ˜€",
                "product_name": "립 ν¬μ…˜ μŠˆκ°€ κΈ€λ ˆμ΄μ¦ˆ",
                "option_name": "#19 λ² λ¦¬μŠ€λ¬΄λ”” λ³Ό",
                "price": 38000,
                "personal_color": null,
                "lips_url": "http://127.0.0.1:8000/static/lips/image_lipgloss_313020257.png",
                "review_count": 2,
                "avg_rating": 4.0
            },
...
}

μ‹€νŒ¨ (400 Bad Request)

GET /api/v1/products/?type=tint

{
"status":"error",
"code":"INVALID_PARAMETER_VALUE",
"message":"μœ νš¨ν•˜μ§€ μ•Šμ€ νŒŒλΌλ―Έν„° κ°’μž…λ‹ˆλ‹€. (personal_color)"
}