RnD repo
http://localhost:8080/order/2
Execute the below GET from browser/postman.This will gracefully execute and below is the response which is correct.My code is working fine for this scenario
{
"orderId": 2,
"message": "SUCCESS"
}
Pass negative Orderid
http://localhost:8080/order/-1
Execute the above GET from browser/postman.This should execute till only Step1Delegate and should not go to Step2.Expected response is below
{
"orderId": -1,
"message": "FAILED DUE TO INVALID ORDER ID "
}