In this project, we’ll develop a bank management system using Spring Data JPA and the H2 in-memory database.
The application will allow us to create a client object in our database, associate a loan with the client object, and then disburse and repay a loan through REST APIs.
We’ll expose the following REST endpoints:
POST /clients to create a client object
GET /clients/{id} to read the client object
POST /loans to create a loan object
POST /loans/disburse/{id} to disburse
a loan
POST /loans/repay/{id} to mark a loan repaid
The final project will look like this: