Manifest
GET
/api/v1/api/v1/manifestManifest 用于发现 API 版本、Worker 版本、认证模式、替代前端能力与端点地址。集成初始化时应先读取它,而不是假设部署一定支持所有功能。
请求
bash
curl -fsSL https://YOUR-API/api/v1响应示例
json
{
"ok": true,
"api_version": "v1",
"worker_version": "1.1.93",
"stability": "stable",
"base_url": "https://api.example.com/api/v1",
"authentication": {
"read": "none",
"write": "not_available"
},
"cors": {
"mode": "explicit-origin-allowlist",
"environment": "DEVELOPER_API_ORIGINS"
},
"alternate_frontends": true,
"endpoints": [
{
"method": "GET",
"url": "https://api.example.com/api/v1/status"
}
]
}worker_version 反映部署的 Worker 版本。客户端用它做排障与展示,不做功能推断;能力以字段与端点清单为准。Manifest 默认缓存 300 秒。