This commit is contained in:
Natlinux81
2025-04-21 16:55:15 +02:00
commit d5f6034a28
39 changed files with 15372 additions and 0 deletions
@@ -0,0 +1,19 @@
using Microsoft.OpenApi.Models;
namespace API.Extension;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddWebServices(this IServiceCollection services)
{
services.AddSwaggerGen(options =>
{
// update the name and version of the document
options.SwaggerDoc("v1", new OpenApiInfo { Title = "DotNetAngular API", Version = "v1" });
// update names of the api
options.SwaggerGeneratorOptions.DocumentFilters.Add(new LowerCaseDocumentFilter());
});
return services;
}
}