Hi Luigi,
We had write our own plugin to make available Fabrik's data to external apps through your mechanism and it works great.
The plugin answers with Json data which is fine for these cases.
We'd like to add an endpoint protected with an API key the same way as our current one but that would trigger a file download action answer instead of a json result. in other words, it would give back the file itself (pdf, jpg, csv...) instead of json data.
Is this could be implemented without breaking the Jbackend structure (log, stats, errors management ...) ?
The idea would be to give user possibility to use an url from their browser such as :
www.mysite.com/endpoint/download?api_key=mypersonnalapikey
Probably need to build an http answer rather than a json one ?
Would you have any advice or code snippets to start ?
Thanks,
Laurent