This commit is contained in:
Paul Schneider 2022-12-17 01:29:22 +00:00
commit 282b0277ae
10 changed files with 51 additions and 34 deletions

View file

@ -19,6 +19,7 @@ using isnd.Helpers;
using Microsoft.IdentityModel.Tokens;
using System;
using Microsoft.OpenApi.Models;
using System.IO;
namespace isnd
{
@ -96,7 +97,8 @@ namespace isnd
};
});
services.AddSwaggerGen(options =>
options.SwaggerDoc("v1", new OpenApiInfo
{
options.SwaggerDoc("v1", new OpenApiInfo
{
Version = "v1",
Title = "ToDo API",
@ -112,7 +114,10 @@ namespace isnd
Name = "Example License",
Url = new Uri("https://isn.pschneider.fr/license")
}
}));
});
var xmlFilename = $"{typeof(Startup).Assembly.GetName().Name}.xml";
options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, xmlFilename));
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.