Example #1
0
        public async Task CreateTopic(CreateTopicRequest topic)
        {
            var content = new StringContent(
                content: _serializer.Serialize(topic),
                encoding: Encoding.UTF8,
                mediaType: "application/json"
                );

            var response = await _client.PostAsync("/api/topics", content);

            response.EnsureSuccessStatusCode();
        }
Example #2
0
        public async Task <IActionResult> CreateCapability([FromBody] CreateTopicRequest input)
        {
            await _topicClient.CreateTopic(input);

            return(NoContent());
        }