./gradlew run
By default app starts on port 8080. You can specify MONEY_TRANSFER_SERVER_PORT env variable to run on different port.
MONEY_TRANSFER_SERVER_PORT=8081 ./gradlew run
POST /accounts- creates account in the system.
Request body:
{
"initialBalance": "float"
}GET /accounts/{id}- retrieves account informationDELETE /accounts/{id}- deletes accountPOST /accounts/{id}/deposit?amount={amount}- deposits some amount of money to the accountPOST /accounts/{id}/withdrawal?amount={amount}- withdraws some amount of money from the accountPOST /transfers- transfers money from one account to another
Request body:
{
"senderAccountId": "integer",
"receiverAccountId": "integer",
"amount": "float"
}You can see it in action in test