Skip to content

Commit 22ebe4b

Browse files
committed
updates
1 parent e8ff61a commit 22ebe4b

File tree

3 files changed

+31
-25
lines changed

3 files changed

+31
-25
lines changed

Instructions/Labs/02-implement-http-operations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ This exercise has two components:
2121
* An app that sends HTTP requests to an API. The web app runs on **http://localhost:5010**.
2222
* An API that responds to HTTP requests. The API runs on **http://localhost:5050**.
2323

24-
![Decorative](media/02-architecture.png)
25-
2624
## Before you start
2725

2826
To complete the exercise you need to have the following installed on your system:
@@ -39,11 +37,13 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
3937

4038
### Download and run the API code
4139

40+
The API code is run in a **Windows Terminal** or **Command Prompt**. It runs in the background while you add code and test the Blazor application.
41+
4242
1. Right-click the following link and select the **Save link as** option.
4343

4444
* [FruitAPI project code](https://raw.githubusercontent.com/MicrosoftLearning/mslearn-aspnet-api/main/Allfiles/Downloads/FruitAPI.zip) code
4545

46-
1. Launch **File Explorer** and navigate to the location the file was saved.
46+
1. Launch **File Explorer** and navigate to the location where you saved the file.
4747

4848
1. Unzip the file into it's own folder.
4949

@@ -79,7 +79,7 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
7979
8080
* [Fruit web app code-behind project code](https://raw.githubusercontent.com/MicrosoftLearning/mslearn-aspnet-api/main/Allfiles/Downloads/FruitWebApp-codebehind.zip)
8181
82-
1. Launch **File Explorer** and navigate to the location the file was saved.
82+
1. Launch **File Explorer** and navigate to the location where you saved the file.
8383
8484
1. Unzip the file into it's own folder.
8585

Instructions/Labs/03-render-api-results-razor-pages.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Tasks performed in this exercise:
1414
* Integrate C# code with Razor syntax
1515
* Run and test the app
1616

17+
### Exercise scenario
18+
19+
This exercise has two components:
20+
21+
* An app that sends HTTP requests to an API. The web app runs on **http://localhost:5010**.
22+
* An API that responds to HTTP requests. The API runs on **http://localhost:5050**.
23+
1724
## Before you start
1825

1926
To complete the exercise you need to have the following installed on your system:
@@ -24,26 +31,19 @@ To complete the exercise you need to have the following installed on your system
2431

2532
This exercise should take approximately **30** minutes to complete.
2633

27-
## Exercise scenario
28-
29-
This exercise has two components:
30-
31-
* A web app that sends HTTP requests to an API. The app runs on **http://localhost:5010**
32-
* An API that responds to HTTP requests. The API runs on **http://localhost:5050**
33-
34-
![Decorative](media/02-architecture.png)
35-
3634
## Download the code
3735

3836
In this section you download the code for the Fruit web app and the Fruit API. You also run the Fruit API locally so it is available for the web app.
3937

40-
### Task 1: Download and run the API code
38+
### Download and run the API code
39+
40+
The API code is run in a **Windows Terminal** or **Command Prompt**. It runs in the background while you add code and test the Blazor application.
4141

4242
1. Right-click the following link and select the **Save link as** option.
4343

4444
* [FruitAPI project code](https://raw.githubusercontent.com/MicrosoftLearning/mslearn-aspnet-api/main/Allfiles/Downloads/FruitAPI.zip) code
4545

46-
1. Launch **File Explorer** and navigate to the location the file was saved.
46+
1. Launch **File Explorer** and navigate to the location where you saved the file.
4747

4848
1. Unzip the file into it's own folder.
4949

@@ -73,13 +73,13 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
7373
7474
>**Note:** Leave the Fruit API running throughout the rest of the exercise.
7575
76-
### Task 2: Download and open web app project
76+
### Download and open web app project
7777
7878
1. Right-click the following link and select the **Save link as** option.
7979
8080
* [Fruit web app render project code](https://raw.githubusercontent.com/MicrosoftLearning/mslearn-aspnet-api/main/Allfiles/Downloads/FruitWebApp-render.zip)
8181
82-
1. Launch **File Explorer** and navigate to the location the file was saved.
82+
1. Launch **File Explorer** and navigate to the location where you saved the file.
8383
8484
1. Unzip the file into it's own folder.
8585
@@ -97,7 +97,7 @@ In this section you download the code for the Fruit web app and the Fruit API. Y
9797
9898
The Fruit web app displays the API sample data on the home page. You need to add code to iterate through the sample data returned by the HTTP **GET** operation performed in the code-behind file.
9999
100-
### Task 1: Add code to render data in a table
100+
### Add code to render data in a table
101101
102102
1. Select the *Home.razor* file in the **Explorer** pane to open it for editing.
103103
@@ -146,6 +146,8 @@ The Fruit web app displays the API sample data on the home page. You need to add
146146
147147
1. Save the changes to *Home.razor*, and review the comments in the code.
148148
149+
### Test the home page
150+
149151
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
150152
151153
1. Verify the Index page displays the sample data from the API.
@@ -158,11 +160,11 @@ The Fruit web app displays the API sample data on the home page. You need to add
158160
159161
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
160162
161-
## Implement code to handle the **Add to list** functionality
163+
## Implement code to handle the *Add to list* functionality
162164
163165
The add, edit, and delete operations are each handled on a separate *.razor* page in the project. In this section you add code to create a form in the *Add.razor* file to enable adding data to the list.
164166
165-
### Task 1: Add code to create the add data form
167+
### Add code to create the add data form
166168
167169
1. Select the *Add.razor* file in the **Explorer** pane to open it for editing.
168170
@@ -199,6 +201,8 @@ The add, edit, and delete operations are each handled on a separate *.razor* pag
199201
200202
1. Save the changes to *Add.razor*, and review the comments in the code.
201203
204+
### Test the *Add* functionality
205+
202206
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
203207
204208
1. Select **Add to list** on the page.
@@ -209,11 +213,11 @@ The add, edit, and delete operations are each handled on a separate *.razor* pag
209213
210214
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
211215
212-
## Implement code to handle the **Edit** functionality
216+
## Implement code to handle the *Edit* functionality
213217
214218
In this section you add code to create a form in the *Edit.cshtml* file to enable editing data to the list.
215219
216-
### Task 1: Add code for the edit form
220+
### Add code for the edit form
217221
218222
1. Select the *Edit.razor* file in the **Explorer** pane to open it for editing.
219223
@@ -250,6 +254,8 @@ In this section you add code to create a form in the *Edit.cshtml* file to enabl
250254
251255
1. Save the changes to *Edit.razor*, and review the comments in the code.
252256
257+
### Test the *Edit* functionality
258+
253259
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
254260
255261
1. Choose an item in the list to change and select **Edit** in that row.
@@ -260,11 +266,11 @@ In this section you add code to create a form in the *Edit.cshtml* file to enabl
260266
261267
1. To continue with the exercise close the browser, or browser tab, and in Visual Studio Code select **Run \| Stop debugging** or **Shift + F5**.
262268
263-
## Implement code to handle the **Delete** functionality
269+
## Implement code to handle the *Delete* functionality
264270
265271
In this section you add code to create a form in the *Delete.cshtml* file to enable deleting data from the list.
266272
267-
### Task 1: Add code for the delete form
273+
### Add code for the delete form
268274
269275
1. Select the *Delete.razor* file in the **Explorer** pane to open it for editing.
270276
@@ -301,7 +307,7 @@ In this section you add code to create a form in the *Delete.cshtml* file to ena
301307
302308
1. Save the changes to *Delete.razor*, and review the comments in the code.
303309
304-
## Run and test the app
310+
### Test the *Delete* functionality
305311
306312
1. In the Visual Studio Code top menu select **Run \| Start debugging**, or select **F5**. After the project is finished building a browser window should launch with the web app running
307313
-9.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)