根据会话ID和文件路径获取Artifact的元信息及正文内容。
接口说明
请求说明
该接口用于根据
SessionId和ArtifactPath获取单个 Artifact 的元信息及正文内容。SessionId和ArtifactPath均为必填参数。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Jsonrpc |
string |
否 |
JSON-RPC 版本,固定 2.0 |
2.0 |
| Id |
string |
否 |
请求方传入的 id,原样回显 |
900335678024 |
| Params |
object |
否 |
业务参数 |
|
| SessionId |
string |
否 |
会话 ID,必填 |
sess_0f12abc34 |
| ArtifactPath |
string |
否 |
产出路径,必填 |
mock/mock_report.md |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 |
CE70C54F-A3BD-5C19-88EF-2A7D3451C449 |
| JsonRpcResponse |
object |
JSON-PRC 的返回结果 |
|
| Jsonrpc |
string |
JSON-RPC 版本,固定 2.0 |
2.0 |
| Id |
string |
请求方传入的 id,原样回显 |
300010555 |
| Result |
object |
模型产出物 Meta 信息 |
|
| ArtifactPath |
string |
产出物路径 |
mock/mock_report.md |
| ArtifactName |
string |
产出物名称 |
mock_report.md |
| ArtifactContent |
string |
产出物内容 |
This is md content |
示例
正常返回示例
JSON格式
{
"RequestId": "CE70C54F-A3BD-5C19-88EF-2A7D3451C449",
"JsonRpcResponse": {
"Jsonrpc": "2.0",
"Id": "300010555",
"Result": {
"ArtifactPath": "mock/mock_report.md",
"ArtifactName": "mock_report.md",
"ArtifactContent": "This is md content"
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。