From aaf42df652bd806259871e9282792089f1418b60 Mon Sep 17 00:00:00 2001 From: d045778 Date: Mon, 3 Feb 2020 15:01:00 +0100 Subject: [PATCH] update sample requests --- packages/bookshop/sample requests.http | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/bookshop/sample requests.http b/packages/bookshop/sample requests.http index 38ea618e..65d1533b 100644 --- a/packages/bookshop/sample requests.http +++ b/packages/bookshop/sample requests.http @@ -3,8 +3,10 @@ POST http://localhost:4004/browse/Orders Content-Type: application/json { "OrderNo":"2019-09...", "Items":[ - { "book_ID":201, "amount":5 }, - { "book_ID":207, "amount":3 } + { "book_ID":201, "amount":5 } ]} -# Sending this three times should result in a 409: 5 exceeds stock for book #201 \ No newline at end of file +# Sending this three times should result in a 409: 5 exceeds stock for book #201 + +### Check books entity that stock was reduced +GET http://localhost:4004/admin/Books(201)