Kawa Coffee API #
Order coffee ahead, pay for it, and get told when it is ready.
A sample API for a chain of coffee shops. Every request needs a bearer token from the developer console.
基础地址 https://api.kawa-coffee.example/v2 · OpenAPI 3.1.0 · v2.3.0 · 12 个接口 · 9 个模型 · 1 条旅程
资源 #
| 资源 | 列表 | 创建 | 读取 | 更新 | 删除 | 其他动作 |
|---|---|---|---|---|---|---|
| MenuDrinks and the options each one takes. | GET/menu-items | — | GET/menu-items/{itemId} | — | — | — |
| OrdersAn order is what a customer asks one store to make. | GET/orders | POST/orders | GET/orders/{orderId} | PATCH/orders/{orderId} | — | POST/orders/{orderId}/cancel |
| PaymentsOne payment settles one order. | — | POST/payments | GET/payments/{paymentId} | — | — | — |
| StoresOpening hours and how busy each store is. | GET/stores | — | — | — | — | GET/stores/{storeId}/queue2.3.0 起 |
| Webhooks | — | — | — | — | — | HOOKorder.paid |
旅程 #
- Order and pay — From picking a drink to hearing that the payment went through.
模型 #
CreateOrderRequestLineItem— One drink of an order, with its options.MenuItem— A drink on the menu.Money— An amount in the smallest unit of a currency.OrderOrderStatus— Where an order is in its life.PaymentProblem— An RFC 9457 problem detail.Store


评论