UiPath Documentation
data-service
latest
false
Data Fabric 用户指南
  • 入门指南
    • 简介
    • Data Fabric feature availability
    • 探索用户界面
    • 区域和实例
  • 许可
  • 设置和配置
  • 使用服务
  • 参考
    • Studio 活动
    • API 访问权限
  • 示例和教程
  • 日志记录
重要 :
Data Service 正在向 Data Fabric 过渡。在此过程中,您可能会看到这两种名称被用于不同的交付选项。 请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

API 访问权限

Data Fabric Open API for managing Data Fabric resources from an external application using OAuth 2.0 authorization.

概述​

Data Fabric Open API allows you to manage UiPath® Data Fabric resources from an external application of your choice, and does so by enabling you to authorize the external app without sharing any credentials, through the Oauth 2.0 authorization framework.

API 权限​

To use the Data Fabric OpenAPI, you must grant API permissions to the external application. These API permissions are known as scopes, and there are three types for Data Fabric:

  • DataService.Schema.Read - this User Scope allows your external app to read your tenant's Data Fabric schema, and it's dependent on the user's permissions.
  • DataService.Data.Read - this User Scope allows your external app to read your tenant's Data Fabric data, and it's dependent on the user's permissions.
  • DataService.Data.Write - this User Scope allows your external app to edit your tenant's Data Fabric data by deleting, updating or creating new data, and it's dependent on the user's permissions.

Learn more about the user roles and permissions in Data Fabric.

下载 OpenAPI 规范​

Once you set the permissions for your external application and users, download the OpenAPI specification of your tenant Data Fabric data:

  • On the Data Fabric page, select API Access, then select Download OpenAPI file (JSON).

This operation downloads the OpenAPI 3.0 specifications of your tenant Data Fabric entities, in JSON format.

Selecting Copy OpenAPI link copies the API endpoint that generates the tenant Data Fabric OpenAPI specification.

授权 API 调用​

Authorize your external application to use the Data Fabric OpenAPI by creating an access token for your external application. Use the App ID and App Secret that were generated at the external application registration. The authorization method depends on the application's type (confidential or non-confidential).

详细了解外部应用程序的授权方法。

API 端点​

OAuth2.0 authorization framework helps you generate a access token that allows your external application to make REST API calls to Data Fabric endpoints, for a limited time (one hour).

要继续调用 API,您需要生成新的访问令牌或请求刷新令牌。

A Data Fabric API endpoint has the following syntax:

  • HTTP method + BaseURL + The resource category + The Data Fabric entity + The Operation + Path variables and query parameters

Data Fabric entity example​

To describe each API request/response body, we are using the Olympics entity fields created in the Data Fabric. While we document the generic endpoint, such as Get Entity Records, your endpoint contains the exact name of your entity (for example, Get Olympics Records). The response and request bodies include all the fields from your entity, replicating the entity's structure.

Further, let's use the Data Fabric API guide to dive into each endpoint and discover how you can put it to good use.

  • 概述​
  • API 权限​
  • 下载 OpenAPI 规范​
  • 授权 API 调用​
  • API 端点​
  • Data Fabric entity example​

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新