Authorization: Bearer ********************{
"table_name": "员工管理",
"columns": [
{
"column_name": "姓名",
"type": "string",
"title_column": true
},
{
"column_name": "年龄",
"type": "number"
},
{
"column_name": "部门",
"type": "select",
"options": {
"options": [
{
"label": "技术部",
"value": "1"
},
{
"label": "市场部",
"value": "2"
}
]
}
}
]
}curl --location 'https://app.emoosearch.com/open-api/v1/data/table' \
--header 'Emoo-User-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"table_name": "员工管理",
"columns": [
{
"column_name": "姓名",
"type": "string",
"title_column": true
},
{
"column_name": "年龄",
"type": "number"
},
{
"column_name": "部门",
"type": "select",
"options": {
"options": [
{
"label": "技术部",
"value": "1"
},
{
"label": "市场部",
"value": "2"
}
]
}
}
]
}'{
"code": 200,
"message": "success",
"data": {
"table_key": "string",
"table_name": "string",
"extra": {},
"column_count": 0,
"record_count": 0,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"columns": [
{
"column_key": "string",
"column_name": "string",
"type": "string",
"table_key": "string",
"title_column": true,
"multiple": true,
"order": 0,
"reference_table_key": "string",
"reference_table_name": "string",
"options": {},
"extra": {},
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
]
}
}