settings
This commit is contained in:
parent
18b67bd725
commit
282b0277ae
10 changed files with 51 additions and 34 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue