Tech stack used:
- Java/Kotlin (Kotlin is used).
- Spring Boot
Service should expose a Rest API to accept money transfers
to other accounts.
Money transfers should persist a new balance
of accounts.
Service should expose a Rest API for getting the account details
.
- You can disregard currencies at this time.
API Created:
Get account:
GET localhost:8080/account/{id}
Create account:
POST localhost:8080/account/
Add money:
PUT localhost:8080/account/{id}/add/{amount}
Withdraw money:
PUT localhost:8080/account/{id}/withdraw/{amount}
Money transfer:
PATCH localhost:8080/account/{fromId}/transfer/{toId}/{amount}
Get debit transactions:
GET localhost:8080/transaction-history/{id}/debit
Get credit transactions:
GET localhost:8080/transaction-history/{id}/credit
Get transactions history:
GET localhost:8080/transaction-history/{id}/history