Beispiel #1
0
        public async Task <IActionResult> UpdateSchema([FromRoute] string topic, [FromBody] JsonElement element)
        {
            var content = element.ToString();
            var schema  = new Schema
            {
                Topic   = topic,
                Content = content
            };
            var result = await _schemaRegistry.UpdateSchema(schema);

            return(!result?BadRequest() : Ok(schema));
        }