Skip to content

Commit 5d29651

Browse files
authored
Clarify OpenAPI and Swagger UI port details
1 parent 08f5b50 commit 5d29651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/tutorials/first-web-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The project template:
111111
* Adds the `Microsoft.AspNetCore.OpenApi` package for OpenAPI support as a reference in the project file **TodoApi.csproj**.
112112
* Adds OpenAPI services in **Program.cs** to automatically generate OpenAPI JSON documentation for the `WeatherForecast` API.
113113

114-
You can access the OpenAPI JSON documentation for the `WeatherForecast` API while the project is running by navigating your browser to `https://localhost:<port>/openapi/v1.json`, where `<port>` is a randomly chosen port number set during project creation.
114+
You can access the OpenAPI JSON documentation for the `WeatherForecast` API while the project is running by navigating your browser to `https://localhost:<port>/openapi/v1.json`, where `<port>` is the randomly chosen port number set in **Properties/launchSettings.json** as the port for HTTPS, and displayed in the "Now listening" output messages when the app is run.
115115

116116
#### Configure the Swagger UI endpoint for the OpenAPI documentation
117117

@@ -167,7 +167,7 @@ After testing the web app in the following instruction, press <kbd>Ctrl</kbd>+<k
167167

168168
#### View the Swagger UI
169169

170-
* Navigate a browser to `https://localhost:<port>/swagger/index.html`, where `<port>` is the randomly chosen port number set in **Properties/launchSettings.json** as the port for HTTPS and displayed in the "Now listening" messages.
170+
* Navigate a browser to `https://localhost:<port>/swagger/index.html`, where `<port>` is the randomly chosen port number set in **Properties/launchSettings.json** as the port for HTTPS, and displayed in the "Now listening" output messages when the app is run.
171171

172172
The Swagger page `/swagger/index.html` is displayed.
173173

0 commit comments

Comments
 (0)