diff --git a/OSLC4Net_SDK/Directory.Packages.props b/OSLC4Net_SDK/Directory.Packages.props
index 08f336e0..3c08b2c4 100644
--- a/OSLC4Net_SDK/Directory.Packages.props
+++ b/OSLC4Net_SDK/Directory.Packages.props
@@ -47,7 +47,7 @@
-
+
diff --git a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/OSLC4NetExamples.Server.NetCoreApi.csproj b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/OSLC4NetExamples.Server.NetCoreApi.csproj
index 1a3751fd..cf078ff1 100644
--- a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/OSLC4NetExamples.Server.NetCoreApi.csproj
+++ b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/OSLC4NetExamples.Server.NetCoreApi.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Program.cs b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Program.cs
index d920c755..93017fa5 100644
--- a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Program.cs
+++ b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Program.cs
@@ -20,9 +20,8 @@
}));
});
-// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
-builder.Services.AddEndpointsApiExplorer();
-builder.Services.AddSwaggerGen();
+// Learn more about configuring OpenAPI at https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/overview?view=aspnetcore-10.0
+builder.Services.AddOpenApi();
builder.WebHost.UseKestrel();
builder.WebHost.ConfigureKestrel(options =>
{
@@ -35,8 +34,7 @@
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
- // app.UseSwagger();
- // app.UseSwaggerUI();
+ app.MapOpenApi();
}
app.UseHttpsRedirection();
diff --git a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Properties/launchSettings.json b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Properties/launchSettings.json
index 3a26cba6..9e905ebc 100644
--- a/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Properties/launchSettings.json
+++ b/OSLC4Net_SDK/Examples/OSLC4NetExamples.Server.NetCoreApi/Properties/launchSettings.json
@@ -3,7 +3,7 @@
"https": {
"commandName": "Project",
"launchBrowser": true,
- "launchUrl": "swagger",
+ "launchUrl": "openapi/v1.json",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
@@ -13,7 +13,7 @@
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
- "launchUrl": "swagger",
+ "launchUrl": "openapi/v1.json",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
@@ -21,7 +21,7 @@
"Container (Dockerfile)": {
"commandName": "Docker",
"launchBrowser": true,
- "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
+ "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/openapi/v1.json",
"environmentVariables": {
"ASPNETCORE_HTTPS_PORTS": "8081",
"ASPNETCORE_HTTP_PORTS": "8080"