Skip to content

Commit 299c6db

Browse files
authored
Merge pull request #36935 from dotnet/main
Merge to Live
2 parents b6310c8 + ddce1bc commit 299c6db

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi/BookStoreApi.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
1111
<PackageReference Include="MongoDB.Driver" Version="3.3.0" />
1212
<PackageReference Include="NSwag.AspNetCore" Version="14.3.0" />
13-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.0" />
1413
</ItemGroup>
1514

1615
</Project>

aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
if (app.Environment.IsDevelopment())
3232
{
3333
app.MapOpenApi();
34-
app.UseSwaggerUI(options =>
34+
app.UseSwaggerUi(options =>
3535
{
36-
options.SwaggerEndpoint("/openapi/v1.json", "v1");
36+
options.DocumentPath = "/openapi/v1.json";
3737
});
3838
}
3939
// </snippet_UseSwagger>

0 commit comments

Comments
 (0)