随笔分类 - Asp.Net Core
摘要:第一步:引入包 Swashbuckle.AspNetCore Microsoft.DotNet.PlatformAbstractions 第二步:设置项目属性 第三步:服务注册 private readonly string apiName = "基础用户信息服务"; #region swagger
阅读全文
摘要:NuGet中添加最新稳定版: Newtonsoft.Json 新建类: using System; namespace SystemClass.JsonStudy { class Person { public int ID { get; set; } public string Name { ge
阅读全文
摘要:微软参考文档:https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?tabs=visual-studio 在 .net core 中使用 swagger 生成接口文档跟在 asp
阅读全文