Build
./gradlew build
Test
./gradlew test
Run
java -jar build/libs/rebelut-1.0.jar
Create new account
curl -X POST http://localhost:8181/api/v1/accounts
Get account
curl http://localhost:8181/api/v1/accounts/:id
Get statements
curl http://localhost:8181/api/v1/accounts/:id/statements
Get all accounts
curl http://localhost:8181/api/v1/accounts/
Delete account
curl -X DELETE http://localhost:8181/api/v1/accounts/:id
Deposit
curl -X POST http://localhost:8181/api/v1/accounts/:id/deposit/:amount
Withdraw
curl -X POST http://localhost:8181/api/v1/accounts/:id/withdraw/:amount
Transfer
curl -X POST http://localhost:8181/api/v1/transactions/send -d "sum=:amount&from=:orig&to=:dest"