diff --git a/Program.cs b/Program.cs index bd7eb0f..38db06a 100644 --- a/Program.cs +++ b/Program.cs @@ -1,4 +1,5 @@ using API_SequentMicrosystems.Services; +using Microsoft.OpenApi.Models; using System.Reflection; using System.Text.Json; using System.Text.Json.Serialization; @@ -25,6 +26,18 @@ namespace API_SequentMicrosystems var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); c.IncludeXmlComments(xmlPath); + + c.SwaggerDoc("v1", new OpenApiInfo + { + Version = "v1", + Title = "SM_API", + Description = "API of Measure and Control Device", + Contact = new OpenApiContact + { + Name = "Jan Beníček", + Email = "jan00@benicek.xyz" + }, + }); }); var app = builder.Build();