Web API update for Mac VS 2019 screenshots and instruction (#13213)
* Updated to v3 preview 4 for core + framework comparison * update to v3 preview 4 for core + framework compare * Update first-web-API images and doc for VS19 Win only * patched first-web-api.md fix call out version asp.net core * Mac VS 2019 screenshots updated and related text chagnes * Update aspnetcore/tutorials/first-web-api.md Co-Authored-By: Tom Dykstra <tdykstra@microsoft.com>pull/13238/head
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 722 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 306 KiB |
|
@ -94,7 +94,7 @@ The following diagram shows the design of the app.
|
|||
|
||||
![macOS New solution](first-web-api-mac/_static/sln.png)
|
||||
|
||||
* Select **.NET Core App** > **ASP.NET Core Web API** > **Next**.
|
||||
* Select **.NET Core** > **App** > **API** > **Next**.
|
||||
|
||||
![macOS New project dialog](first-web-api-mac/_static/1.png)
|
||||
|
||||
|
@ -122,7 +122,7 @@ Press Ctrl+F5 to run the app. In a browser, go to following URL: [https://localh
|
|||
|
||||
# [Visual Studio for Mac](#tab/visual-studio-mac)
|
||||
|
||||
Select **Run** > **Start With Debugging** to launch the app. Visual Studio for Mac launches a browser and navigates to `https://localhost:<port>`, where `<port>` is a randomly chosen port number. An HTTP 404 (Not Found) error is returned. Append `/api/values` to the URL (change the URL to `https://localhost:<port>/api/values`).
|
||||
Select **Run** > **Start Debugging** to launch the app. Visual Studio for Mac launches a browser and navigates to `https://localhost:<port>`, where `<port>` is a randomly chosen port number. An HTTP 404 (Not Found) error is returned. Append `/api/values` to the URL (change the URL to `https://localhost:<port>/api/values`).
|
||||
|
||||
---
|
||||
|
||||
|
@ -241,6 +241,8 @@ These methods implement two GET endpoints:
|
|||
* `GET /api/todo`
|
||||
* `GET /api/todo/{id}`
|
||||
|
||||
Stop the app if it's still running. Then run it again to include the latest changes.
|
||||
|
||||
Test the app by calling the two endpoints from a browser. For example:
|
||||
|
||||
* `https://localhost:<port>/api/todo`
|
||||
|
|