Coding exercise solution for Revolut.
Program executable from Application.java.
Contains the following endpoints:
- GET /accounts
- GET /accounts/:accountUid
- PUT /accounts/:accountUid/transfer
Tests doesn't pass, for some suites seems like @BeforeClass annotation doesn't work and the web service doesn't startConcurrency is not handled - lock on balance which is a mutable property of the model - will not work- Plain text responses for errors
Active-record style models (containing a link to the repository)Dependency injection via static variables