Skip to content

akabachkov/revolut-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample money transfer application

This is a demo project as a first interview step.

What was used

  • NO Spring framework Guice instead
  • H2 database
  • Jetty Container
  • Jersey JAX-RS implementation

Requirements

  • Java 8 Runtime

How to run

gradlew clean build run

Application will start a jetty server, H2 database. Next API are available:

Available Services

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

Http Status

  • 200 OK: In case of success
  • 400 Bad Request: in case of business errors
  • 500 Internal Server Error: unexpected error

Sample JSON for User and Transaction

Account :
{
    "id": 2,
    "holder": "anton kabachkov",
    "balance": 100
} 

Transaction:

{
	"creditAccountId":2,
	"debitAccountId":1,
	"amount": 99
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages