How to fetch data and generate PDF document from API using Java

Hi

Could you help me, please, how to download data from API and generate PDF document using Java code? Report is generated and prepared on this address for downloading as a pdf “http://<host>:<port>/jasperserver[-pro]/rest_v2/reportExecutions/requestID/exports/exportID/outputResource”. I can see the output in Postman and when I do “Save Response” in postman it saved me the file as a pdf. But I would like to do it automatically via Java to save the pdf on local PC.

Thanks in advance for your help

Regards

Milos

milos_1's picture
Joined: Oct 27 2014 - 12:16pm
Last seen: 4 days 5 hours ago

0 Answers:

No answers yet
Feedback
randomness