a563c1ca4b
docs/api目录文档分类和补全 --------- Co-authored-by: guke <guke@autohome.com.cn> Reviewed-on: #111
26 lines
968 B
Markdown
26 lines
968 B
Markdown
# GET /api/v1/compare/records/{record_id} — 比价记录详情
|
||
|
||
> 所属:比价记录组(前缀 `/api/v1/compare`) | 鉴权:Bearer | [← 返回 API 索引](../README.md)
|
||
|
||
单条比价记录详情,在列表项基础上额外带 `raw_payload`(客户端上报的原始全量),供未来 UI 展示任意细节。
|
||
|
||
## 入参(path)
|
||
|
||
| 字段 | 类型 | 说明 |
|
||
|---|---|---|
|
||
| `record_id` | int | 记录 id |
|
||
|
||
## 出参
|
||
响应 `200`:**ComparisonRecordDetailOut** = [ComparisonRecordOut](./compare-records.md#出参) 全部字段 + 下列:
|
||
|
||
| 字段 | 类型 | 说明 |
|
||
|---|---|---|
|
||
| `raw_payload` | object \| null | 客户端上报的原始 body 全量(calibration + done.params) |
|
||
|
||
## 错误
|
||
- `401` 未鉴权
|
||
- `404` 记录不存在,或不属于当前用户(限本人,避免越权读他人记录)
|
||
|
||
## 说明
|
||
`404` 同时覆盖「id 不存在」和「id 属于他人」两种情况——不区分以免泄露他人记录是否存在。
|