Skip to content

Render the @View template of one field of one row.​

GET
/erupt-api/tpl/view-tpl/{erupt}/{field}/{id}

The row is injected into the template context.

授权​

tokenParam

The same login token as a query parameter, for endpoints opened by the browser or an editor that cannot set headers.

类型
API Key (query: _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"
field*

Field name whose @View declares a tpl

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

Primary key

类型
string
必填
格式
"string"

响应​

OK

*/*
JSON
[
]

试验场​

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

示例​

Released under the Apache-2.0 License.