router/api-router.go:403。controller.SyncUpstreamPreview,controller/model_sync.go:317。model:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/models/sync_upstream/preview?locale=' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "string",
"data": {
"candidates": [
{
"model_name": "string",
"kind": "string",
"scope": "string",
"record_version": "string",
"fields": [
{
"field": "string",
"local": null,
"upstream": null,
"property1": "string",
"property2": "string"
}
],
"upstream": {
"description": "string",
"icon": "string",
"tags": "string",
"vendor": "string",
"endpoints": "string",
"name_rule": 0,
"status": 0,
"property1": "string",
"property2": "string"
},
"vendor_to_create": "string",
"property1": "string",
"property2": "string"
}
],
"source": {
"locale": "string",
"models_url": "string",
"vendors_url": "string",
"version": "string",
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}