Simple application to show different testing leveles in bank account application. The end-user can increase and withdraw the account balance with REST messages and UI.
- JAVA 11
- Gradle 6.3
- Docker Compose
- Download and start the latest MongoDB:
docker-compose up -d
- Start the application with gradle wrapper:
./gradlew bootRun
The application run on default:
- server port: 8000
- management port: 9000 (/actuator/health supported)
- GET /account/{id} : return the specified account by account identifier
- POST /account/withdraw : withdraw amount
- POST /account/deposit : deposit ammount
- PUT /account : create new account
- Increase amount of specified account with 10$
POST /account/deposit
{ user: 1 amount: 10 }
- Withdraw amount of specified account with 10$
POST /account/withdraw
{ user: 1 amount: 10 }
- Get actual balance of acount #1
GET /account/1
{ "id": "1", "name": "Foo", "balance": 0.0 }
The corresponding Postman scripts are placed under src/resources folder.