Creada api y primer verbo buscar ficheros faltantes

This commit is contained in:
2025-12-15 10:19:53 +01:00
parent 2fbbc68dbd
commit b9c825b4bc
6 changed files with 95 additions and 1 deletions

View File

@@ -2,11 +2,18 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddControllers()
.AddJsonOptions(options =>
{
options.JsonSerializerOptions.ReferenceHandler =
System.Text.Json.Serialization.ReferenceHandler.IgnoreCycles;
});
var app = builder.Build();
// Configure the HTTP request pipeline.