-
Notifications
You must be signed in to change notification settings - Fork 4
[GET] 현재 복용 제품 리스트 (혁)
Malibin edited this page Jan 2, 2020
·
4 revisions
혁 -
Issue #6
메소드 | 경로 | 짧은 설명 |
---|---|---|
GET | /product/dose/list | 현재 복용중인 제품 목록 |
Content-Type: application/json
token: user-token
key | 설명 | 타입 | 비고 |
---|---|---|---|
date | 날짜 | String | NON-NULL / format : yyyy-MM-dd |
key | 설명 | 타입 | 비고 |
---|---|---|---|
image_location | 이미지 Url | String | |
product_idx | 제품 인덱스 | Int | |
product_name | 제품명 | String | |
product_company_name | 제품 회사명 | String | |
product_is_import | 해외직구 여부 | Boolean | |
product_price | 가격 | String | "36,800원" |
product_price_per_unit | 단위당 가격 | String | "(1알 750원)" |
product_quantity | 단위 용량 | String | "30정 기준" |
product_is_dosed | 복용 여부 | Boolean | |
product_remain | 남은 개수 | Int |
{
"status":200,
"message":"현재 복용 제품 리스트 가져오기 성공",
"data":[
{
"image_location":"imageUrl",
"product_idx":0,
"product_name":"name",
"product_company_name":"name",
"product_is_import":true,
"product_price":"36,800원",
"product_price_per_unit":"(1알 750원)",
"product_quantity":"30정 기준",
"product_is_dosed":false,
"product_remain":10
},
{
"image_location":"imageUrl",
"product_idx":0,
"product_name":"name",
"product_company_name":"name",
"product_is_import":true,
"product_price":"36,800원",
"product_price_per_unit":"(1알 750원)",
"product_quantity":"30정 기준",
"product_is_dosed":false,
"product_remain":10
}
]
}
- 입력값에 Null Value
{
"status": 400,
"message": "입력 값에 null이 존재합니다.",
"data": null
}
- 서버 내부 에러
{
"status": 500,
"message": "서버 내부 에러",
"data": null
}
.