Skip to content

larger0o/NewAccountDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AccountDemo

This is a simple Spring Boot project for a REST service, where you work with bank accounts.

Features

  • Account seaching by ID and Name.
  • Account creation.
  • Account listing.
  • Transfer money between accounts.

Notes

For proper account localization, I decided to make some fields not-nullable, like "name". That way I could implement a findByName service.

Also the query needed to return a List in order to avoid a duplicated entry exception. By now, we just return the first one.

Multiple currencies are admitted, but in order to transfer money both accounts have to share the same currency.

Rest routes are stored in a own class, so they are easier to read and also easier to build JUnit tests for controllers

Unit testing built with JUnit 4.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages