[英]Registering a schema in schema registry using spring boot
I implemented Schema Registry using spring boot.我使用 spring 引导实现了模式注册表。 I can see that its up and running as I try to get a schema by ID using below URL in PostMan it returns proper expected response.
我可以看到它启动并运行,因为我尝试在 PostMan 中使用下面的 URL 通过 ID 获取模式,它返回正确的预期响应。
URL: http://localhost:8999/schemas/101 Response: Schema not found: Could not find schema by ID: 101 URL:http://localhost:8999/schemas/101 响应:找不到架构:无法通过 ID 找到架构:101
But the problem is with registering the schema.但问题在于注册模式。 I tried multiple multiple options and combinations both GET and POST side and also searched.
我在 GET 和 POST 端尝试了多个选项和组合,并进行了搜索。 Nothing seem to work.
似乎没有任何工作。
This got resolved.这得到了解决。 I got to know that we can register a schema by posting below fields over end-point "/" in JSON format.
我知道我们可以通过在 JSON 格式的端点“/”上发布以下字段来注册模式。
http://localhost:8999/ Post with body in JSON format with something like below. http://localhost:8999/ 以 JSON 格式发布正文,如下所示。
{
"subject":"Employee",
"format":"avro",
"definition":" -- your schema def --"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.