_._._ _._._
_| |_ _| |_
| ... |_._._._._._._._._._._| ... |
| | o Bank of Hong Kong Luna o | |
| """ | """ """ """ | """ |
()) |[-|-]| [-|-] [-|-] [-|-] |[-|-]| ())
(())) | |---------------------| | (()))
(())())| """ | """ """ """ | """ |(())())
(()))()|[-|-]| ::: .-"-. ::: |[-|-]|(()))()
()))(()| | |~|~| |_|_| |~|~| | |()))(()
|| |_____|_|_|_|__|_|_|__|_|_|_|_____| ||
~ ~^^ @@@@@@@@@@@@@@/=======\@@@@@@@@@@@@@@ ^^~ ~
^~^~ ~^~^
* Bank of Hong Kong Luna - Robert A. Heinlein's - The Moon is a Harsh Mistress
This is a new Bank of Hong Kong Luna Payments System REST API which does not exist yet. Main aim of this project is to implement HTTP REST API to Payments DB.
Database is a super powerful but lightweight SQLLite3 and is provided in file /db/database.db
with schema: /db/schema.sql
GET /payment/{id}
Get specific paymentGET /payments/all
Get all paymentsGET /payments/user/{userId}
Get all user paymentsPUT /payment/{id}
Record new paymentPOST /payment/{id}
Update existing payment
- Creating virtual environment and activating it:
python3 -m venv venv source venv/bin/activate
- Installing pip packages from requirements file:
pip install --upgrade -r requirements.txt
- Executing locally:
FLASK_APP=api/app.py FLASK_ENV=development FLASK_DEBUG=1 flask run --host=0.0.0.0
- Running unit tests:
python -m xmlrunner discover -s tests -o test-reports