笔记记录下 swagger 配置过程 quote from
We migrated a project to ASP.NET Core 2 (preview) and needed to configure swagger.
In ASP.NET Core v1 we used this code to load the auto generated xml file into swagger:
services.ConfigureSwaggerGen(options =>
using System; | |
using System.Reflection; | |
namespace Grapevine | |
{ | |
public enum ContentType | |
{ | |
[Metadata(Value = "application/x-authorware-bin", IsBinary = true)] | |
AAB, |
DECLARE @tableName NVARCHAR(MAX), @schemaName NVARCHAR(MAX), @className NVARCHAR(MAX) | |
--------------- Input arguments --------------- | |
SET @tableName = 'Incidents' | |
SET @schemaName = 'dbo' | |
SET @className = 'IncidentDto' | |
--------------- Input arguments end ----------- | |
DECLARE tableColumns CURSOR LOCAL FOR | |
SELECT cols.name, cols.system_type_id, cols.is_nullable FROM sys.columns cols |
笔记记录下 swagger 配置过程 quote from
We migrated a project to ASP.NET Core 2 (preview) and needed to configure swagger.
In ASP.NET Core v1 we used this code to load the auto generated xml file into swagger:
services.ConfigureSwaggerGen(options =>
http://35.176.254.4:8000 | |
http://btsha.com:41017 | |
http://47.104.167.217 |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Http; |