Get the erd of a base
curl --request GET \
--url http://127.0.0.1:3000/api/base/{baseId}/erd \
--header 'Authorization: Bearer <token>'{
"baseId": "<string>",
"nodes": [
{
"id": "<string>",
"name": "<string>",
"fields": [
{
"id": "<string>",
"name": "Tags",
"type": "singleSelect",
"isLookup": true,
"isConditionalLookup": true,
"isPrimary": true
}
],
"icon": "<string>",
"crossBaseId": "<string>",
"crossBaseName": "<string>"
}
],
"edges": [
{
"source": {
"tableId": "<string>",
"tableName": "<string>",
"fieldId": "<string>",
"fieldName": "<string>"
},
"target": {
"tableId": "<string>",
"tableName": "<string>",
"fieldId": "<string>",
"fieldName": "<string>"
},
"type": "singleLineText",
"relationship": "oneOne",
"isOneWay": true
}
]
}此页面对您有帮助吗?
curl --request GET \
--url http://127.0.0.1:3000/api/base/{baseId}/erd \
--header 'Authorization: Bearer <token>'{
"baseId": "<string>",
"nodes": [
{
"id": "<string>",
"name": "<string>",
"fields": [
{
"id": "<string>",
"name": "Tags",
"type": "singleSelect",
"isLookup": true,
"isConditionalLookup": true,
"isPrimary": true
}
],
"icon": "<string>",
"crossBaseId": "<string>",
"crossBaseName": "<string>"
}
],
"edges": [
{
"source": {
"tableId": "<string>",
"tableName": "<string>",
"fieldId": "<string>",
"fieldName": "<string>"
},
"target": {
"tableId": "<string>",
"tableName": "<string>",
"fieldId": "<string>",
"fieldName": "<string>"
},
"type": "singleLineText",
"relationship": "oneOne",
"isOneWay": true
}
]
}