From 8597d5d0baf1f786de21bcc52c5573f323bc00f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ben=C3=AD=C4=8Dek?= Date: Thu, 30 Nov 2023 18:10:15 +0100 Subject: [PATCH] Addend description and contact of api creator --- Program.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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();