Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 581 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 581 Bytes

Cocktail Ninja - Arduino Yun API

API Specifications

Response:

STATUS 503
{ "status": "busy" }

STATUS 404
{ "status": "glass not found" }

STATUS 200
{ "status": "ready" }

Request: /{cid}-{amount}

  • cid: Component id (Pump: P1, P2, P3, P4, P5, P6 - Valve: V1, V2, V3, V4)
  • amount: amount number (in ml)

E.g. pouring Valve-1 1000ml, Pump-1 500ml and Pump-2 200ml

/make_drink/v1-1000/p1-500/p2-200

Response:

  • ready_in: total pouring time
{ "ready_in": 1500 }