简体   繁体   English

我们如何通过 palantir 代工厂中的 slate 集成外部 rest api 调用?

[英]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.

相关问题 我们可以在 DBT(数据构建工具)中调用任何外部 REST API 吗? - Can we call any external REST API inside DBT(Data Build Tool)? 我们可以在没有 API ID 的情况下调用外部 API 吗? - Can we call external API without API ID? 如何将Rest Api与Magento集成 - How to integrate rest Api with Magento 如何从WSO2 EI Studio调用外部Rest API? - How to call external Rest API from WSO2 EI Studio? 在节点中创建REST API时,如何将对外部网站请求的http响应流式传输到原始api调用? - While creating a REST API in node, How can I stream http response from a request made to an external website to the original api call? REST API服务:如何通过PHP curl正确调用它? - REST API service: how to call it correctly via PHP curl? 如何将Devise REST API登录与可锁定集成 - How to integrate Devise REST API Login with lockable 如何在Android中集成PATCH Rest API? - How to integrate PATCH rest api in android? 如何将 Google Chat REST API 集成到网站中? - How to integrate Google Chat REST API into a website? 我们如何计算记录数并在rest api中显示? - How can we count number of records and show in rest api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM