1
我有一个C#Web.API项目与Swagger和Swashbuckle。SwaggerUI不显示模型纲要
我有一个模型:
public class TimeZoneName
{
public string zoneName { get; }
}
我有方法的控制器:
public string GetLocalTimeByTimeZone(TimeZoneName timezone)
{
//Stuff Happens here
return "12:00";
}
在一个构建我期待Swashbuckle以产生SwaggerUI,显示TIMEZONENAME类型的JSON表示在UI中。
这没有发生。
如何设置我的方法和模型,以便模型模式显示在SwaggerUI中?