{"success":true,"data":{},"message":null}
{"success":false,"error_code":"INVALID_PARAM","message":"μ€λͺ
","data":null}
Query Parameters
latest: μ΅μ μ (κΈ°λ³Έκ°)| νλΌλ―Έν° (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νΈ |
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
μ±κ³΅ (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
},
...
}
GET /api/v1/products/?type=tint
{
"status":"error",
"code":"INVALID_PARAMETER_VALUE",
"message":"μ ν¨νμ§ μμ νλΌλ―Έν° κ°μ
λλ€. (personal_color)"
}