.net core webapi 通過swagger生成說明文檔

1.通過nuget安裝 Swashbuckle.AspNetCore 2.startup.cs=>ConfigureServices,註冊swagger 3.configure中添加: app.UseSwagger(); app.UseSwaggerUI(c => {   c.SwaggerEndpoint("/swagger/v1/swagger.json", "Web API V1"); })
相關文章
相關標籤/搜索