Skip to content

andprogrammer/moneyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restful API Money Application

RESTful API for money transfers between accounts

Run application

mvn clean install

Example of usage

Endpoints

METHOD ENDPOINT DESCRIPTION
PUT /account/create?username=...&balance=...&currencycode=... create a new account
GET /account/all get accounts
GET /account/{accountId} get account
GET /account/{accountId}/balance get account balance
PUT /account/{accountId}/withdraw/{amount} withdraw from account
PUT /account/{accountId}/deposit/{amount} deposit to account
DELETE /account/{accountId} remove account
PUT /user/create?name=...&email=... create a new user
GET /user/all get users
GET /user/{userId} get user
POST /user/{userId}?name=...&email=... update user
DELETE /user/{userId} delete user
POST /transaction/{fromAccountId}/{toAccountId}/{amount}/{currencycode} transaction

Technologies

  • Spark (http://sparkjava.com/)
  • GSON (serialize/deserialize data)
  • junit (unit tests)
  • json (json parser)
  • log4j (logger)

About

Restful API for money transfer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages