You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/1. Create BackEnd API project.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,10 @@
36
36
}
37
37
}
38
38
```
39
-
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.SqlServer` version `3.0.0-preview6.19304.10`.Notethatyou'll need to resolve several references by adding missing `using` statements (`Ctrl + .` is your friend).
40
-
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 3.0.0-preview6.19304.10`
41
-
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.Sqlite` version `3.0.0-preview6.19304.10`.Notethatyou'll need to resolve several references by adding missing `using` statements (`Ctrl + .` is your friend).
42
-
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 3.0.0-preview6.19304.10`
39
+
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.SqlServer` version `3.0.0-preview6.19304.10`.
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.Tools` version `3.0.0-preview6.19304.10`.
100
+
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.Tools --version 3.0.0-preview6.19304.10`
@@ -170,8 +171,9 @@ In this section, we'll be adding documentation to our API using the Swashbuckle
170
171
171
172
Additional information on using Swashbuckle in ASP.NET Core is available in this tutorial: [ASP.NET Web API Help Pages using Swagger](https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger)
172
173
173
-
1. Add a reference to `Swashbuckle.AspNetCore` version `5.0.0-rc2`.
174
-
> This can be done from the command line using `dotnet add package Swashbuckle.AspNetCore --version 5.0.0-rc2`
174
+
1. Add a reference to the NuGet package `Swashbuckle.AspNetCore` version `5.0.0-rc2`.
175
+
> This can be done from the command line using `dotnet add package Swashbuckle.AspNetCore --version 5.0.0-rc2`
176
+
175
177
1. Add the Swashbuckle services in your `ConfigureServices` method:
176
178
```csharp
177
179
services.AddControllers();
@@ -180,7 +182,7 @@ Additional information on using Swashbuckle in ASP.NET Core is available in this
180
182
options.SwaggerDoc("v1", new OpenApiInfo { Title = "Conference Planner API", Version = "v1" })
181
183
);
182
184
```
183
-
1. Configure Swashbuckle by adding the following lines to top of the `Configure` method in `Startup.cs`:
185
+
1. Configure Swashbuckle by adding the following lines just before `UseEndpoints` in the `Configure` method in `Startup.cs`:
0 commit comments