December 2018
Beginner
186 pages
4h 10m
English
To register the Avro schema healthcheck.avsc, located in the src/main/resources/ path listed in Listing 5.2, using the curl command, we use the following:
$ curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \--data '{ "schema": "{ \"name\": \"HealthCheck\", \"namespace\": \"kioto.avro\", \"type\": \"record\", \"fields\": [ { \"name\": \"event\", \"type\": \"string\" }, { \"name\": \"factory\", \"type\": \"string\" }, { \"name\": \"serialNumber\", \"type\": \"string\" }, { \"name\": \"type\", \"type\": \"string\" }, { \"name\": \"status\", \"type\": \"string\"}, { \"name\": \"lastStartedAt\", \"type\": \"long\", \"logicalType\": \"timestamp-millis\"}, { \"name\": ...Read now
Unlock full access