JasperReports Generator
How to build Docker image
-
Build Spring Boot Application:
./mvnw clean package -DskipTests
-
Build the Docker Image:
docker build -t your-docker-image-name . # multiplatform # docker buildx create --use # docker buildx build --push --platform linux/amd64,linux/arm64 -t your-docker-image-name:latest .
How to use
curl --location 'http://localhost:8080/api/v1/jasper/generate' \
--header 'Content-Type: application/json' \
--data '{
"datasource": "opd",
"mainReport": {
"name": "test",
"url": "test.jrxml",
"modified_at": 1
},
"parameters": [
{
"name": "id",
"type": "string",
"value": "1234"
}
]
}'