I have the URL "http://<ipaddress>:port/jasperserver/rest_v2/reports/reports/path/reportname?j_username=username&j_password=newpasswrd&inputparam1=value1&inputparam1=value2" ,
thru REST api ,is it possible to get Json output.
please share the input
4 Answers:
Accordingly with documentation "JasperReports-Server-REST-API-Reference"
you can
make your URL like this:
"http://<ipaddress>:port/jasperserver/rest_v2/reports/reports/path/reportname.<format>?j_username=username&j_password=newpasswrd&inputparam1=value1&inputparam1=value2"
Quote from documentation:
<format>
output type
One of the following formats: pdf, html, xls, xlsx, rtf, csv, xml, docx, odt, ods,
jrprint.
As of JasperReports Server 6.0, it is also possible to specify json if your
reports are designed for data export. For more information, see the
JasperReports Library samples documentation.
One of the following formats:
• Regular output: html, pdf, csv, docx, pptx, xls, xlsx, rtf, odt, ods, xml
• Metadata output: data_csv, data_xls, data_json