-
Build the project in terminal $ mvn clean install
-
Run the application (The application uses a default port number of 8080 for the server) $ mvn spring-boot:run
-
Using a testing tool like postman or any other testing tool or even a browser(preferraby chrome), execute these endpoints below to test each use case:
Endpoint: http://localhost:8080/banking-api/transactional-accounts/1
Request Method: GET
Endpoint: http://localhost:8080/banking-api/currency-accounts/1
Request Method: GET
Endpoint: http://localhost:8080/banking-api/withdraw/250/13/1018033450/1
Request Method: PUT
Endpoint: http://localhost:8080/banking-api/highest-transactional-balance/1
Request Method: GET
Endpoint: http://localhost:8080/banking-api/clients-with-highest-transactional-balance
Request Method: GET
SQL Script can be found in the dbscripts package:
- dbscripts\trans-accs-max-bal.sql
Endpoint: http://localhost:8080/banking-api/aggregate-financial-position/1
Request Method: GET
SQL Script can be found in the dbscripts package:
- dbscripts\aggr-financial-position.sql