I wish to integrate an external rest api within a slate application? Does Foundry allow calling external api's from SLATE, if yes how can we achieve the same?
I wish to integrate an external rest api within a slate application? Does Foundry allow calling external api's from SLATE, if yes how can we achieve the same?
Slate is self contained, so you won't be able to do external http requests due to XSS protections. This would to a limit enable you to leak data outside of Foundry, so it's unlikely that you'll find a direct way of getting this to work.
Alternatively, is this external API call something you can pre-empt and cache? if yes then you could use a magrite-rest-call to ingest data from your endpoint to a dataset, at regular intervals, and query this dataset instead of the external API.
In our Foundry instance, we can call external HTTP(s) destinations from Slate. Means technically it's possible. The configuration is done by the Palantir engineers.
If this integration makes sense or is recommended is a different discussion.