REST API used to transfer a given amount of money between two accounts (only supports GBP currency).
Written in Java 8 and Ratpack with:
- Lombok for awesomeness
- Uses JUnit and Ratpack Test for testing
- Uses ConcurrentUnit for concurrency tests via JUnit
- Uses basic in-memory data structures for persistence
- Uses Hibernate validator for JSR-303 validations on requests
If you want to build the application, please run:
mvn clean install
If you want to execute the tests, please run:
mvn clean verify
You can run the app by:
- Running the main class from your IDE
- Building the app via Maven and running the generated uber jar from the target folder.
- Downloading the JAR from the releases page and executing:
java -jar money-transfer-api-1.0-SNAPSHOT.jar
A swagger.yml file has been provided that can be imported into https://editor.swagger.io, unfortunately Ratpack doesn't offer a nice way of doing this inside the app.
When using the editor, it will call your localhost so make sure the app is started.