获取单个上架详情
获取单个上架的详细信息。
请求信息
请求 URI
GET https://lg.jimitu.top/api/open/publishings/{id}请求头参数
| Header | 必填 | 说明 |
|---|---|---|
Authorization | 是 | Bearer {API Key},接口鉴权,所有请求均需携带 |
Content-Type | 否 | 仅 POST/PUT 携带 JSON 请求体时需要,值为 application/json |
请求路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | integer | 是 | 上架 ID |
请求示例
curl -X GET "https://lg.jimitu.top/api/open/publishings/{id}" \
-H "Authorization: Bearer <your_api_key>"响应信息
响应体示例
{
"success": true,
"data": {
"id": 1,
"template_id": 10,
"template_name": "温柔姐姐",
"publish_name": "温柔姐姐-公开版",
"interaction_name": "小柔",
"greeting": "你好呀~",
"personality": "温柔体贴",
"background_story": "..."
}
}响应参数
| 字段 | 类型 | 说明 |
|---|---|---|
| id | integer | 上架 ID |
| template_id | integer | 模版 ID |
| template_name | string | 模版名称 |
| publish_name | string | 上架显示名 |
| interaction_name | string | 交互名称 |
| greeting | string | 问候语 |
| personality | string | 性格描述 |
| background_story | string | 背景故事 |
错误码
错误码
| error_code | HTTP | 说明 |
|---|---|---|
PUBLISHING_NOT_FOUND | 404 | 上架不存在或无权访问 |