Skip to content

Commit 1bbba29

Browse files
committed
Management: Remove obsolete .WithOpenApi()
1 parent 3c542f3 commit 1bbba29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Management/src/ActuatorApi/WeatherEndpoints.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Globalization;
1+
using System.Globalization;
22
using Microsoft.AspNetCore.Mvc;
33
using Microsoft.EntityFrameworkCore;
44
using MySqlConnector;
@@ -53,11 +53,11 @@ public static void Map(WebApplication app)
5353
await Task.Delay(TimeSpan.FromMilliseconds(Random.Shared.Next(10, 3000)), timeProvider, cancellationToken);
5454

5555
return forecasts;
56-
}).WithName("GetWeatherForecast").WithOpenApi().AllowAnonymous();
56+
}).WithName("GetWeatherForecast").AllowAnonymous();
5757

5858
app.MapGet("/AllForecastData",
5959
async (WeatherDbContext dbContext, CancellationToken cancellationToken = default) =>
60-
await GetForecastsAsync(dbContext, null, -1, cancellationToken)).WithName("GetAllForecastData").WithOpenApi().AllowAnonymous();
60+
await GetForecastsAsync(dbContext, null, -1, cancellationToken)).WithName("GetAllForecastData").AllowAnonymous();
6161
}
6262

6363
private static async Task<List<WeatherForecast>> GetForecastsAsync(WeatherDbContext dbContext, DateOnly? startDate, int days,

0 commit comments

Comments
 (0)