From 43ff62c204431ab2cb35830eb57d4bc125bb9889 Mon Sep 17 00:00:00 2001 From: wyb <1qaz@123> Date: 星期三, 12 五月 2021 16:46:46 +0800 Subject: [PATCH] 引入swagger页面 --- MyWebApi/MyWebApi.csproj | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/MyWebApi/MyWebApi.csproj b/MyWebApi/MyWebApi.csproj index b949f79..f726398 100644 --- a/MyWebApi/MyWebApi.csproj +++ b/MyWebApi/MyWebApi.csproj @@ -32,6 +32,7 @@ <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> + <DocumentationFile>bin\MyWebApi.xml</DocumentationFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -53,6 +54,9 @@ <HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath> </Reference> <Reference Include="Microsoft.CSharp" /> + <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> + <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath> + </Reference> <Reference Include="ServiceStack.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL"> <HintPath>..\packages\ServiceStack.Common.5.11.0\lib\net472\ServiceStack.Common.dll</HintPath> </Reference> @@ -64,6 +68,12 @@ </Reference> <Reference Include="ServiceStack.Text, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587, processorArchitecture=MSIL"> <HintPath>..\packages\ServiceStack.Text.5.11.0\lib\net45\ServiceStack.Text.dll</HintPath> + </Reference> + <Reference Include="Swagger.Net, Version=0.5.1.0, Culture=neutral, processorArchitecture=MSIL"> + <HintPath>..\packages\Swagger.Net.0.5.5\lib\net40\Swagger.Net.dll</HintPath> + </Reference> + <Reference Include="Swashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc, processorArchitecture=MSIL"> + <HintPath>..\packages\Swashbuckle.Core.5.6.0\lib\net40\Swashbuckle.Core.dll</HintPath> </Reference> <Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> <HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath> @@ -106,6 +116,12 @@ <Reference Include="System.Configuration" /> <Reference Include="System.Web.Services" /> <Reference Include="System.EnterpriseServices" /> + <Reference Include="WebActivator, Version=1.5.1.0, Culture=neutral, processorArchitecture=MSIL"> + <HintPath>..\packages\WebActivator.1.5.1\lib\net40\WebActivator.dll</HintPath> + </Reference> + <Reference Include="WebActivatorEx, Version=2.0.0.0, Culture=neutral, PublicKeyToken=7b26dc2a43f6a0d4, processorArchitecture=MSIL"> + <HintPath>..\packages\WebActivatorEx.2.0\lib\net40\WebActivatorEx.dll</HintPath> + </Reference> <Reference Include="WebApi.OutputCache.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <HintPath>..\packages\Strathweb.CacheOutput.WebApi2.0.11.0\lib\net45\WebApi.OutputCache.Core.dll</HintPath> </Reference> @@ -139,9 +155,25 @@ <Content Include="Scripts\jquery-3.6.0.min.js" /> <Content Include="Scripts\jquery-3.6.0.slim.js" /> <Content Include="Scripts\jquery-3.6.0.slim.min.js" /> + <Content Include="SwaggerUI\css\screen.css" /> + <Content Include="SwaggerUI\images\pet_store_api.png" /> + <Content Include="SwaggerUI\images\wordnik_api.png" /> + <Content Include="SwaggerUI\index.html" /> + <Content Include="SwaggerUI\lib\backbone-min.js" /> + <Content Include="SwaggerUI\lib\handlebars.runtime-1.0.0.beta.6.js" /> + <Content Include="SwaggerUI\lib\jquery.ba-bbq.min.js" /> + <Content Include="SwaggerUI\lib\jquery.min.js" /> + <Content Include="SwaggerUI\lib\jquery.slideto.min.js" /> + <Content Include="SwaggerUI\lib\jquery.wiggle.min.js" /> + <Content Include="SwaggerUI\lib\swagger.js" /> + <Content Include="SwaggerUI\lib\underscore-min.js" /> + <Content Include="SwaggerUI\swagger-ui.js" /> + <Content Include="SwaggerUI\swagger-ui.min.js" /> <Content Include="Web.config" /> </ItemGroup> <ItemGroup> + <Compile Include="App_Start\SwaggerConfig.cs" /> + <Compile Include="App_Start\SwaggerNet.cs" /> <Compile Include="App_Start\WebApiConfig.cs" /> <Compile Include="Controllers\LoadDataController.cs" /> <Compile Include="DLL\BLL\LoadDataBLL.cs" /> @@ -165,6 +197,7 @@ <None Include="packages.config" /> <Content Include="Scripts\jquery-3.6.0.slim.min.map" /> <Content Include="Scripts\jquery-3.6.0.min.map" /> + <Content Include="SwaggerUI\lib\.DS_Store" /> <None Include="Web.Debug.config"> <DependentUpon>Web.config</DependentUpon> </None> -- Gitblit v1.9.1