diff --git a/README.md b/README.md index 54eb4e7..34a669b 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,6 @@ user_name authenticate user to only mess with what they have written. search places (FOR FUN) + +For Docmuentation, run and visit: +http://localhost:5003/swagger/index.html diff --git a/Startup.cs b/Startup.cs index 71b3802..7758130 100644 --- a/Startup.cs +++ b/Startup.cs @@ -5,7 +5,10 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.AspNetCore.Mvc.Versioning; +using Swashbuckle.AspNetCore.Swagger; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; + namespace TravelApi { @@ -18,30 +21,29 @@ public Startup(IConfiguration configuration) public IConfiguration Configuration { get; } - // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddApiVersioning(o => { }) services.AddDbContext(opt => - opt.UseMySql(Configuration.GetConnectionString("DefaultConnection"))); - services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + opt.UseMySql(Configuration.GetConnectionString("DefaultConnection"))); + services.AddMvc(); + services.AddSwaggerGen(); } - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } - else + app.UseSwagger(); + app.UseSwaggerUI(c => { - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); - } - - // app.UseHttpsRedirection(); + c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); + }); app.UseMvc(); } } -} \ No newline at end of file +} + + +//http://localhost:5003/swagger/v1/swagger.json \ No newline at end of file diff --git a/TravelApi.csproj b/TravelApi.csproj index 70118b1..15dd5c5 100644 --- a/TravelApi.csproj +++ b/TravelApi.csproj @@ -10,6 +10,7 @@ + diff --git a/bin/Debug/netcoreapp2.2/TravelApi.deps.json b/bin/Debug/netcoreapp2.2/TravelApi.deps.json index 1edefc6..dbf441f 100644 --- a/bin/Debug/netcoreapp2.2/TravelApi.deps.json +++ b/bin/Debug/netcoreapp2.2/TravelApi.deps.json @@ -1,7 +1,7 @@ { "runtimeTarget": { "name": ".NETCoreApp,Version=v2.2", - "signature": "0cde6c3e500885408326574ab576e9d5a81ee6e8" + "signature": "41384793725df1acfddeb373c9d40ba732854bc9" }, "compilationOptions": { "defines": [ @@ -28,7 +28,8 @@ "Microsoft.AspNetCore.Razor.Design": "2.2.0", "Microsoft.EntityFrameworkCore": "2.2.0", "Microsoft.NETCore.App": "2.2.0", - "Pomelo.EntityFrameworkCore.MySql": "2.2.0" + "Pomelo.EntityFrameworkCore.MySql": "2.2.0", + "Swashbuckle.AspNetCore": "5.6.3" }, "runtime": { "TravelApi.dll": {} @@ -37,6 +38,29 @@ "TravelApi.dll": {} } }, + "Microsoft.Bcl.AsyncInterfaces/1.0.0": { + "runtime": { + "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "4.700.19.46214" + } + }, + "compile": { + "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} + } + }, + "Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, + "Microsoft.OpenApi/1.2.3": { + "runtime": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": { + "assemblyVersion": "1.2.3.0", + "fileVersion": "1.2.3.0" + } + }, + "compile": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": {} + } + }, "MySqlConnector/0.49.2": { "runtime": { "lib/netcoreapp2.1/MySqlConnector.dll": { @@ -79,6 +103,101 @@ "lib/netstandard2.0/Pomelo.JsonObject.dll": {} } }, + "Swashbuckle.AspNetCore/5.6.3": { + "dependencies": { + "Microsoft.Extensions.ApiDescription.Server": "3.0.0", + "Swashbuckle.AspNetCore.Swagger": "5.6.3", + "Swashbuckle.AspNetCore.SwaggerGen": "5.6.3", + "Swashbuckle.AspNetCore.SwaggerUI": "5.6.3" + } + }, + "Swashbuckle.AspNetCore.Swagger/5.6.3": { + "dependencies": { + "Microsoft.AspNetCore.Routing": "2.2.0", + "Microsoft.OpenApi": "1.2.3" + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll": { + "assemblyVersion": "5.6.3.0", + "fileVersion": "5.6.3.0" + } + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll": {} + } + }, + "Swashbuckle.AspNetCore.SwaggerGen/5.6.3": { + "dependencies": { + "Microsoft.AspNetCore.Mvc.ApiExplorer": "2.2.0", + "Microsoft.AspNetCore.Mvc.DataAnnotations": "2.2.0", + "Swashbuckle.AspNetCore.Swagger": "5.6.3", + "System.Text.Json": "4.6.0" + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { + "assemblyVersion": "5.6.3.0", + "fileVersion": "5.6.3.0" + } + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {} + } + }, + "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": { + "dependencies": { + "Microsoft.AspNetCore.Routing": "2.2.0", + "Microsoft.AspNetCore.StaticFiles": "2.2.0", + "Microsoft.Extensions.FileProviders.Embedded": "2.2.0", + "System.Text.Json": "4.6.0" + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { + "assemblyVersion": "5.6.3.0", + "fileVersion": "5.6.3.0" + } + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} + } + }, + "System.Runtime.CompilerServices.Unsafe/4.6.0": { + "runtime": { + "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll": { + "assemblyVersion": "4.0.5.0", + "fileVersion": "4.0.0.0" + } + }, + "compile": { + "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} + } + }, + "System.Text.Encodings.Web/4.6.0": { + "runtime": { + "lib/netstandard2.0/System.Text.Encodings.Web.dll": { + "assemblyVersion": "4.0.4.0", + "fileVersion": "4.700.19.46214" + } + }, + "compile": { + "lib/netstandard2.0/System.Text.Encodings.Web.dll": {} + } + }, + "System.Text.Json/4.6.0": { + "dependencies": { + "Microsoft.Bcl.AsyncInterfaces": "1.0.0", + "System.Runtime.CompilerServices.Unsafe": "4.6.0", + "System.Text.Encodings.Web": "4.6.0" + }, + "runtime": { + "lib/netstandard2.0/System.Text.Json.dll": { + "assemblyVersion": "4.0.0.0", + "fileVersion": "4.700.19.46214" + } + }, + "compile": { + "lib/netstandard2.0/System.Text.Json.dll": {} + } + }, "Microsoft.AspNet.WebApi.Client/5.2.6": { "dependencies": { "Newtonsoft.Json": "11.0.2", @@ -609,7 +728,7 @@ }, "Microsoft.AspNetCore.Html.Abstractions/2.2.0": { "dependencies": { - "System.Text.Encodings.Web": "4.5.0" + "System.Text.Encodings.Web": "4.6.0" }, "compile": { "lib/netstandard2.0/Microsoft.AspNetCore.Html.Abstractions.dll": {} @@ -632,7 +751,7 @@ "Microsoft.AspNetCore.Http.Abstractions/2.2.0": { "dependencies": { "Microsoft.AspNetCore.Http.Features": "2.2.0", - "System.Text.Encodings.Web": "4.5.0" + "System.Text.Encodings.Web": "4.6.0" }, "compile": { "lib/netstandard2.0/Microsoft.AspNetCore.Http.Abstractions.dll": {} @@ -1137,7 +1256,7 @@ "System.IO.Pipelines": "4.5.2", "System.Memory": "4.5.1", "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.1", + "System.Runtime.CompilerServices.Unsafe": "4.6.0", "System.Security.Principal.Windows": "4.5.0" }, "compile": { @@ -1169,7 +1288,7 @@ "Microsoft.Net.Http.Headers": "2.2.0", "System.Memory": "4.5.1", "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.1", + "System.Runtime.CompilerServices.Unsafe": "4.6.0", "System.Security.Cryptography.Cng": "4.5.0", "System.Threading.Tasks.Extensions": "4.5.1" }, @@ -1319,7 +1438,7 @@ "Microsoft.AspNetCore.WebUtilities/2.2.0": { "dependencies": { "Microsoft.Net.Http.Headers": "2.2.0", - "System.Text.Encodings.Web": "4.5.0" + "System.Text.Encodings.Web": "4.6.0" }, "compile": { "lib/netstandard2.0/Microsoft.AspNetCore.WebUtilities.dll": {} @@ -1907,7 +2026,7 @@ "Microsoft.Extensions.Primitives/2.2.0": { "dependencies": { "System.Memory": "4.5.1", - "System.Runtime.CompilerServices.Unsafe": "4.5.1" + "System.Runtime.CompilerServices.Unsafe": "4.6.0" }, "compile": { "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} @@ -1918,7 +2037,7 @@ "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "2.2.0", "Microsoft.Extensions.Options": "2.2.0", - "System.Text.Encodings.Web": "4.5.0" + "System.Text.Encodings.Web": "4.6.0" }, "compile": { "lib/netstandard2.0/Microsoft.Extensions.WebEncoders.dll": {} @@ -2830,12 +2949,6 @@ }, "compileOnly": true }, - "System.Runtime.CompilerServices.Unsafe/4.5.1": { - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "compileOnly": true - }, "System.Runtime.Extensions/4.3.0": { "dependencies": { "Microsoft.NETCore.Platforms": "2.2.0", @@ -3095,7 +3208,7 @@ "System.Text.Encoding.CodePages/4.5.0": { "dependencies": { "Microsoft.NETCore.Platforms": "2.2.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.1" + "System.Runtime.CompilerServices.Unsafe": "4.6.0" }, "compileOnly": true }, @@ -3108,12 +3221,6 @@ }, "compileOnly": true }, - "System.Text.Encodings.Web/4.5.0": { - "compile": { - "lib/netstandard2.0/System.Text.Encodings.Web.dll": {} - }, - "compileOnly": true - }, "System.Text.RegularExpressions/4.3.0": { "dependencies": { "System.Runtime": "4.3.0" @@ -3281,6 +3388,27 @@ "serviceable": false, "sha512": "" }, + "Microsoft.Bcl.AsyncInterfaces/1.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-K63Y4hORbBcKLWH5wnKgzyn7TOfYzevIEwIedQHBIkmkEBA9SCqgvom+XTuE+fAFGvINGkhFItaZ2dvMGdT5iw==", + "path": "microsoft.bcl.asyncinterfaces/1.0.0", + "hashPath": "microsoft.bcl.asyncinterfaces.1.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.ApiDescription.Server/3.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", + "path": "microsoft.extensions.apidescription.server/3.0.0", + "hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" + }, + "Microsoft.OpenApi/1.2.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", + "path": "microsoft.openapi/1.2.3", + "hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" + }, "MySqlConnector/0.49.2": { "type": "package", "serviceable": true, @@ -3302,6 +3430,55 @@ "path": "pomelo.jsonobject/2.2.0", "hashPath": "pomelo.jsonobject.2.2.0.nupkg.sha512" }, + "Swashbuckle.AspNetCore/5.6.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-UkL9GU0mfaA+7RwYjEaBFvAzL8qNQhNqAeV5uaWUu/Z+fVgvK9FHkGCpTXBqSQeIHuZaIElzxnLDdIqGzuCnVg==", + "path": "swashbuckle.aspnetcore/5.6.3", + "hashPath": "swashbuckle.aspnetcore.5.6.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.Swagger/5.6.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-rn/MmLscjg6WSnTZabojx5DQYle2GjPanSPbCU3Kw8Hy72KyQR3uy8R1Aew5vpNALjfUFm2M/vwUtqdOlzw+GA==", + "path": "swashbuckle.aspnetcore.swagger/5.6.3", + "hashPath": "swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.SwaggerGen/5.6.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-CkhVeod/iLd3ikVTDOwG5sym8BE5xbqGJ15iF3cC7ZPg2kEwDQL4a88xjkzsvC9oOB2ax6B0rK0EgRK+eOBX+w==", + "path": "swashbuckle.aspnetcore.swaggergen/5.6.3", + "hashPath": "swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512" + }, + "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": { + "type": "package", + "serviceable": true, + "sha512": "sha512-BPvcPxQRMsYZ3HnYmGKRWDwX4Wo29WHh14Q6B10BB8Yfbbcza+agOC2UrBFA1EuaZuOsFLbp6E2+mqVNF/Je8A==", + "path": "swashbuckle.aspnetcore.swaggerui/5.6.3", + "hashPath": "swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512" + }, + "System.Runtime.CompilerServices.Unsafe/4.6.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-HxozeSlipUK7dAroTYwIcGwKDeOVpQnJlpVaOkBz7CM4TsE5b/tKlQBZecTjh6FzcSbxndYaxxpsBMz+wMJeyw==", + "path": "system.runtime.compilerservices.unsafe/4.6.0", + "hashPath": "system.runtime.compilerservices.unsafe.4.6.0.nupkg.sha512" + }, + "System.Text.Encodings.Web/4.6.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-BXgFO8Yi7ao7hVA/nklD0Hre1Bbce048ZqryGZVFifGNPuh+2jqF1i/jLJLMfFGZIzUOw+nCIeH24SQhghDSPw==", + "path": "system.text.encodings.web/4.6.0", + "hashPath": "system.text.encodings.web.4.6.0.nupkg.sha512" + }, + "System.Text.Json/4.6.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==", + "path": "system.text.json/4.6.0", + "hashPath": "system.text.json.4.6.0.nupkg.sha512" + }, "Microsoft.AspNet.WebApi.Client/5.2.6": { "type": "package", "serviceable": true, @@ -5003,13 +5180,6 @@ "path": "system.runtime/4.3.0", "hashPath": "system.runtime.4.3.0.nupkg.sha512" }, - "System.Runtime.CompilerServices.Unsafe/4.5.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Zh8t8oqolRaFa9vmOZfdQm/qKejdqz0J9kr7o2Fu0vPeoH3BL1EOXipKWwkWtLT1JPzjByrF19fGuFlNbmPpiw==", - "path": "system.runtime.compilerservices.unsafe/4.5.1", - "hashPath": "system.runtime.compilerservices.unsafe.4.5.1.nupkg.sha512" - }, "System.Runtime.Extensions/4.3.0": { "type": "package", "serviceable": true, @@ -5178,13 +5348,6 @@ "path": "system.text.encoding.extensions/4.3.0", "hashPath": "system.text.encoding.extensions.4.3.0.nupkg.sha512" }, - "System.Text.Encodings.Web/4.5.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-Xg4G4Indi4dqP1iuAiMSwpiWS54ZghzR644OtsRCm/m/lBMG8dUBhLVN7hLm8NNrNTR+iGbshCPTwrvxZPlm4g==", - "path": "system.text.encodings.web/4.5.0", - "hashPath": "system.text.encodings.web.4.5.0.nupkg.sha512" - }, "System.Text.RegularExpressions/4.3.0": { "type": "package", "serviceable": true, diff --git a/bin/Debug/netcoreapp2.2/TravelApi.dll b/bin/Debug/netcoreapp2.2/TravelApi.dll index f76952c..7606b01 100644 Binary files a/bin/Debug/netcoreapp2.2/TravelApi.dll and b/bin/Debug/netcoreapp2.2/TravelApi.dll differ diff --git a/bin/Debug/netcoreapp2.2/TravelApi.pdb b/bin/Debug/netcoreapp2.2/TravelApi.pdb index e041f9c..7831fe2 100644 Binary files a/bin/Debug/netcoreapp2.2/TravelApi.pdb and b/bin/Debug/netcoreapp2.2/TravelApi.pdb differ diff --git a/obj/Debug/netcoreapp2.2/TravelApi.assets.cache b/obj/Debug/netcoreapp2.2/TravelApi.assets.cache index 6607180..7c83d2c 100644 Binary files a/obj/Debug/netcoreapp2.2/TravelApi.assets.cache and b/obj/Debug/netcoreapp2.2/TravelApi.assets.cache differ diff --git a/obj/Debug/netcoreapp2.2/TravelApi.csproj.CoreCompileInputs.cache b/obj/Debug/netcoreapp2.2/TravelApi.csproj.CoreCompileInputs.cache index fa32b2a..db14c30 100644 --- a/obj/Debug/netcoreapp2.2/TravelApi.csproj.CoreCompileInputs.cache +++ b/obj/Debug/netcoreapp2.2/TravelApi.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -7065ea33c768329efdb2385d54f2f997b54e2574 +19f9ee43d8d943347a234e416e23b52bc4e5d1b1 diff --git a/obj/Debug/netcoreapp2.2/TravelApi.csprojAssemblyReference.cache b/obj/Debug/netcoreapp2.2/TravelApi.csprojAssemblyReference.cache index 5232e28..f540ae9 100644 Binary files a/obj/Debug/netcoreapp2.2/TravelApi.csprojAssemblyReference.cache and b/obj/Debug/netcoreapp2.2/TravelApi.csprojAssemblyReference.cache differ diff --git a/obj/Debug/netcoreapp2.2/TravelApi.dll b/obj/Debug/netcoreapp2.2/TravelApi.dll index f76952c..7606b01 100644 Binary files a/obj/Debug/netcoreapp2.2/TravelApi.dll and b/obj/Debug/netcoreapp2.2/TravelApi.dll differ diff --git a/obj/Debug/netcoreapp2.2/TravelApi.pdb b/obj/Debug/netcoreapp2.2/TravelApi.pdb index e041f9c..7831fe2 100644 Binary files a/obj/Debug/netcoreapp2.2/TravelApi.pdb and b/obj/Debug/netcoreapp2.2/TravelApi.pdb differ diff --git a/obj/TravelApi.csproj.nuget.cache b/obj/TravelApi.csproj.nuget.cache index 3c1c703..fb24113 100644 --- a/obj/TravelApi.csproj.nuget.cache +++ b/obj/TravelApi.csproj.nuget.cache @@ -1,5 +1,5 @@ { "version": 1, - "dgSpecHash": "kn7HpcRXpwKxwKl98xBQXYOQXYfxNwiVI0wZa9vRUAlL7bKu1ReyyICDnQmvJ1jlRl986wS+q+vjC77xBanIbA==", + "dgSpecHash": "756+fP6UQXfoKO5DOjk/V0F9femdwvOsUA5AbEUcnAiWVd0mTNsAAvVARcfF1Xhr4AERnxzv0D5y/JdXQ33FKw==", "success": true } \ No newline at end of file diff --git a/obj/TravelApi.csproj.nuget.g.props b/obj/TravelApi.csproj.nuget.g.props index 2dc6dec..07026aa 100644 --- a/obj/TravelApi.csproj.nuget.g.props +++ b/obj/TravelApi.csproj.nuget.g.props @@ -13,8 +13,10 @@ $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - + + + @@ -22,6 +24,7 @@ + /Users/nataliemurphy/.nuget/packages/microsoft.extensions.apidescription.server/3.0.0 /usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.entityframeworkcore.tools/2.2.0 /usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.codeanalysis.analyzers/1.1.0 /usr/local/share/dotnet/sdk/NuGetFallbackFolder/microsoft.aspnetcore.razor.design/2.2.0 diff --git a/obj/TravelApi.csproj.nuget.g.targets b/obj/TravelApi.csproj.nuget.g.targets index 5a9f44e..c01a85b 100644 --- a/obj/TravelApi.csproj.nuget.g.targets +++ b/obj/TravelApi.csproj.nuget.g.targets @@ -4,9 +4,10 @@ $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + - diff --git a/obj/project.assets.json b/obj/project.assets.json index 703f8ba..5e7d712 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1566,6 +1566,15 @@ "lib/netstandard2.0/Microsoft.AspNetCore.WebUtilities.dll": {} } }, + "Microsoft.Bcl.AsyncInterfaces/1.0.0": { + "type": "package", + "compile": { + "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} + } + }, "Microsoft.CodeAnalysis.Analyzers/1.1.0": { "type": "package" }, @@ -1771,6 +1780,17 @@ "lib/netstandard2.0/_._": {} } }, + "Microsoft.Extensions.ApiDescription.Server/3.0.0": { + "type": "package", + "build": { + "build/Microsoft.Extensions.ApiDescription.Server.props": {}, + "build/Microsoft.Extensions.ApiDescription.Server.targets": {} + }, + "buildMultiTargeting": { + "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props": {}, + "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets": {} + } + }, "Microsoft.Extensions.Caching.Abstractions/2.2.0": { "type": "package", "dependencies": { @@ -2686,6 +2706,15 @@ "lib/netstandard1.0/_._": {} } }, + "Microsoft.OpenApi/1.2.3": { + "type": "package", + "compile": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Microsoft.OpenApi.dll": {} + } + }, "Microsoft.Win32.Registry/4.5.0": { "type": "package", "dependencies": { @@ -3010,6 +3039,61 @@ } } }, + "Swashbuckle.AspNetCore/5.6.3": { + "type": "package", + "dependencies": { + "Microsoft.Extensions.ApiDescription.Server": "3.0.0", + "Swashbuckle.AspNetCore.Swagger": "5.6.3", + "Swashbuckle.AspNetCore.SwaggerGen": "5.6.3", + "Swashbuckle.AspNetCore.SwaggerUI": "5.6.3" + }, + "build": { + "build/Swashbuckle.AspNetCore.props": {} + } + }, + "Swashbuckle.AspNetCore.Swagger/5.6.3": { + "type": "package", + "dependencies": { + "Microsoft.AspNetCore.Routing": "2.1.0", + "Microsoft.OpenApi": "1.2.3" + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll": {} + } + }, + "Swashbuckle.AspNetCore.SwaggerGen/5.6.3": { + "type": "package", + "dependencies": { + "Microsoft.AspNetCore.Mvc.ApiExplorer": "2.1.0", + "Microsoft.AspNetCore.Mvc.DataAnnotations": "2.1.0", + "Swashbuckle.AspNetCore.Swagger": "5.6.3", + "System.Text.Json": "4.6.0" + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {} + } + }, + "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": { + "type": "package", + "dependencies": { + "Microsoft.AspNetCore.Routing": "2.1.0", + "Microsoft.AspNetCore.StaticFiles": "2.1.0", + "Microsoft.Extensions.FileProviders.Embedded": "2.1.0", + "System.Text.Json": "4.6.0" + }, + "compile": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} + }, + "runtime": { + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll": {} + } + }, "System.AppContext/4.3.0": { "type": "package", "dependencies": { @@ -3752,7 +3836,7 @@ "ref/netstandard1.5/System.Runtime.dll": {} } }, - "System.Runtime.CompilerServices.Unsafe/4.5.1": { + "System.Runtime.CompilerServices.Unsafe/4.6.0": { "type": "package", "compile": { "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} @@ -4229,7 +4313,7 @@ "ref/netstandard1.3/System.Text.Encoding.Extensions.dll": {} } }, - "System.Text.Encodings.Web/4.5.0": { + "System.Text.Encodings.Web/4.6.0": { "type": "package", "compile": { "lib/netstandard2.0/System.Text.Encodings.Web.dll": {} @@ -4238,6 +4322,20 @@ "lib/netstandard2.0/System.Text.Encodings.Web.dll": {} } }, + "System.Text.Json/4.6.0": { + "type": "package", + "dependencies": { + "Microsoft.Bcl.AsyncInterfaces": "1.0.0", + "System.Runtime.CompilerServices.Unsafe": "4.6.0", + "System.Text.Encodings.Web": "4.6.0" + }, + "compile": { + "lib/netstandard2.0/System.Text.Json.dll": {} + }, + "runtime": { + "lib/netstandard2.0/System.Text.Json.dll": {} + } + }, "System.Text.RegularExpressions/4.3.0": { "type": "package", "dependencies": { @@ -5776,6 +5874,30 @@ "microsoft.aspnetcore.webutilities.nuspec" ] }, + "Microsoft.Bcl.AsyncInterfaces/1.0.0": { + "sha512": "K63Y4hORbBcKLWH5wnKgzyn7TOfYzevIEwIedQHBIkmkEBA9SCqgvom+XTuE+fAFGvINGkhFItaZ2dvMGdT5iw==", + "type": "package", + "path": "microsoft.bcl.asyncinterfaces/1.0.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", + "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", + "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", + "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", + "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", + "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", + "microsoft.bcl.asyncinterfaces.1.0.0.nupkg.sha512", + "microsoft.bcl.asyncinterfaces.nuspec", + "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", + "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", + "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "Microsoft.CodeAnalysis.Analyzers/1.1.0": { "sha512": "HS3iRWZKcUw/8eZ/08GXKY2Bn7xNzQPzf8gRPHGSowX7u7XXu9i9YEaBeBNKUXWfI7qjvT2zXtLUvbN0hds8vg==", "type": "package", @@ -6038,6 +6160,33 @@ "tools/netcoreapp2.0/any/ef.runtimeconfig.json" ] }, + "Microsoft.Extensions.ApiDescription.Server/3.0.0": { + "sha512": "LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", + "type": "package", + "path": "microsoft.extensions.apidescription.server/3.0.0", + "hasTools": true, + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "build/Microsoft.Extensions.ApiDescription.Server.props", + "build/Microsoft.Extensions.ApiDescription.Server.targets", + "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.props", + "buildMultiTargeting/Microsoft.Extensions.ApiDescription.Server.targets", + "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512", + "microsoft.extensions.apidescription.server.nuspec", + "tools/Newtonsoft.Json.dll", + "tools/dotnet-getdocument.deps.json", + "tools/dotnet-getdocument.dll", + "tools/dotnet-getdocument.runtimeconfig.json", + "tools/net461-x86/GetDocument.Insider.exe", + "tools/net461-x86/GetDocument.Insider.exe.config", + "tools/net461/GetDocument.Insider.exe", + "tools/net461/GetDocument.Insider.exe.config", + "tools/netcoreapp2.1/GetDocument.Insider.deps.json", + "tools/netcoreapp2.1/GetDocument.Insider.dll", + "tools/netcoreapp2.1/GetDocument.Insider.runtimeconfig.json" + ] + }, "Microsoft.Extensions.Caching.Abstractions/2.2.0": { "sha512": "spsJkYo8gGJapaxTSQFN/wqA+ghpJMLwB4ZyTB+fSdpd7AmMFP/YSpIcGmczcw4KggpxLGhLk7lCkSIlgvHaqQ==", "type": "package", @@ -7203,6 +7352,23 @@ "version.txt" ] }, + "Microsoft.OpenApi/1.2.3": { + "sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", + "type": "package", + "path": "microsoft.openapi/1.2.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net46/Microsoft.OpenApi.dll", + "lib/net46/Microsoft.OpenApi.pdb", + "lib/net46/Microsoft.OpenApi.xml", + "lib/netstandard2.0/Microsoft.OpenApi.dll", + "lib/netstandard2.0/Microsoft.OpenApi.pdb", + "lib/netstandard2.0/Microsoft.OpenApi.xml", + "microsoft.openapi.1.2.3.nupkg.sha512", + "microsoft.openapi.nuspec" + ] + }, "Microsoft.Win32.Registry/4.5.0": { "sha512": "+FWlwd//+Tt56316p00hVePBCouXyEzT86Jb3+AuRotTND0IYn0OO3obs1gnQEs/txEnt+rF2JBGLItTG+Be6A==", "type": "package", @@ -7746,6 +7912,69 @@ "version.txt" ] }, + "Swashbuckle.AspNetCore/5.6.3": { + "sha512": "UkL9GU0mfaA+7RwYjEaBFvAzL8qNQhNqAeV5uaWUu/Z+fVgvK9FHkGCpTXBqSQeIHuZaIElzxnLDdIqGzuCnVg==", + "type": "package", + "path": "swashbuckle.aspnetcore/5.6.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "build/Swashbuckle.AspNetCore.props", + "swashbuckle.aspnetcore.5.6.3.nupkg.sha512", + "swashbuckle.aspnetcore.nuspec" + ] + }, + "Swashbuckle.AspNetCore.Swagger/5.6.3": { + "sha512": "rn/MmLscjg6WSnTZabojx5DQYle2GjPanSPbCU3Kw8Hy72KyQR3uy8R1Aew5vpNALjfUFm2M/vwUtqdOlzw+GA==", + "type": "package", + "path": "swashbuckle.aspnetcore.swagger/5.6.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml", + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll", + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb", + "lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml", + "swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512", + "swashbuckle.aspnetcore.swagger.nuspec" + ] + }, + "Swashbuckle.AspNetCore.SwaggerGen/5.6.3": { + "sha512": "CkhVeod/iLd3ikVTDOwG5sym8BE5xbqGJ15iF3cC7ZPg2kEwDQL4a88xjkzsvC9oOB2ax6B0rK0EgRK+eOBX+w==", + "type": "package", + "path": "swashbuckle.aspnetcore.swaggergen/5.6.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml", + "swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512", + "swashbuckle.aspnetcore.swaggergen.nuspec" + ] + }, + "Swashbuckle.AspNetCore.SwaggerUI/5.6.3": { + "sha512": "BPvcPxQRMsYZ3HnYmGKRWDwX4Wo29WHh14Q6B10BB8Yfbbcza+agOC2UrBFA1EuaZuOsFLbp6E2+mqVNF/Je8A==", + "type": "package", + "path": "swashbuckle.aspnetcore.swaggerui/5.6.3", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.pdb", + "lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.xml", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.dll", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.pdb", + "lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerUI.xml", + "swashbuckle.aspnetcore.swaggerui.5.6.3.nupkg.sha512", + "swashbuckle.aspnetcore.swaggerui.nuspec" + ] + }, "System.AppContext/4.3.0": { "sha512": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", "type": "package", @@ -10228,10 +10457,10 @@ "system.runtime.nuspec" ] }, - "System.Runtime.CompilerServices.Unsafe/4.5.1": { - "sha512": "Zh8t8oqolRaFa9vmOZfdQm/qKejdqz0J9kr7o2Fu0vPeoH3BL1EOXipKWwkWtLT1JPzjByrF19fGuFlNbmPpiw==", + "System.Runtime.CompilerServices.Unsafe/4.6.0": { + "sha512": "HxozeSlipUK7dAroTYwIcGwKDeOVpQnJlpVaOkBz7CM4TsE5b/tKlQBZecTjh6FzcSbxndYaxxpsBMz+wMJeyw==", "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.5.1", + "path": "system.runtime.compilerservices.unsafe/4.6.0", "files": [ ".nupkg.metadata", ".signature.p7s", @@ -10247,7 +10476,7 @@ "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.5.1.nupkg.sha512", + "system.runtime.compilerservices.unsafe.4.6.0.nupkg.sha512", "system.runtime.compilerservices.unsafe.nuspec", "useSharedDesignerContext.txt", "version.txt" @@ -11405,25 +11634,48 @@ "system.text.encoding.extensions.nuspec" ] }, - "System.Text.Encodings.Web/4.5.0": { - "sha512": "Xg4G4Indi4dqP1iuAiMSwpiWS54ZghzR644OtsRCm/m/lBMG8dUBhLVN7hLm8NNrNTR+iGbshCPTwrvxZPlm4g==", + "System.Text.Encodings.Web/4.6.0": { + "sha512": "BXgFO8Yi7ao7hVA/nklD0Hre1Bbce048ZqryGZVFifGNPuh+2jqF1i/jLJLMfFGZIzUOw+nCIeH24SQhghDSPw==", "type": "package", - "path": "system.text.encodings.web/4.5.0", + "path": "system.text.encodings.web/4.6.0", "files": [ ".nupkg.metadata", ".signature.p7s", "LICENSE.TXT", "THIRD-PARTY-NOTICES.TXT", + "lib/netcoreapp3.0/System.Text.Encodings.Web.dll", + "lib/netcoreapp3.0/System.Text.Encodings.Web.xml", "lib/netstandard1.0/System.Text.Encodings.Web.dll", "lib/netstandard1.0/System.Text.Encodings.Web.xml", "lib/netstandard2.0/System.Text.Encodings.Web.dll", "lib/netstandard2.0/System.Text.Encodings.Web.xml", - "system.text.encodings.web.4.5.0.nupkg.sha512", + "system.text.encodings.web.4.6.0.nupkg.sha512", "system.text.encodings.web.nuspec", "useSharedDesignerContext.txt", "version.txt" ] }, + "System.Text.Json/4.6.0": { + "sha512": "4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==", + "type": "package", + "path": "system.text.json/4.6.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.TXT", + "THIRD-PARTY-NOTICES.TXT", + "lib/net461/System.Text.Json.dll", + "lib/net461/System.Text.Json.xml", + "lib/netcoreapp3.0/System.Text.Json.dll", + "lib/netcoreapp3.0/System.Text.Json.xml", + "lib/netstandard2.0/System.Text.Json.dll", + "lib/netstandard2.0/System.Text.Json.xml", + "system.text.json.4.6.0.nupkg.sha512", + "system.text.json.nuspec", + "useSharedDesignerContext.txt", + "version.txt" + ] + }, "System.Text.RegularExpressions/4.3.0": { "sha512": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", "type": "package", @@ -12146,7 +12398,8 @@ "Microsoft.AspNetCore.Razor.Design >= 2.2.0", "Microsoft.EntityFrameworkCore >= 2.2.0", "Microsoft.NETCore.App >= 2.2.0", - "Pomelo.EntityFrameworkCore.MySql >= 2.2.0" + "Pomelo.EntityFrameworkCore.MySql >= 2.2.0", + "Swashbuckle.AspNetCore >= 5.6.3" ] }, "packageFolders": { @@ -12212,6 +12465,10 @@ "Pomelo.EntityFrameworkCore.MySql": { "target": "Package", "version": "[2.2.0, )" + }, + "Swashbuckle.AspNetCore": { + "target": "Package", + "version": "[5.6.3, )" } }, "imports": [