Cấu hình Swagger Hỗ trợ JWT và Tài liệu XML trên .NET Core WebAPI
Kích hoạt tài liệu XML trong dự án
Để Swagger có thể hiển thị đầy đủ chú thích cho các Model và Controller, cần cấu hình project file để sinh ra file XML khi build. Thêm các thuộc tính sau vào file .csproj:
<PropertyGroup>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn&g ...
Đăng vào ngày 29 tháng 5 lúc 10:39