• 大小: 0.69M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: API  asp.net  Swagger  

资源简介

webapi除了实现了swagger文档管理,还实现 jwt安全验证

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace AspNetCoreSwaggerDemo
{
    public class Program
    {
        public static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup()
                .Build();
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2518  2018-08-09 11:15  .gitattributes
     文件        2812  2018-08-09 11:15  .gitignore
     目录           0  2018-08-09 23:45  .vs\
     目录           0  2018-08-09 23:57  .vs\AspNetCoreSwaggerDemo\
     目录           0  2018-08-09 23:57  .vs\AspNetCoreSwaggerDemo\DesignTimeBuild\
     文件     1237466  2018-08-09 23:57  .vs\AspNetCoreSwaggerDemo\DesignTimeBuild\.dtbcache
     目录           0  2018-08-09 23:44  .vs\AspNetCoreSwaggerDemo\v15\
     文件       41984  2018-08-09 23:57  .vs\AspNetCoreSwaggerDemo\v15\.suo
     目录           0  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\
     目录           0  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\sqlite3\
     文件           0  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\sqlite3\db.lock
     文件        4096  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\sqlite3\storage.ide
     文件       32768  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\sqlite3\storage.ide-shm
     文件     2022952  2018-08-09 23:39  .vs\AspNetCoreSwaggerDemo\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-08-09 23:45  .vs\config\
     文件       80109  2018-08-09 23:45  .vs\config\applicationhost.config
     目录           0  2018-08-09 23:39  AspNetCoreSwaggerDemo\
     文件         701  2018-08-09 11:15  AspNetCoreSwaggerDemo\AspNetCoreSwaggerDemo.csproj
     目录           0  2018-08-09 23:38  AspNetCoreSwaggerDemo\Controllers\
     文件        1122  2018-08-09 11:15  AspNetCoreSwaggerDemo\Controllers\AccountController.cs
     文件        2657  2018-08-09 11:15  AspNetCoreSwaggerDemo\Controllers\UserCenterController.cs
     目录           0  2018-08-09 23:38  AspNetCoreSwaggerDemo\Extensions\
     文件        2693  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\ApiTokenService.cs
     文件         363  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\baseApiController.cs
     文件        1536  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\CustomRouteAttribute.cs
     文件         715  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\ServiceLocator.cs
     文件        3380  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\SwaggerExtensions.cs
     文件         834  2018-08-09 11:15  AspNetCoreSwaggerDemo\Extensions\UserAuthorizeAttribute.cs
     文件         613  2018-08-09 11:15  AspNetCoreSwaggerDemo\Program.cs
     目录           0  2018-08-09 23:38  AspNetCoreSwaggerDemo\Properties\
     文件         700  2018-08-09 11:15  AspNetCoreSwaggerDemo\Properties\launchSettings.json
............此处省略33个文件信息

评论

共有 条评论