Adding code of OpenSAP week2 unit 1 demo

This commit is contained in:
Harini Gunabalan
2020-03-21 23:31:43 +01:00
parent 06755978b2
commit fa187be617
94 changed files with 3270 additions and 2614 deletions

View File

@@ -0,0 +1,12 @@
### Submit Orders
POST http://localhost:4004/browse/Orders
Content-Type: application/json
{ "OrderNo":"2019-09...", "Items":[
{ "book_ID":201, "amount":5 }
]}
# 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)