コード例 #1
0
    public ActionResult <ICollection <TopicPartition> > AssignConsumer(Guid consumerId, [Required] string token,
                                                                       [Required] IEnumerable <TopicPartitionOffset> request)
    {
        var consumerAssignment = _service.AssignConsumer(consumerId, token, request);

        return(CreatedAtAction(nameof(GetConsumerAssignment), new { consumerId, token }, consumerAssignment));
    }