Skip to content

micsigen/test-debug-app

Repository files navigation

Application

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.

System diagram

System diagram

Requirement

  1. JAVA 11
  2. Gradle 6.3
  3. Docker Compose

Run

  1. Download and start the latest MongoDB:

    docker-compose up -d

  2. Start the application with gradle wrapper:

    ./gradlew bootRun

The application run on default:

  • server port: 8000
  • management port: 9000 (/actuator/health supported)

Endpoints

  1. GET /account/{id} : return the specified account by account identifier
  2. POST /account/withdraw : withdraw amount
  3. POST /account/deposit : deposit ammount
  4. PUT /account : create new account

Examples

  1. Increase amount of specified account with 10$

POST /account/deposit

{ user: 1 amount: 10 }

  1. Withdraw amount of specified account with 10$

POST /account/withdraw

{ user: 1 amount: 10 }

  1. 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.

About

Simple application to test and debug in different tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published