From 8cb78cd208167669917d7d4e872e2702c0c0f661 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Mon, 22 Sep 2025 22:51:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SfeduSchedule.Plugin.Abstractions.csproj | 4 ++++ SfeduSchedule/Controllers/SfeduController.cs | 2 +- SfeduSchedule/Program.cs | 10 +++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/SfeduSchedule.Plugin.Abstractions/SfeduSchedule.Plugin.Abstractions.csproj b/SfeduSchedule.Plugin.Abstractions/SfeduSchedule.Plugin.Abstractions.csproj index 0ad852d..5091114 100644 --- a/SfeduSchedule.Plugin.Abstractions/SfeduSchedule.Plugin.Abstractions.csproj +++ b/SfeduSchedule.Plugin.Abstractions/SfeduSchedule.Plugin.Abstractions.csproj @@ -7,4 +7,8 @@ Library + + true + $(NoWarn);CS1591;CS1573 + diff --git a/SfeduSchedule/Controllers/SfeduController.cs b/SfeduSchedule/Controllers/SfeduController.cs index e47c62c..c801765 100644 --- a/SfeduSchedule/Controllers/SfeduController.cs +++ b/SfeduSchedule/Controllers/SfeduController.cs @@ -16,7 +16,7 @@ namespace SfeduSchedule.Controllers /// /// Получить GUID пользователя через авторизацию Microsoft. /// - /// Необязательный параметр. Если указан, произойдет редирект на указанный URI после получения GUID. (/?guid=XXX) + /// Необязательный параметр. Если указан, произойдет редирект на указанный URI после получения GUID. ([url]/?guid=XXX) /// Строка GUID пользователя или редирект на указанный URI. /// Возвращает GUID пользователя /// Редирект на указанный URI diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index 955691c..b1b13f6 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -92,9 +92,13 @@ if (string.IsNullOrEmpty(preinstalledJwtToken)) builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(options => { - var xmlFile = $"{System.Reflection.Assembly.GetExecutingAssembly().GetName().Name}.xml"; - var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); - options.IncludeXmlComments(xmlPath); + var mainXmlFile = $"{System.Reflection.Assembly.GetExecutingAssembly().GetName().Name}.xml"; + var mainXmlPath = Path.Combine(AppContext.BaseDirectory, mainXmlFile); + options.IncludeXmlComments(mainXmlPath); + + var pluginXmlFile = "SfeduSchedule.Plugin.Abstractions.xml"; + var pluginXmlPath = Path.Combine(AppContext.BaseDirectory, pluginXmlFile); + options.IncludeXmlComments(pluginXmlPath); // Добавляем только схему авторизации по ApiKey options.AddSecurityDefinition(ApiKeyAuthenticationDefaults.Scheme, new Microsoft.OpenApi.Models.OpenApiSecurityScheme