9.3. Service Registry 工件元数据

当工件添加到 Service Registry 时,一组元数据属性会与工件内容一起存储。此元数据由一组生成的只读属性组成,以及您可以设置的一些属性。

表 9.3. Service Registry 元数据属性

属性类型可编辑

id

字符串

false

type

ArtifactType

false

state

ArtifactState

true

version

整数

false

createdBy

字符串

false

createdOn

date

false

modifiedBy

字符串

false

modifiedOn

date

false

name

字符串

true

description

字符串

true

labels

字符串数组

true

属性

map

true

更新工件元数据

  • 您可以使用 Service Registry REST API 使用元数据端点更新一组可编辑的属性集合。
  • 您只能使用状态转换 API 来编辑 state 属性。例如,您可以将工件标记为 已弃用 或禁用

其他资源

如需了解更多详细信息,请参阅 Apicurio Registry REST API 文档中的 /artifacts/{artifactId}/meta 部分。