Hey,
I got stuck with finding proper schema for the message key. When I produce messages to Kafka via rest-proxy without keys, everything is fine, but when I add the key into records objects, I'm getting either status 422 if I omit key_schema, or status 500 when I try to define some.
Here is my typical POST body contents:
{
"value_schema_id":321,
"key_schema": "string",
"records": [
{
"partition": 0,
"key": "52da54f0-28c7-4362-7f54-c1c8b4e2c61e",
"value": { "id":"52da54f0-28c7-4362-7f54-c1c8b4e2c61e", "url":"
http://someurl/", "ip":"1.2.3.4", "ts":1427455310804}
}
]
}
I also tried "{\"type\": \"string\"}" and {\"name\": \"string\", \"type\": \"string\"} as values for key_schema, but result is always the same: status 500.
Could you please advise me what schema should be used for simple string message keys?
Vladimir