Skip to content

mfvanek/money-transfer-rest-api

Repository files navigation

Simple implementation of RESTful API for money transfers between accounts.

Java CI codecov

Important

  1. Should be rewritten for using of JAXRS
  2. Replace Hand-written in-memory data storage with H2 or Embedded PostgreSQL
  3. Add Swagger for API documentation

Task

Design and implement a RESTful API (including data model and the backing implementation) for money transfers between accounts.

Explicit requirements:

  1. You can use Java, Scala or Kotlin.
  2. Keep it simple and to the point (e.g. no need to implement any authentication).
  3. Assume the API is invoked by multiple systems and services on behalf of end users.
  4. You can use frameworks/libraries if you like (except Spring), but don't forget about requirement #2 – keep it simple and avoid heavy frameworks.
  5. The datastore should run in-memory for the sake of this test.
  6. The final result should be executable as a standalone program (should not require a pre-installed container/server).
  7. Demonstrate with tests that the API works as expected.

Technology stack

How to run

java -jar "./rest-api-app/target/rest-api-app-1.3.0.jar"

Available services

Pagination

Http status

  • 200 OK
  • 400 Bad request
  • 404 Not found

Notes

  • Using Russian bank accounts
  • Decided to ignore topics of currency conversions and multi-currency operations