Skip to content

Pick list of a REFERENCE_TABLE field.​

POST
/erupt-api/data/{erupt}/reference-table/{fieldName}

Pages through the referenced erupt with the same query shape as the table request. When @ReferenceTableType.dependField is set the current value of that field must be sent as dependValue.

授权​

tokenHeader

Login token from POST /erupt-api/login, or from /erupt-api/open-api/create-token for server-to-server calls.

类型
API Key (header: token)

参数​

请求头参数

erupt*

Name of the @Erupt class the request is scoped to. Must match the {erupt} path segment, or name the parent erupt when the path addresses a nested erupt (tab, sub-form, reference).

类型
string
必填
格式
"string"

路径参数

erupt*

Simple class name of the @Erupt model

类型
string
必填
格式
"string"
fieldName*

Field name with edit type REFERENCE_TABLE

类型
string
必填
格式
"string"

查询参数

dependValue

Value of the depend field, required when one is configured

类型
object
tabRef

true when called from a TAB_TABLE_REFER field

类型
boolean
示例true
格式
"boolean"

请求体​

application/json
JSON
{
  
"pageIndex": 0,
  
"pageSize": 0,
  
"sort": [
  
  
{
  
  
  
"field": "string",
  
  
  
"direction": "ASC"
  
  
}
  
],
  
"totalPage": 0,
  
"total": 0,
  
"list": [
  
  
{
  
  
  
"any object": {
  
  
  
}
  
  
}
  
],
  
"alert": {
  
  
"message": "string",
  
  
"closeable": true,
  
  
"uiType": "success"
  
},
  
"extraContent": "string",
  
"linkTreeVal": [
  
  
{
  
  
  
"any object": {
  
  
  
}
  
  
}
  
],
  
"condition": [
  
  
{
  
  
  
"key": "string",
  
  
  
"expression": "AUTO",
  
  
  
"value": {
  
  
  
}
  
  
}
  
],
  
"vis": "string",
  
"any object": {
  
}
}

响应​

OK

*/*
JSON
{
  
"pageIndex": 0,
  
"pageSize": 0,
  
"sort": [
  
  
{
  
  
  
"field": "string",
  
  
  
"direction": "ASC"
  
  
}
  
],
  
"totalPage": 0,
  
"total": 0,
  
"list": [
  
  
{
  
  
  
"any object": {
  
  
  
}
  
  
}
  
],
  
"alert": {
  
  
"message": "string",
  
  
"closeable": true,
  
  
"uiType": "success"
  
},
  
"extraContent": "string"
}

试验场​

服务器
授权
请求头
变量
键
值
主体

示例​

Released under the Apache-2.0 License.