The package jzenith-example
contains a simple example app that
I use to play around with the functionality. As it is using the
Postgres Plugin it depends on a running
PostgreSQL server.
In order to build do a regular
mvn clean package
This gives you a fat jar file in target/
that can be run with
java -jar jzenith-example-0.1-fat.jar
You can start a dockerized PostgreSQL with
mvn docker:start
Once you run both you can play a little bit with the example endpoints:
Create a User:
curl -H "Content-Type: application/json" -XPOST -d '{"name":"Test"}' -v localhost:8080/user
List all Users:
curl -v http://localhost:8080/user
There is an integration test that lists all the allowed endpoints and methods.