diff --git a/src/Endpoints/TesterEndpoints.cs b/src/Endpoints/TesterEndpoints.cs index 6412110..b44a97c 100644 --- a/src/Endpoints/TesterEndpoints.cs +++ b/src/Endpoints/TesterEndpoints.cs @@ -12,8 +12,7 @@ public static void MapTesterEndpoints(this WebApplication app) { var testerGroup = app .MapGroup("/api/testers") - .WithTags("Tester") - .WithOpenApi(); + .WithTags("Testers"); testerGroup.MapPost("/", async ( [FromBody]CreateTesterRequest request, @@ -52,7 +51,7 @@ public static void MapTesterEndpoints(this WebApplication app) return response.ToHttpResult(); }) .Produces() - .WithMetadata(new AllowAnonymousAttribute()); + .AllowAnonymous(); testerGroup.MapGet("/", async ( [AsParameters]GetTestersRequest request, @@ -71,7 +70,7 @@ public static void MapTesterEndpoints(this WebApplication app) return response.ToHttpResult(); }) .Produces>() - .WithMetadata(new AllowAnonymousAttribute()); + .AllowAnonymous(); testerGroup.MapGet("/access-history", async ( [AsParameters]GetAllTestersAccessHistoryRequest request,