Repgen is a general purpose report generation engine built on top of JasperReports library.
- The internal database contains the model definitions and dynamic content (model-name == template-name).
- Using JasperStudio tool you can create templates containing both report style and static content.
- All reports are built by a multi-threaded scheduler, and they can be rebuilt at any time.
- The engine supports embedded fonts (PDF/A spec) for optimal rendering on every system.
- The REST API can be used to request new report builds, search and download generated reports.
# build and run
mvn package
java -jar target/repgen-*.jar
# run tests
mvn verify
# create binaries
mvn package -PassemblyHealth check:
curl -s http://localhost:8080/repgen/api/healthScheduler commands:
curl -s http://localhost:8080/repgen/api/scheduler
curl -sX POST http://localhost:8080/repgen/api/scheduler/start
curl -sX POST http://localhost:8080/repgen/api/scheduler/stopBuild request:
curl -sX POST -H "Content-Type: application/json" \
-d @src/test/resources/simple-letter.json http://localhost:8080/repgen/api/reports
curl -sX POST -H "Content-Type: application/json" \
-d @src/test/resources/simple-table.json http://localhost:8080/repgen/api/reportsRetrieve reports:
curl -s http://localhost:8080/repgen/api/reports
curl -s http://localhost:8080/repgen/api/reports/1
curl -s http://localhost:8080/repgen/api/reports/1 | jq -r ".content" | base64 -d > test.pdfSearch reports:
curl -sX POST -H "Content-Type: application/json" \
-d '{"name":"80c9d32"}' http://localhost:8080/repgen/api/reports/search
curl -sX POST -H "Content-Type: application/json" \
-d '{"from":"2015-05-15", "to":"2015-06-15"}' http://localhost:8080/repgen/api/reports/search