December 2018
Beginner
186 pages
4h 10m
English
Let's suppose that there is an existing schema registered on a subject called healthchecks-value1, and we need this schema available on a subject called healthchecks-value2.
The following command reads the existing schema from healthchecks-value1 and registers it to healthchecks-value2 (assuming that the jq tool is already installed):
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json"\--data "{\"schema\": $(curl -s http://localhost:8081/subjects/healthchecks-value1/versions/latest | jq '.schema')}" \http://localhost:8081/subjects/healthchecks-value2/versions
The output should be something like this:
{"id":1}
Read now
Unlock full access