|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
路径配置:定义路由规则对应的请求路径、支持的方法和资源信息 |
||
| path |
string |
此条路由规则对应的请求路径。 |
/login |
| resourceName |
string |
资源名称 |
|
| resourceType |
string |
资源类型(和凭证关联资源类型一致) |
runtime |
| agentRuntimeEndpointName |
string |
agent runtime 版本(仅当 resourceType 为 runtime 时有效) |
|
| compatibleProtocol |
string |
兼容协议,指定后端响应格式转换。仅当 resourceType 为 flow 时必填:native 表示 FnF 原生调用;openai、dify-workflow、dify-chatflow 为对应兼容 API。 |
native |
| flowEndpointName |
string |
Flow 版本/别名(仅当 resourceType 为 flow 时有效,默认 Default) |
Default |
| methods |
array |
支持的方法有:HEAD, GET, POST, PUT, DELETE, PATCH, OPTIONS |
['GET'] |
|
string |
|||
| removeBasePathOnForward |
boolean |
该文章对您有帮助吗?