自由标记模板

Freemarker 是一个简单但功能强大的模板引擎,GeoServer用于用户自定义输出。

可以使用geoserver rest api管理目录资源的FreeMarker模板。

/templates/<template>.ftl

此端点管理对整个目录全局的模板。

方法

行动

状态码

格式

默认格式

GET

返回模板

200

PUT

插入或更新模板

405

DELETE

删除模板

405

相同的操作适用于以下终结点:

  • 工作区模板-“/workspaces/<ws>/templates/<template>.ftl`

  • 矢量存储模板-“/workspaces/<ws>/datastores/<ds>/templates/<template>.ftl`

  • 功能类型模板-“/workspaces/<ws>/datastores/<ds>/featuretypes/<f>/templates/<template>.ftl`

  • 栅格存储模板-“/workspaces/<ws>/coveragestores/<cs>/templates/<template>.ftl`

  • 覆盖模板-“/workspaces/<ws>/coveragestores/<cs>/coverages/<c>/templates/<template>.ftl`

/templates[.<format>]

此终结点管理所有全局模板。

方法

行动

状态码

格式

默认格式

GET

返回模板

200

HTML、XML、JSON

HTML

相同的操作适用于以下终结点:

  • 工作区模板-“`/workspaces/<ws>/templates [.<format>] ` `

  • 矢量存储模板-“`/workspaces/<ws>/datastores/<ds>/templates [.<format>] ` `

  • 功能类型模板-“`/workspaces/<ws>/datastores/<ds>/featuretypes/<f>/templates [.<format>] ` `

  • 栅格存储模板-“`/workspaces/<ws>/coveragestores/<cs>/templates [.<format>] ` `

  • 覆盖模板-“`/workspaces/<ws>/coveragestores/<cs>/coverages/<c>/templates [.<format>] ` `

Previous: 字体
Next: OWS服务