We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6310c8 + ddce1bc commit 299c6dbCopy full SHA for 299c6db
2 files changed
aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi/BookStoreApi.csproj
@@ -10,7 +10,6 @@
10
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
11
<PackageReference Include="MongoDB.Driver" Version="3.3.0" />
12
<PackageReference Include="NSwag.AspNetCore" Version="14.3.0" />
13
- <PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.0" />
14
</ItemGroup>
15
16
</Project>
aspnetcore/tutorials/first-mongo-app/samples/9.x/BookStoreApi/Program.cs
@@ -31,9 +31,9 @@
31
if (app.Environment.IsDevelopment())
32
{
33
app.MapOpenApi();
34
- app.UseSwaggerUI(options =>
+ app.UseSwaggerUi(options =>
35
36
- options.SwaggerEndpoint("/openapi/v1.json", "v1");
+ options.DocumentPath = "/openapi/v1.json";
37
});
38
}
39
// </snippet_UseSwagger>
0 commit comments