[#webmachine] ordering a coffee in starbucks using Webmachine

can create an order
curl -i -H "Content-Type: application/json" -d '{"orders":{"drinks":"mocha"}}' -X POST 0.0.0.0:8080/orders

can modify order
curl -i -H "Content-Type: application/json" -d '{"orders":{"drinks":"latte"}}' -X PUT "0.0.0.0:8080/orders?id=1"

admin can list all orders
curl -i -H "Content-Type: application/json" -X GET "0.0.0.0:8080/orders?status=paid" -u admin:password

barista can accept a payment
curl -i -H "Content-Type: application/json" -d '{"payment":{"order_id":"1", "customer_name": "deepak", "amount": 200}}' -X PUT "0.0.0.0:8080/payment"
[#grape] ordering a coffee in starbucks using Webmachine

can create an order
curl -i -H "Content-Type: application/json" -d '{"orders":{"drinks":"mocha"}}' -X POST 0.0.0.0:8080/orders

can modify order
curl -i -H "Content-Type: application/json" -d '{"orders":{"drinks":"latte"}}' -X PUT "0.0.0.0:8080/orders?id=1"

admin can list all orders
curl -i -H "Content-Type: application/json" -X GET "0.0.0.0:8080/orders?status=paid" -u admin:password

barista can accept a payment
curl -i -H "Content-Type: application/json" -d '{"payment":{"order_id":"1", "customer_name": "deepak", "amount": 200}}' -X PUT "0.0.0.0:8080/payment"