Server provides RESTful API for money transfers between accounts. It does not use any framework for handle REST requires and implement dependency injection. All these are done with very simple manual implementation.
gradlew clean jar
java -jar build/libs/money-transfer-1.0.jar
run.bat
run.sh
When server starts it prints current address and por to the console like http://10.6.62.32:8080/
.
To create money transfer, you should do following steps:
- Create if required an account (will be used as source account)
- Create if required an account (will be used as destination account)
- Retrieve new
transactionId
; it will be used to work with transactino - Using generated
transactionId
and two different account, create new transaction with required cents to transfer
See details in attached swagger.yaml