|
|
|
@ -2,11 +2,11 @@ using Masuit.Tools;
|
|
|
|
|
using Masuit.Tools.Reflection;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.OpenApi.Models;
|
|
|
|
|
using PVDEMCS;
|
|
|
|
|
using PVDEMCS.Common.DI;
|
|
|
|
|
using PVDEMCS.Common.Log;
|
|
|
|
|
using PVDEMCS.Devices;
|
|
|
|
|
using PVDEMCS.Services;
|
|
|
|
|
using CVDEMCS;
|
|
|
|
|
using CVDEMCS.Common.DI;
|
|
|
|
|
using CVDEMCS.Common.Log;
|
|
|
|
|
using CVDEMCS.Devices;
|
|
|
|
|
using CVDEMCS.Services;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
@ -19,7 +19,7 @@ builder.Services.AddControllers();
|
|
|
|
|
builder.Services.AddEndpointsApiExplorer();
|
|
|
|
|
builder.Services.AddSwaggerGen(options =>
|
|
|
|
|
{
|
|
|
|
|
//options.SwaggerDoc("v1", new OpenApiInfo { Title = "PVDEMCS Api", Version = "v1" });
|
|
|
|
|
//options.SwaggerDoc("v1", new OpenApiInfo { Title = "CVDEMCS Api", Version = "v1" });
|
|
|
|
|
var xmlPathApp = Path.Combine(AppContext.BaseDirectory, $"{Assembly.GetExecutingAssembly().GetName().Name}.xml");
|
|
|
|
|
options.IncludeXmlComments(xmlPathApp, true);
|
|
|
|
|
});
|
|
|
|
|