From ae9e1dad5b59e437ebb410dc9e096a56b4733408 Mon Sep 17 00:00:00 2001 From: vksingh <vksingh@nisum.com> Date: Sat, 9 May 2020 21:13:54 +0530 Subject: [PATCH] Modified README.md file --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3796789..46b42f1 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ a.Create 10 items in item table using postman using below url and body in json; POST: http://localhost:8991/item (for save/update) with body like below: + + { "id":1, "name":"pencil", @@ -47,6 +49,10 @@ using these itemId we are going to order items; 4. one can delete the item using DELETE:-http://localhost:8991/item?id=2 here id is itemid + + + + Placing the Order single/bulk order by customer @@ -56,6 +62,8 @@ + + payload for single item be like :- { @@ -69,6 +77,8 @@ ], "emailId":"vikram19977@gmail.com" } + + payload for more than one quantity of single item { "orderId":1, @@ -81,8 +91,11 @@ ], "emailId":"vikram19977@gmail.com" } + + payload for more then one item + { "orderId":1, "orderedItems":[ @@ -100,15 +113,21 @@ "emailId":"testuser@gmail.com" } + i. If we have happy path means order is placed then we will get the message like :: 'sample output'- "Order Placed...! you have spent :"+xxxx +" Rupees"; xxxx=calculated total spent amount; + + ii. for any of the exception like out of stock item we have various messages coming to the customer accordinglg + + It is already tested by various component test cases written in test folder for both ItemController and OrderController; + 6.GET:localhost:8991/order -> for listing all orders placed by all the customers sample output: @@ -194,7 +213,7 @@ } ] - 8.In TestCases I have used Junit5 conects as well with the 87% of testcase coverage; + 8.In TestCases used Junit5 concepts as well with the 87% of testcase coverage; -- 2.18.1