From c286723ab575cc4b8f080d1394f2846903f05ca5 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Sat, 27 Apr 2024 19:35:05 -1000 Subject: [PATCH] Update getting-started-with-swashbuckle.md Contributes to [this internal issue](https://github.com/dotnet/aspnetcore-internal/issues/4522#issuecomment-2078104865) and is required to be obvious in query results. --- aspnetcore/tutorials/getting-started-with-swashbuckle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/getting-started-with-swashbuckle.md b/aspnetcore/tutorials/getting-started-with-swashbuckle.md index 282f79667b..ee710dbafd 100644 --- a/aspnetcore/tutorials/getting-started-with-swashbuckle.md +++ b/aspnetcore/tutorials/getting-started-with-swashbuckle.md @@ -344,7 +344,7 @@ In the `Startup.Configure` method, enable the middleware for serving the generat > [!NOTE] > Swashbuckle relies on MVC's to discover the routes and endpoints. If the project calls , routes and endpoints are discovered automatically. When calling , the method must be explicitly called. For more information, see [Swashbuckle, ApiExplorer, and Routing](https://github.com/domaindrivendev/Swashbuckle.AspNetCore#swashbuckle-apiexplorer-and-routing). -The preceding `UseSwaggerUI` method call enables an embedded version of the Swagger UI tool. This depends on +In development, the preceding `UseSwaggerUI` method call enables an embedded version of the Swagger UI tool. This depends on the [Static File Middleware](xref:fundamentals/static-files). If targeting .NET Framework or .NET Core 1.x, add the [Microsoft.AspNetCore.StaticFiles](https://www.nuget.org/packages/Microsoft.AspNetCore.StaticFiles/) NuGet package to the project. Launch the app, and navigate to `http://localhost:/swagger/v1/swagger.json`. The generated document describing the endpoints appears as shown in [OpenAPI specification (openapi.json)](xref:tutorials/web-api-help-pages-using-swagger#openapi-specification-openapijson).