/transfers-api

A sample API to transfer balances between accounts

Primary LanguageJavaScript

Transfers API

Sample API for transferring balances between accounts.

Getting Started

Run this using sbt

sbt run

and then go to http://localhost:9000 to see the API interface.

Swagger has been used for API documentation and test interface. Populate the memory db by creating some accounts first through the Swagger interface

The service layer has been omitted for simplicity's sake.

Transaction atomicity is secured in TransactionsDAO. In case many transactions requested simultaneously, JDBC takes care of locking.

Running the tests

Only controller tests have been included

sbt test

Built With

Authors

  • Evangelos Barakos -