摘要: [HttpGet("GetAuthorByid/{authorId}",Name =nameof(GetAuthorByid))] public ActionResult<AuthorDto> GetAuthorByid(Guid authorId) { var author= AuthorRepo 阅读全文
posted @ 2020-09-26 12:44 Ambition丿z 阅读(585) 评论(0) 推荐(0)
摘要: 实现步骤 1,创建ASP.NET Web API应用程序 2,安装Nuget包:Swashbuckle.SwaggerGen 3,修改Startup.cs文件 双击打开Startup.cs文件 在ConfigureServices方法中,加入以下代码,以增加对Swagger的支持 1 #region 阅读全文
posted @ 2020-09-26 10:26 Ambition丿z 阅读(175) 评论(0) 推荐(0)