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