Add instruction to install static files package (#8171)
Fixes https://github.com/aspnet/Docs/issues/8099pull/8172/head^2
parent
b94e0e6fe7
commit
8e7a46ff2b
|
@ -4,7 +4,7 @@ author: zuckerthoben
|
|||
description: Learn how to add Swashbuckle to your ASP.NET Core web API project to integrate the Swagger UI.
|
||||
ms.author: scaddie
|
||||
ms.custom: mvc
|
||||
ms.date: 07/27/2018
|
||||
ms.date: 08/20/2018
|
||||
uid: tutorials/get-started-with-swashbuckle
|
||||
---
|
||||
# Get started with Swashbuckle and ASP.NET Core
|
||||
|
@ -91,6 +91,8 @@ In the `Startup.Configure` method, enable the middleware for serving the generat
|
|||
|
||||
[!code-csharp[](../tutorials/web-api-help-pages-using-swagger/samples/2.0/TodoApi.Swashbuckle/Startup2.cs?name=snippet_Configure&highlight=4,8-11)]
|
||||
|
||||
The preceding `UseSwaggerUI` method call enables the [static files 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:<port>/swagger/v1/swagger.json`. The generated document describing the endpoints appears as shown in [Swagger specification (swagger.json)](xref:tutorials/web-api-help-pages-using-swagger#swagger-specification-swaggerjson).
|
||||
|
||||
The Swagger UI can be found at `http://localhost:<port>/swagger`. Explore the API via Swagger UI and incorporate it in other programs.
|
||||
|
|
Loading…
Reference in New Issue