Описание API ядра asp.net с помощью Swagger и Generic BaseControllerC#

Место общения программистов C#
Anonymous
Описание API ядра asp.net с помощью Swagger и Generic BaseController

Сообщение Anonymous »


Given BaseController

public class BaseController : ControllerBase { /// /// Returns a . /// public IActionResult Details( [FromRoute] string id) { return Ok(new TViewModel()); } } and the implementation

public class ItemsController : BaseController The following Documentation is generated
Изображение


I would like to see Returns a Item

is there a way to resolve the Generics?


Источник: https://stackoverflow.com/questions/780 ... controller

Вернуться в «C#»