Springboot REST server for executing jasper reports and downloading pdf, xls, xlsx, docx, ... file.
180
docker run -e RPT_LINUX_PATH=/opt -e DB_HOST=[ip address of db server] -e DB_PORT=[port where database is listening] -e DB_SID=[ORACLE SID or MySQL database name] -e DB_USERNAME=[db user] -e DB_PASSWORD=[db user password] -e DB_TYPE=[ORACLE or MYSQL] -v [local file system directory where report files are located]:/opt -p [local computer port where REST service is responding]:8080 -d --name [container name] --restart always cdorde/jasper-reports-rest-server
docker run -e RPT_LINUX_PATH=/opt -e DB_HOST=mysql.server.com -e DB_PORT=3306 -e DB_SID=dbName -e DB_USERNAME=root -e DB_PASSWORD=complicatedpassword -v d:/:/opt -p 8080:8080 -d --name JasperWS --restart always cdorde/jasper-reports-rest-server
POST request to adress :
http://localhost:8080/reportGetPdf
body, raw, application/json =>
{
"name":"Blank_A4.jrxml",
"parametars":[
{
"name":"PredmetID",
"type":"long",
"value":"7"
}
]
}
Name is report file name and reports must be located at directory wrriten to -v parametar (volume) of container creating command. Parametars are array of objects which represent information about requested parameters for executing reports. Current type may be "string" or "integer" and value is allwas written as string. Inside of container java springboot application is executed.
Content type
Image
Digest
Size
310.4 MB
Last updated
over 4 years ago
docker pull cdorde/jasper-reports-rest-server