查询单条数据
描述
根据指定数据ID查询表单中的数据
使用须知
开发前,请仔细阅读开发指南。
- POST请求头
{"Authorization": "Bearer YOUR_APIKEY"}
YOUR_APIKEY
请阅读开发指南了解。
接口URL
POST - /openapi/v1/app/{app_id}/entry/{entry_id}/data_retrieve
名词解释
名称 | 说明 |
---|---|
app_id | 应用ID |
entry_id | 该应用内的表单ID |
app_id
+entry_id
表示全局唯一的表单标识,前往开发平台中的API文档进行查看。
请求参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
data_id | 53240448e172bd9f00cd85ee | String | 是 | 数据id |
请求示例
{
"data_id": "53240448e172bd9f00cd85ee"
}
响应参数
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
data | - | Object | 返回数据内容 |
data.appId | 572177e6951f4dc54168c1eb | String | 应用id |
data.entryId | 5ebc5c2deee7ea61f7ac25df | String | 表单id |
data.creator | - | Object | 提交人 |
data.deleter | null | Object | 删除人 |
data.updater | - | Object | 更新人 |
data.createTime | 2022-01-19 11:46:53 | DateTime | 数据提交时间 |
data.updateTime | 2022-01-19 14:22:30 | DateTime | 数据更新时间 |
data.deleteTime | - | DateTime | 数据删除时间 |
data._id | 53240448e172bd9f00cd85ee | String | |
data.flowState | 0 | String | 流程状态,流程表才有 2表示流程手动结束 1表示流程已结束 0表示流程进行中 |
响应数据样例
{
"data": {
"appId": "572177e6951f4dc54168c1eb",
"entryId": "5ebc5c2deee7ea61f7ac25df",
"creator": {
"name": "张三",
"_id": "5d66359813f33ef2e45916f2"
},
"deleter": null,
"updater": {
"name": "张三",
"_id": "5d66359813f33ef2e45916f2"
},
"createTime": "2022-01-19 11:46:53",
"updateTime": "2022-01-19 14:22:30",
"deleteTime": null,
"_id": "53240448e172bd9f00cd85ee",
"flowState": "0",
"单行文本": "张三",
"多行文本": "webapi",
"数字": "8",
"日期时间": "2019-01-01 00:00:00",
"单选按钮组": "一年级",
"复选框组": [
"选项1",
"选项2"
],
"下拉框": "女",
"下拉复选框": [
"选项1",
"选项2"
],
"地址": {
"province": "湖南省",
"city": "长沙市",
"district": "芙蓉区",
"detail": "韶山北路"
},
"定位": {
"province": "湖南省",
"city": "长沙市",
"district": "芙蓉区",
"detail": "韶山北路",
"lnglatXY": [
112.99627,
28.19393
]
},
"图片": [
{
"name": "123.jpg",
"size": 68065,
"mime": "image/jpeg",
"url": "https://www.xxxxx.com/FvcphmzkK_18fD2WFNbAQZDXyeR2"
}
],
"附件": [
{
"name": "新建文本文档.txt",
"size": "0",
"mime": "text/plain",
"url": "https://www.xxxxx.com/FvcphmzkK_18fD2WFNbAQZDXyeR2"
}
],
"子表单": [
{
"单行文本_子表单": "张三"
},
{
"单行文本_子表单": "张三"
}
],
"流水号": "00009",
"手写签名": [
{
"name": "bbysignature_1642573334281.png",
"size": "5311",
"mime": "image/png",
"url": "https://www.xxxxx.com/FvcphmzkK_18fD2WFNbAQZDXyeR2"
}
],
"成员单选": {
"name": "万和",
"_id": "5577ebc4504e8e77036d2a09"
},
"成员多选": [
{
"name": "万和",
"_id": "5577ebc4504e8e77036d2a09"
}
],
"部门单选": {
"name": "人事部",
"_id": "51d1177b964603db9e60a962"
},
"部门多选": [
{
"name": "人事部",
"_id": "51d1177b964603db9e60a962"
}
]
}
}