Skip to content

Commit 45eb134

Browse files
committed
updated swagger doc
1 parent 04d2562 commit 45eb134

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/Infrastructure/Extensions/SwaggerExtensions.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ internal static IServiceCollection AddSwaggerDocumentation(this IServiceCollecti
4040
{
4141
services.AddSwaggerGen(options =>
4242
{
43+
options.SwaggerDoc("v1", new OpenApiInfo
44+
{
45+
Title = ".NET 6.0 WebAPI - Clean Architecture",
46+
Version = "v1",
47+
Description = "Clean Architecture Template for .NET 6.0 WebApi built with Multitenancy Support.",
48+
Contact = new OpenApiContact
49+
{
50+
Name = "Mukesh Murugan",
51+
Email = "hello@codewithmukesh.com",
52+
Url = new Uri("https://linkedin.com/in/iammukeshm"),
53+
},
54+
License = new OpenApiLicense
55+
{
56+
Name = "MIT License",
57+
Url = new Uri("https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/main/LICENSE"),
58+
}
59+
});
4360
string baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
4461
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
4562
{

0 commit comments

Comments
 (0)