集成连接器通过 Open API 规范(版本 3.0.0 及其所有次要版本)支持自定义连接器。您可以将后端公开为公共端点,然后使用端点的 Open API 规范创建一个新的连接器来连接到端点(后端)。
端点的 OpenAPI 规范定义了集成连接器与端点之间的协定。
集成连接器使用 API 规范生成连接器的操作和实体。
API 规范可以是 JSON 或 YAML。以下是后端服务 OpenAPI 规范示例的摘录:
{
"openapi":"3.0.2",
"info":{
"title":"Swagger Petstore - OpenAPI 3.0",
"description":"This is a sample Pet Store Server based on the OpenAPI 3.0 specification.
You can find out more about\nSwagger at [
http://swagger.io](http://swagger.io). In the third iteration of the pet store,
we've switched to the design first approach! You can now help us improve the API whether
it's by making changes to the definition itself or to the code.\nThat way,
with time, we can improve the API in general, and expose some of the new
features in OAS3.\n\nSome useful links:\n-
[
The Pet Store repository
]
.....
.....
"paths":{
"/pet/{petId}/uploadImage":{
"post":{
"tags":[
},
.....
.....
"/pet/findByStatus":{
"get":{
"tags":[
"pet"
],
.....
.....
},
"api_key":{
"type":"apiKey",
"name":"api_key",
"in":"header"
}
}
}
}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-27。"],[[["Custom connectors enable the use of connectors outside of Integration Connectors' standard offerings, such as for in-house systems with proprietary protocols."],["Integration Connectors supports custom connectors through Open API specifications (version 3.0.0), which define the contract between the connector and the endpoint, and generates actions and entities."],["Custom connectors are useful when built-in connectors are unavailable or don't meet specific requirements for a desired data source or service."],["Integration Connectors supports both direct connectivity to Open API compliant backends and indirect connectivity through an intermediary service."],["The versioning feature allows for the creation of multiple versions of a custom connector, each with different OpenAPI specifications, authentication methods, and backend variables."]]],[]]