make docker-run
curl -XPOST "http://localhost/2015-03-31/functions/function/invocations" -d "{your_data_here}"
Alternatively use call_lambda.py to circumvent shell escaping issues - see the setup tests in the Testing section below to install requests library
python call_lambda.py
Install the pytest and coverage packages in your virtual environment created in the manner of your choice, e.g.
pip install virtualenvwrapper
mkvirtualenv idtest
pip install -r requirements.txt
make test
make coverage
Task is to implement a lambda that takes in transactions and call a 3rd party API and return the result to the mobile app.
Would need to be part of a production application.
Some questions from the 3rd party API - amount is specified as int, with format double.
Transaction returns balance - but of which account.
Need to triple check whether direction of DEBIT/CREDIT is correct.
Need to customise to this application. Need to set up the CORE_BANKING_BASE_URL environment variable dependent on environment.