[英]How can we integrate an external rest api call via slate in palantir foundry?
I wish to integrate an external rest api within a slate application?我希望在 slate 应用程序中集成外部 rest api? Does Foundry allow calling external api's from SLATE, if yes how can we achieve the same?
Foundry 是否允许从 SLATE 调用外部 api,如果是,我们如何实现相同的目标?
Slate is self contained, so you won't be able to do external http requests due to XSS protections. Slate 是自包含的,因此由于 XSS 保护,您将无法执行外部 http 请求。 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.
这将限制您将数据泄漏到 Foundry 之外,因此您不太可能找到一种直接的方法来使其工作。
Alternatively, is this external API call something you can pre-empt and cache?或者,这个外部 API 调用是否可以抢占和缓存? 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.如果是,那么您可以使用
magrite-rest-call
定期将数据从端点摄取到数据集,并查询此数据集而不是外部 API。
In our Foundry instance, we can call external HTTP(s) destinations from Slate.在我们的 Foundry 实例中,我们可以从 Slate 调用外部 HTTP(s) 目的地。 Means technically it's possible.
意味着技术上是可能的。 The configuration is done by the Palantir engineers.
配置由 Palantir 工程师完成。
If this integration makes sense or is recommended is a different discussion.如果这种整合有意义或被推荐,则另当别论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.