We are looking for a way to make a pdf report, based on real time data, available on the customer's website. The intention is not to show the report in an iframe, but as a download.
Something like how the file API works would be great, but then a real time generated file as response.
Is there a way to realize this with a GET request? example: https://.../indicium/iam/api/public_vessel_schedule_pdf?route_name=north_europe&duration_weeks=4
Or will this always have to be done via a POST request?
We have started setting up a system flow, but we are stuck.
What is the recommended approach?
Best answer by Peter Verwijs
Hi Harm,
You should be able to do this with a custom protocol process flow. You can use a GET request to call this process flow and use it to return the binary data of the report. There’s some more information and examples available here:
The response header should look something like this: Content-Type: application/json
You should be able to do this with a custom protocol process flow. You can use a GET request to call this process flow and use it to return the binary data of the report. There’s some more information and examples available here:
The response header should look something like this: Content-Type: application/json