-
Notifications
You must be signed in to change notification settings - Fork 3
현재 주문내역 리스트 조회
Bomi Kim edited this page Jan 7, 2019
·
2 revisions
| 메소드 | 경로 | 짧은 설명 |
|---|---|---|
| GET | /orders | 모든 주문내역 리스트 조회 |
Content-Type: application/json
Authorization: token
| value | 설명 |
|---|---|
| 0 | 주문 요청 |
| 1 | 주문 접수 |
| 2 | 제조 완료 |
| 3 | 수령 |
| 4 | 주문 거절 |
{
"status": 200,
"message": "주문내역 조회 성공",
"data": {
"nick": "daye",
"orderList": [
{
"orderIdx": 40,
"name": "듀듀커피",
"state": 0,
"time": "2019-01-07 21:42:17"
},
{
"orderIdx": 29,
"name": "던킨도너츠 역삼 4호점",
"state": 0,
"time": "2019-01-06 20:45:58"
},
{
"orderIdx": 28,
"name": "탐앤탐스커피 역삼2호점",
"state": 0,
"time": "2019-01-06 20:44:49"
},
{
"orderIdx": 20,
"name": "던킨도너츠 역삼 4호점",
"state": 1,
"time": "2019-01-04 16:12:25"
}
]
}
}{
"status": 204,
"message": "주문내역이 존재하지 않습니다.",
"data": null
}{
"status": 401,
"message": "인증 실패",
"data": null
}{
"status": 500,
"message": "서버 내부 에러",
"data": null
}