Demo object oriented web application: create accounts and transfer money between them via a RESTful API.
- Open https://editor.swagger.io/
- Click File -> Import URL
- Paste https://raw.githubusercontent.com/vzurauskas/accounts-transfers/master/swagger.yaml
N.B. POST /transfers operation is idempotent. An idempotency key (header "x-idempotency-key") is used to guard against the execution of duplicate transfers. The request is treated as idempotent if a request from the same client (header "x-client-id") with the same idempotency key has already been executed.
mvn clean install
mvn exec:java
This will start the server on port 8080 and the root URI will be http://localhost:8080
Takes framework - https://github.com/yegor256/takes
JOOQ - https://www.jooq.org/
H2 database (in memory) - http://www.h2database.com/html/main.html