An example of how to use Hibernate Envers.
Basically we need the AuditConfigClass, add @Audited to the desired entities and look at the documentation to find out how to create our queries.
curl -d '{"name":"value","childs":[{"name":"batatinha"}]}' -H "Content-Type: application/json" -X POST http://localhost:8080/test
curl -d '{"name":"value","id":"1","childs":[{"name":"batatinha2","id":"1"}]}' -H "Content-Type: application/json" -X PUT http://localhost:8080/test
curl http://localhost:8080/test/audit