Banking Application PDF
Banking Application PDF
Application
By Ramesh Fadatare (Java Guides)
fi
t
fi
.
Requirement 3 - Transferring
Funds Between Accounts
This feature involves debiting an amount from one account and
crediting it into another
Transfer Fund REST API: To transfer amount from one account
to another account.
Development Steps
1. Create TransferFundDto record clas
2. De ne transferFunds method in AccountService
interfac
3. Implement transferFunds method in
AccountServiceImpl clas
4. Build /transfer REST AP
5. Test /transfer REST API using Postman Client
Development Steps
1. Create Transaction Entit
2. Create TransactionRepository and De ne query method to retrieve list of transactions
by account id order by descending order (newest to oldest
3. Change AccountServiceImpl.deposit() method to log transaction for DEPOSI
4. Change AccountServiceImpl.withdraw() method to log transaction for WITHDRA
5. Change AccountServiceImpl.transferFunds() method to log transaction for TRANSFE
6. Create TransactionDto recor
7. Implement getAccountTransactions method in AccountServiceImpl clas
8. Create /{accountId}/transactions REST AP
9. Test /{accountId}/transactions REST API using Postman Client
fi
I
Exception Handling in
Banking App
By Ramesh Fadatare (Java Guides)
throws AccountException
fi
.
Development Steps
1. Create custom exception named AccountException
2. Using AccountExceptio
3. Create ErrorDetails Class to hold error respons
4. Create GlobalExceptionHandler to handle speci c
exceptions as well as generic exceptions
fi