1.4. 客户端的 apicurio Registry REST API
客户端应用程序可以使用 Core Registry API v2 管理 Apicurio Registry 中的 schema 和 API 工件。此 API 为以下功能提供操作:
- Admin
-
在
.zip文件中导出或导入 Apicurio Registry 数据,并在运行时管理 Apicurio Registry 实例的日志记录级别。 - 工件
- 管理存储在 Apicurio Registry 中的 schema 和 API 工件。您还可以管理工件的生命周期状态: enabled、disabled 或 deprecated。
- 工件元数据
- 管理模式或 API 工件的详细信息。您可以编辑工件名称、描述或标签等详情。工件组等详情,以及工件创建或修改时为只读。
- 工件规则
- 配置规则以管理特定模式或 API 工件的内容演进,以防止将无效或不兼容的内容添加到 Apicurio Registry 中。工件规则覆盖配置的任何全局规则。
- 工件版本
- 管理在更新 schema 或 API 工件时所创建的版本。您还可以管理工件版本的生命周期状态: enabled、disabled 或 deprecated。
- 全局规则
- 配置规则以管理所有模式和 API 工件的内容演进,以防止将无效或不兼容的内容添加到 Apicurio Registry 中。只有在工件没有配置自己的特定工件规则时,才会应用全局规则。
- 搜索
- 浏览或搜索 schema 和 API 工件和版本,例如名称、组、描述或标签。
- System
- 获取 Apicurio Registry 版本以及 Apicurio Registry 实例的资源的限制。
- 用户
- 获取当前的 Apicurio Registry 用户。
与其他 schema registry REST API 兼容
Apicurio Registry 通过包括其各自的 REST API 实现提供与以下模式 registry 的兼容性:
- apicurio Registry Core Registry API v1
- confluent Schema Registry API v6
- CNCF CloudEvents Schema Registry API v0
使用 Confluent 客户端库的应用程序可以使用 Apicurio Registry 作为简易替代品。如需了解更多详细信息,请参阅 Replacing Confluent Schema Registry。