I am trying to post a Protobuf schema to the Schema Registry using kafka-rest interface:
curl -X POST -H "Content-Type: application/vnd.kafka.protobuf.v2+json" \
-H "Accept: application/vnd.kafka.v2+json" \
--data '{"value_schema": "syntax=\"proto3\"; message User { string name = 1; }", "records": [{"value": {"name": "testUser"}}]}' \
"http://localhost:8082/topics/protobuftest"
I am getting this error:
{"error_code":415,"message":"HTTP 415 Unsupported Media Type"}
Question: what is the proper way to indicate the media type for this to work?