Made filepath more specific for index.html (#13773)

There are two index.html's in the project, so the right one one is now specified. Also changed http to https.
pull/13810/head
LouisT123 2019-08-13 12:39:09 -07:00 committed by Rick Anderson
parent 863bfb8f9b
commit 20da76c509
1 changed files with 2 additions and 2 deletions

View File

@ -420,11 +420,11 @@ Create a *custom.css* file, in *wwwroot/swagger/ui*, with the following CSS to c
[!code-css[](../tutorials/web-api-help-pages-using-swagger/samples/2.0/TodoApi.Swashbuckle/wwwroot/swagger/ui/custom.css)]
Reference *custom.css* in the *index.html* file, after any other CSS files:
Reference *custom.css* in the *index.html* file inside ui folder, after any other CSS files:
[!code-html[](../tutorials/web-api-help-pages-using-swagger/samples/2.0/TodoApi.Swashbuckle/wwwroot/swagger/ui/index.html?name=snippet_SwaggerUiCss&highlight=3)]
Browse to the *index.html* page at `http://localhost:<port>/swagger/ui/index.html`. Enter `http://localhost:<port>/swagger/v1/swagger.json` in the header's textbox, and click the **Explore** button. The resulting page looks as follows:
Browse to the *index.html* page at `http://localhost:<port>/swagger/ui/index.html`. Enter `https://localhost:<port>/swagger/v1/swagger.json` in the header's textbox, and click the **Explore** button. The resulting page looks as follows:
![Swagger UI with custom header title](web-api-help-pages-using-swagger/_static/custom-header.png)