REST API for PDF download

Hi Reader,   I have already created functionality to download pdf using generate document and download in using microflow. Which is working absolutely fine. Now, I want to expose a rest end point which we can call to download pdf. How can I do that.   Thanks and Regards, Harshraj Singh
1 answers

Hi there,


You can Base64 encode your file and send it throught your endpoint. On the other side of your endpoint, you would just need to re-encode the file.


I believe if you try to send your document directly as a response, it will send your document's binary