Sample application demonstrating use of JaVers Spring Boot starters.
To start app execute (requires MongoDB (3.0.0+) running on port 27017):
./gradlew organization-structure-mongo:run
or run on H2:
./gradlew organization-structure-sql:run
http://localhost:8080/view/hierarchy
http://localhost:8080/view/hierarchy/Hier_2015
http://localhost:8080/view/persons
http://localhost:8080/view/person/0
http://localhost:8080/audit/test
POST http://localhost:8080/view/person
{
"id": 101,
"firstName": "Yang",
"lastName": "Huajie",
"sex": "MALE",
"salary": 1000,
"position": "DEVELOPER"
}
PUT http://localhost:8080/view/person
{
"id": 101,
"firstName": "Yang",
"lastName": "Huajie",
"sex": "MALE",
"salary": 1022,
"position": "DEVELOPER"
}
http://localhost:8080/audit/persons
http://localhost:8080/audit/person/0
http://localhost:8080/audit/person/snapshots
http://localhost:8080/audit/person/0/snapshots