Giter Club home page Giter Club logo

bot-pos-api-specs's Introduction

bot-pos-api-specs

봇 - POS 간 원격 주문 시 예상되는 시나리오와 그에 따른 기능, API를 스펙 정리

POS -> BOT

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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • 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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • Sample Call:

BOT -> POS

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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • 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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • 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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • 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" }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { error : "User doesn't exist" }
  • Sample Call:

bot-pos-api-specs's People

Contributors

kakao-bart-lee avatar

Watchers

 avatar  avatar

Forkers

jaidoll

bot-pos-api-specs's Issues

질문 목록

  • 주문 진행 상태 업데이트가 가능한지? (취소 관련)
  • 옵션 중 샷 추가는 유료인가, 옵션 종류를 정적으로 결정해놔야할지?
  • 주문 시 필요한 정보가 정확히 어떻게 될지
  • [ ]
* 예를 들면 음료 주문 상황에 대해 직원들이 수동으로 업데이트를 매번 할 수 있을지?
* 주문 접수 -> 음료 제작 시작 -> 음료 제작 완료

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.