###########How to start api endpoint
-
git clone $current_repo
-
npm run start
-
curl -XPOST -H'content-type: application/json' http://localhost:30001/bank -d'{"payment_method":"SWIFT","bank_country_code":"US","account_name":"John Smith","account_number":"123","swift_code":"ICBCUSBJ","aba":"11122233A"}'
###########How to start mocha for unittest
- mocha test/bank.test.js PS, please update test/testdata/json when test with different url.
###########Questions in business requirement and something else
- Account_name, account_number should require special charactor check.
- Error messages given didnot cover the exceptional scenatios totally.
- One message got conflict: account_number length error: "Length of account_number should be between 7 and 11 when bank_country_code is 'US'" conflict with requirement#4 account number: mandatory for US, account number is 1-17 character long, can be any character Please clearify the requirements.