This is a demo project as a first interview step.
- NO Spring framework Guice instead
- H2 database
- Jetty Container
- Jersey JAX-RS implementation
- Java 8 Runtime
gradlew clean build run
Application will start a jetty server, H2 database. Next API are available:
HTTP METHOD | PATH | USAGE |
---|---|---|
PUT | /account/ | create new account |
GET | /account/id | get account detais |
POST | /account/id | update account |
POST | /transaction/ | perform transaction between accounts |
- 200 OK: In case of success
- 400 Bad Request: in case of business errors
- 500 Internal Server Error: unexpected error
{
"id": 2,
"holder": "anton kabachkov",
"balance": 100
}
{
"creditAccountId":2,
"debitAccountId":1,
"amount": 99
}