Project featuring REST service using Java EE. The premise is that rest application can be developed in the same manner as Spring. The app is kept as simple as possible.
Stack
- TomEE Tomcat Enterprise Server
- OpenJPA
- Apache DB aka Derby, in memory database
- REST Assured for tests
To run
mvn package
java -jar <app-name> -port=<port>
Sample requests
curl -X POST http://localhost:<port>/api/accounts/transfer?from=1&to=2&amount=10
curl http://localhost:<port>/api/accounts
curl http://localhost:<port>/api/accounts/somename?page=&size=20
curl -X DELETE http://localhost:<port>/api/accounts/2