列出 workflow
curl --request GET \
--url https://wfapi.yuhe.space/api/workflows \
--header 'Authorization: Bearer <token>'{
"errCode": 123,
"errMessage": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"projectCard": {
"iconBackgroundColor": "<string>",
"iconUrl": "<string>"
},
"hasDraft": true,
"latest": "<string>",
"versions": [
"<string>"
],
"onlineVersions": [
"<string>"
],
"nextVersion": "<string>",
"ownerUserId": "<string>",
"createdByUserId": "<string>",
"createdByProfile": {
"userId": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"runQueue": {
"acceptsNewRuns": true,
"concurrency": 3,
"updatedAt": "2023-11-07T05:31:56Z"
},
"draftBuild": {
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"stdout": "<string>",
"stderr": "<string>",
"error": "<string>"
}
}
]
}Admin Workflows
列出 workflow
GET
/
api
/
workflows
列出 workflow
curl --request GET \
--url https://wfapi.yuhe.space/api/workflows \
--header 'Authorization: Bearer <token>'{
"errCode": 123,
"errMessage": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"projectCard": {
"iconBackgroundColor": "<string>",
"iconUrl": "<string>"
},
"hasDraft": true,
"latest": "<string>",
"versions": [
"<string>"
],
"onlineVersions": [
"<string>"
],
"nextVersion": "<string>",
"ownerUserId": "<string>",
"createdByUserId": "<string>",
"createdByProfile": {
"userId": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"runQueue": {
"acceptsNewRuns": true,
"concurrency": 3,
"updatedAt": "2023-11-07T05:31:56Z"
},
"draftBuild": {
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"durationMs": 123,
"stdout": "<string>",
"stderr": "<string>",
"error": "<string>"
}
}
]
}⌘I