Project featuring REST service using Jersey REST framework. The premise that rest application can be developed in the same manner as Spring. The app is kept as simple as possible.
Stack
- JPMS - Java Modules
- Jersey Java REST Framework
- HK2 Jersey IoC container
- EclipseLink ORM
- Apache DB aka Derby, in memory database
- Shiro authentication and authorization framework
- Hazelcast caching framework
- JUnit 5 testing framework
Other features
- Tests are written in groovy
- Application is deployed in docker alongside with hazelcast
- Entirely modular - taking advantage of Java Modules
- HATEOAS
To run
mvn package
sudo docker-compose up --force-recreate
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