봇 - POS 간 원격 주문 시 예상되는 시나리오와 그에 따른 기능, API를 스펙 정리
api prefix : /api/kakao/v1
Returns json data about a items.
-
URL
/order/cook
-
Method:
POST
-
URL Params
Required:
storeId=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call:
POS -> BOT
-
URL
/order/complete
-
Method:
POST
-
URL Params
Required:
storeId=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call:
api prefix : /api/v1
Returns json data about a items.
-
URL
/stores/:storeId/items
-
Method:
GET
-
URL Params
Required:
storeId=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call:
Returns json data about a items.
-
URL
/stores/:storeId/orders/:orderId/numbs/:numb
-
Method:
GET
-
URL Params
Required:
storeId=[string]
ORDERID=[string]
NUMB=[string]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call:
BOT -> POS 주문 취소 요청. 조리 중일 때는 주문 취소 불가.
-
URL
/cancel
-
Method:
DELETE
-
URL Params
Required:
storeId=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call:
Returns json data about a items.
-
URL
/stores/:storeId/items
-
Method:
GET
-
URL Params
Required:
storeId=[integer]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ id : 12, name : "Michael Bloom" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "User doesn't exist" }
- Code: 404 NOT FOUND
-
Sample Call: