Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

kanzhygaly/rest-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Money Transfer RESTful API

Simple standalone application for money transfers between accounts.

Technology stack:

  • JAX-RS 2.1 / Jersey 2.27
  • Grizzly HTTP server
  • Maven 3+
  • Java 1.8+
  • JPA / Hibernate
  • JTA for transaction management
  • c3p0 connection pool
  • Log4J for logging
  • H2 in-memory Database latest

Build and Run

mvn exec:java

Application starts on

http://localhost:8080/rest-jersey/

Available Services

HTTP METHOD PATH USAGE TESTS
GET /account/{accountId} get account by accountId -
PUT /account/create create a new account -
DELETE /account/{accountId} remove account by accountId -
PUT /account/{accountId}/withdraw/{amount} withdraw money from account -
PUT /account/{accountId}/deposit/{amount} deposit money to account -
POST /transfer perform transfer from one account to another +

Not Implemented

HTTP METHOD PATH USAGE
GET /account/all get all accounts
GET /account/{accountId}/balance get account balance by accountId

TODO

  • Implement left services
  • Cover all tests

About

JAX-RS + H2 + Hibernate + JTA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages