We have integrated Tryton with BikaLims using BikaLIMS JSON API (https://github.com/bikalims/bika.lims/wiki/BIKA-JSON-API
For this, our Tryton module connects and retrieves data from BikaLIMS and stores it in database. But, now we have a requirement in which we want to download reports from BikaLims and display them in PDF Viewer.
For example, from my module, I want to send following HTTP request after authentication:
As a response, I will receive the HTTP Response containing contents of PDF report.
What is the best way of displaying this PDF file using Tryton?
Should I write an action which does authentication and returns the above-mentioned URL and rest is handled by the Tryton? If so, any reference example please.
Should I write an action which does authentication, writes the contents from HTTP Response to a temporary file which is returned to Tryton for display. If so, any reference example please.
By the way, I could not find some example for Action of Type URL and also there is a 'Web Services' sections in Tryton Documentation which is empty.
Thanking in anticipation.