POST
/
api
/
workflows
/
{workflowName}
/
structure
/
preview
使用文件内容预览 workflow 结构
curl --request POST \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/structure/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "files": [
    {
      "path": "index.ts",
      "content": "export default {};"
    }
  ]
}
'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "workflowId": "<string>",
    "workflowName": "<string>",
    "target": "<string>",
    "resolvedTarget": "<string>",
    "structure": {}
  }
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required

Body

application/json
files
object[]
required

Response

200 - application/json

workflow 结构报告。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required