|
1 | 1 | --- |
2 | | -title: "Tutorial: Create a web API with ASP.NET Core" |
| 2 | +title: "Tutorial: Create a controller-based web API with ASP.NET Core" |
3 | 3 | author: wadepickett |
4 | | -description: Learn how to build a web API with ASP.NET Core. |
| 4 | +description: Learn how to build a controller-based web API with ASP.NET Core. |
5 | 5 | ms.author: wpickett |
6 | 6 | ms.custom: mvc, engagement-fy24 |
7 | 7 | ms.date: 02/13/2025 |
8 | 8 | uid: tutorials/first-web-api |
9 | 9 | --- |
10 | 10 |
|
11 | | -# Tutorial: Create a web API with ASP.NET Core |
| 11 | +# Tutorial: Create a controller-based web API with ASP.NET Core |
12 | 12 |
|
13 | 13 | [!INCLUDE[](~/includes/not-latest-version.md)] |
14 | 14 |
|
@@ -57,23 +57,23 @@ The following diagram shows the design of the app. |
57 | 57 | * In the **Additional information** dialog: |
58 | 58 | * Confirm the **Framework** is **.NET 9.0 (Standard Term Support)**. |
59 | 59 | * Confirm the checkbox for **Enable OpenAPI support** is checked. |
| 60 | + * Confirm the checkbox for **Do not use top-level statements** is **not** checked. |
60 | 61 | * Confirm the checkbox for **Use controllers** is checked. |
61 | 62 | * Select **Create**. |
62 | 63 |
|
63 | 64 | ## Add NuGet packages |
64 | 65 |
|
65 | 66 | This tutorial uses the following additional NuGet packages: |
66 | | - * `Microsoft.EntityFrameworkCore.InMemory`: Enables Entity Framework Core to work with an in-memory database rather than an external one, simplifying this tutorial. |
67 | | - * `Swashbuckle.AspNetCore.SwaggerUI`: Provides a user interface for exploring and testing API endpoints interactively through Swagger. |
68 | | - |
69 | | -Add the following NuGet packages used in this tutorial. |
70 | | - |
71 | | -* From the **Tools** menu, select **NuGet Package Manager > Manage NuGet Packages for Solution**. |
72 | | -* Select the **Browse** tab. |
73 | | -* Enter **Microsoft.EntityFrameworkCore.InMemory** in the search box, and then select `Microsoft.EntityFrameworkCore.InMemory`. |
74 | | -* Select the **Project** checkbox in the right pane and then select **Install**. |
75 | | -* Enter **Swashbuckle.AspNetCore.SwaggerUI** in the search box, and then select `Swashbuckle.AspNetCore.SwaggerUI`. |
76 | | -* Select the **Project** checkbox in the right pane and then select **Install**. |
| 67 | + * `Microsoft.EntityFrameworkCore.InMemory`: Enables Entity Framework Core to work with an in-memory database rather than an external one, simplifying this tutorial. |
| 68 | + * `Swashbuckle.AspNetCore.SwaggerUI`: Provides a user interface for exploring and testing API endpoints interactively through Swagger. |
| 69 | + |
| 70 | +* Add the following NuGet packages used in this tutorial: |
| 71 | + * From the **Tools** menu, select **NuGet Package Manager > Manage NuGet Packages for Solution**. |
| 72 | + * Select the **Browse** tab. |
| 73 | + * Enter **Microsoft.EntityFrameworkCore.InMemory** in the search box, and then select `Microsoft.EntityFrameworkCore.InMemory`. |
| 74 | + * Select the **Project** checkbox in the right pane and then select **Install**. |
| 75 | + * Enter **Swashbuckle.AspNetCore.SwaggerUI** in the search box, and then select `Swashbuckle.AspNetCore.SwaggerUI`. |
| 76 | + * Select the **Project** checkbox in the right pane and then select **Install**. |
77 | 77 |
|
78 | 78 | # [Visual Studio Code](#tab/visual-studio-code) |
79 | 79 |
|
|
0 commit comments