I implemented Schema Registry using spring boot. 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.
URL: http://localhost:8999/schemas/101 Response: Schema not found: Could not find schema by 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. 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.
http://localhost:8999/ Post with body in JSON format with something like below.
{
"subject":"Employee",
"format":"avro",
"definition":" -- your schema def --"
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.