数据生成 API#

提供数据查询功能,根据ID获取对应的数据对象。

接口定义#

根据传入的ID查询并返回对应的数据对象。

请求示例:

curl "https://api.example.com/v1/data?id=data_001" \
  -H "Authorization: Bearer <token>"

响应示例:

{
  "id": "data_001",
  "name": "示例数据",
  "content": "这是数据内容",
  "created_at": "2024-01-15T08:30:00Z"
}

数据模型#

DataResponse 对象#

字段名

类型

说明

id

string

数据唯一标识

name

string

数据名称

content

string

数据内容

created_at

string

创建时间(ISO 8601)

ErrorResponse 对象#

字段名

类型

说明

error.code

string

错误码

error.message

string

错误描述

error.details

object

错误详细信息